blacklanternsecurity/red-run
Offensive security toolkit for Claude Code
What it solves
Running a security assessment (like a CTF or lab exercise) normally requires juggling many tools, keeping track of credentials and access paths, and manually deciding what to try next. red-run turns Claude Code into a guided security operator: it structures the work into phases (recon, initial access, lateral movement, privilege escalation, post-access), remembers all engagement state in a SQLite database, and uses multiple AI agents that work in parallel. This lets you focus on choosing what to test next instead of managing details.
How it works
When you start red-run (for example with /red-run-ctf), an orchestrator acts as the team lead. It routes tasks to persistent domain-specialist agents that each run in their own tmux pane. These agents are split into enumeration (net-enum, web-enum, ad-enum, lin-enum, win-enum) and operations (web-ops, ad-ops, lin-ops, win-ops) pairs, plus on-demand specialists (bypass, spray, recover, research). Unlike the older ephemeral-agent approach, these teammates keep context across tasks, so they learn as they work.
All agents share the same skills (stored in the skills/ folder) and use MCP servers for nmap, shell, browser, state, and skill routing. The skill router finds the right skill using semantic search (RAG) over ChromaDB. Every decision is recorded in engagement/state.db. You can watch the agents work in split panes, press Escape to interrupt, or type to redirect them. The orchestrator presents routing choices and asks for your approval before assigning tasks, giving you human-in-the-loop control.
red-run also offers a browser-based dashboard (operator/state-viewer/start.sh) that shows the live engagement state: targets, credentials, access chains, pivots, tunnels, and a real-time event timeline. It reads from the same SQLite database, so you get a clear picture of what has been done and what paths are available.
The project supports multiple orchestrator variants: the active CTF-oriented /red-run-ctf, a legacy simpler one, and two planned ones (a no-touch DLP-safe mode and a training mode). All variants write to the same database, so you can switch between them.
Who it's for
red-run is built for security professionals and CTF players who use Claude Code and have a Linux VM with pentesting tools. It is explicitly designed for CTF and lab environments only – the current orchestrator is a fully autonomous CTF solver with no OPSEC considerations. You must have explicit permission to test any target, and you are responsible for legal compliance. If you're learning security methodology, the planned training mode will guide you, but the active version is not meant for beginners who need step-by-step explanations.
Highlights
- Persistent agent teams that accumulate context across tasks instead of restarting for each new skill invocation.
- Unified engagement state in SQLite, surviving context compactions and shared across all orchestrator variants.
- Semantic search (RAG) over skills to automatically pick the right technique for the current situation.
- Operator visibility and control: watch agents in tmux panes, interrupt, redirect, and approve routing decisions.
- Browser-based real-time dashboard with access chain graph and live SSE updates.
- Multiple orchestrator modes (CTF, legacy, planned no-touch and training) sharing the same state database.
- Optional Sliver C2 integration for command-and-control support.
Related
- Project
- Project
- Project
- Project