AI Agent Hub
Back to skills
AI/ML CTF Quick Reference icon

AI/ML CTF Quick Reference

IT Ops & Security Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please install @user_257ad2a8/ctf-ai-ml according to https://skillhub.cn/install/skillhub.md.

About this skill

Problem

AI/ML CTF challenges often treat model weights, inference APIs, LLM agents, and training data as attack surface. Solvers may struggle to distinguish model weight analysis, adversarial ML, and LLM prompt or tool abuse, especially when the challenge looks like a normal chatbot, a fine-tuned model, or a protected classifier. This skill gives a concise reference for choosing the right technique and avoiding false pivots.

Core capabilities and workflow

  • Model weight analysis: for fine-tuned models, LoRA adapters, or inference endpoints, try negating fine-tuning deltas with 2*W_orig - W_chal, merge adapters as W_base + alpha * (B @ A), or use gradient descent for model inversion and encoder collision.
  • Adversarial ML: for classifiers or vision models, evaluate attacks in escalation order: FGSM, PGD, C&W, adversarial patches, data poisoning, and backdoor detection; physical-scene tasks often favor patches and triggers.
  • LLM attacks: for chatbots, RAG systems, and agents, inspect direct and indirect prompt injection, jailbreaking, token smuggling, context window manipulation, and tool use exploitation.
  • Boundary checks: pivot to crypto for pure math, lattice reduction, or number theory; to reverse for ONNX, TensorRT, or compiled inference binaries; to misc for ML-wrapped games or puzzles.

Use Cases

  • When receiving a fine-tuned model or LoRA weights in CTF, negate the fine-tuning delta, merge the adapter, and recover original behavior.
  • When solving an image classifier challenge, choose FGSM, PGD, or C&W to craft adversarial examples and verify evasion.
  • When debugging a chatbot/RAG system, test prompt injection, token smuggling, and unintended tool-calling actions.
  • When deciding whether a task is model weights, adversarial ML, or LLM attacks, identify the correct CTF pivot.

Best For

  • AI/ML CTF player: needs a fast path for model weights, LoRA, classifiers, or chatbot challenges.
  • Security red-teamer: evaluates LLM, RAG, or agent systems for prompt injection, token smuggling, and tool misuse.
  • Application security engineer: needs adversarial examples, model extraction, and membership inference checks before release.
  • Reverse/security engineer: needs to decide whether an ONNX, TensorRT, or inference binary task should pivot to reverse.