AI/ML CTF Quick Reference
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 asW_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.
Related Skills
Detects AI-generated images from Stable Diffusion, Midjourney, and GPT-4o via Tencent Cloud image moderation and returns risk scores.
Comprehensive network engineering skill covering fault troubleshooting, technical consulting, and architecture design across routing and switching, wireless, security, cloud computing, and optical transport.
Provides 9 application modules based on GB/T 33000-2025 and DuPont safety methodologies for diagnosing, standardizing, and building culture in enterprise safety management systems.
Detects PII, API keys, tokens, and blockchain credentials at the message entry, applies reversible masking, and flags prompt injection or dangerous commands locally.