CTF Kit
A Claude Code plugin and a CLI for working through CTF challenges with an AI coding agent.
The /ctf-kit:* skills drive common security tools (xortool, binwalk, volatility3, zsteg,
RsaCtfTool, sqlmap and others) through bundled scripts and help you read the results; the ctf
CLI keeps track of challenges and competitions.
Quick start
1. Install the Claude Code plugin
Inside Claude Code, add the marketplace and install the plugin:
/plugin marketplace add MysterionRise/ctf-kit
/plugin install ctf-kit@ctf-kit
Or from a local checkout:
/plugin marketplace add /path/to/ctf-kit
/plugin install ctf-kit@ctf-kit
The /ctf-kit:* skills are then available in every project.
After pulling new changes, refresh with /plugin marketplace update ctf-kit.
For plugin development, load the checkout for a single session with
claude --plugin-dir /path/to/ctf-kit.
2. Install the CLI
Needed for /ctf-kit:here, /ctf-kit:status, /ctf-kit:flag and the ctf commands below; most
analysis skills run without it.
uv tool install ctf-kit --from git+https://github.com/MysterionRise/ctf-kit.git
3. Initialise your CTF repo
cd ~/your-ctf-repo
ctf init --repo
4. Work on a challenge
cd competitions/somectf/crypto-challenge
ctf init
claude
> /ctf-kit:analyze challenge.bin
> /ctf-kit:crypto
How it works
There are two layers. The plugin skills run their own bundled scripts, which call the tools and
print JSON summaries for Claude to read. The ctf CLI tracks challenges and competitions (here,
status, flag, competition, writeup) and can run any installed tool directly.
Skills
| Command | What it covers | Tools it uses |
|---|
/ctf-kit:analyze | Detects the challenge type and suggests next steps | file, strings, category detection |
/ctf-kit:crypto | RSA, XOR, hashing | xortool, RsaCtfTool, hashcat, john |
/ctf-kit:forensics | Memory dumps, PCAPs, disk images, file carving | volatility3, binwalk, foremost, tshark |
/ctf-kit:stego | Hidden data in images, audio and other media | zsteg, steghide, exiftool |
/ctf-kit:web | SQLi, XSS, directory enumeration, auth bypass | sqlmap, gobuster, ffuf |
/ctf-kit:pwn | Binary exploitation, ROP chains, format strings | checksec, ROPgadget |
/ctf-kit:reverse | Static and dynamic analysis, decompilation | radare2, ghidra (headless) |
/ctf-kit:osint | Username enumeration, domain recon | sherlock, theHarvester |
/ctf-kit:misc | Encoding chains, esoteric languages, QR codes | encoding detection, file analysis |
/ctf-kit:here | Sets up the current challenge folder (.ctf/ notes, category guess, metadata) | ctf CLI |
/ctf-kit:status | Progress for one challenge or a whole competition | ctf CLI |
/ctf-kit:flag | Records a found flag, checks its format and marks the challenge solved | ctf CLI |
/ctf-kit:team-solve | Splits one hard challenge across three specialist agents | agent teams (experimental) |
/ctf-kit:compete | Triages a live competition and assigns challenges to an agent team | agent teams (experimental) |
team-solve and compete need Claude Code's experimental agent teams; see
docs/team-setup.md.
CLI
ctf init --repo # one-time setup for a CTF repo
ctf init [--category <category>] # set up a challenge folder
ctf new <name> [--category <cat>] # create a new challenge folder
ctf analyze <path> [--verbose] # inspect files and guess the category
ctf check [--category <category>] # which tools are installed
ctf tools # all tools and their status
ctf run <tool> [args...] # run one tool directly
ctf writeup # Markdown writeup from the .ctf/ notes (HTML not yet)
Example
The output lines below are illustrative, not captured from a real run.
cd competitions/somectf/rsa-challenge
claude
> /ctf-kit:analyze encrypted.txt public_key.pem
# e.g. "RSA challenge, small public exponent"
> /ctf-kit:crypto
# walks through attacks on the weak parameters, running RsaCtfTool where it applies
What it writes
CTF Kit leaves your files alone and keeps its notes next to them:
your-ctf-repo/
├── .ctf-kit/ # repo-level config (one-time)
│ └── config.yaml
└── competitions/
└── somectf2026/
└── crypto-challenge/
├── .ctf/ # per-challenge notes
│ ├── analysis.md
│ └── writeup.md
├── challenge.txt # your files
└── solve.py # your solution
Requirements
Python 3.11+ and the basic file, strings and xxd utilities. Everything else is optional;
ctf tools and ctf check --category <category> show what is installed.
Scope and limits