ctf-ai-ml is one of the category skills in the ctf-skills collection. It gives an agent a short index of techniques for AI and machine learning challenges in capture-the-flag competitions, with each technique pointing to a supporting file for detail.
The skill covers inspecting model files, comparing weights, adversarial example generation, prompt injection and jailbreaking, model extraction and membership inference. It also says when to hand a challenge to the crypto, reverse or misc skills of the same collection.
What You Get
- A prerequisites list for the Python packages the techniques need
- Quick-start commands to inspect PyTorch, safetensors, HuggingFace and LoRA adapter files and compare two sets of weights
- One-line technique summaries with links into three detailed reference files
- Pivot rules that name the crypto, reverse and misc skills for challenges that leave the ML domain
Common Use Cases
- Recovering a behavior that a fine-tuned model was trained to suppress by comparing it with the original weights
- Working out how to approach a challenge that gives you a classifier and asks for a misclassified input
- Testing a challenge chatbot for prompt injection or tokenizer-level filter gaps
- Deciding whether a puzzle that wraps a model is really a crypto or reverse engineering task
What Makes It Unique
Most CTF skills target binaries or web apps. This one is limited to the ML side of competitions: model files, LoRA adapters, adversarial inputs and LLM filters. It keeps the main file short, as a table of contents, and moves the long walkthroughs into separate files that the agent opens when a technique applies. It is marked as not directly invocable, so it loads from context or from the solve-challenge dispatcher.
Under The Hood
The skill is instructions only, with no scripts of its own. It tells the agent to run Python and shell commands to inspect model files, install packages with pip, and use curl to send test prompts to a challenge endpoint. Its frontmatter lists shell, file read and write, web fetch and web search as allowed tools, so the agent can run commands, write files and reach the network while following it. The reference files contain example prompts, written for a challenge chatbot, that tell a model to ignore its instructions; they are sample test inputs for competition targets.