Medusa is an open-source AI agentic red-teaming framework powered by LangGraph and a Re-Act architecture. It represents a fundamental shift in how security testing is conducted — moving from manual, time-consuming penetration testing to autonomous, AI-driven attack and defense.
The Red Team
The Red Team capability chains reconnaissance, exploitation, and post-exploitation into a single LangGraph pipeline. It spawns parallel subagents that can simultaneously attack different vectors, all coordinated by a zero-cost LLM supervisor that watches for missed flags, repeated patterns, and stalled progress. A persistent knowledge graph is maintained across all agents, ensuring findings are shared and built upon. Every engagement produces comprehensive Markdown reports with Mermaid attack-chain diagrams, making results shareable and auditable.
The Blue Team SOC
Equally sophisticated is the Blue Team SOC, which monitors live HTTP traffic through 18 regex-based attack pattern detectors covering everything from SQL injection and XSS to SSRF and command injection. Each endpoint gets a dedicated AI subagent that analyzes handler code and watches traffic in real time. When attacks are detected, the AI decision engine deploys deception countermeasures: live tarpit (adding real, measurable delays), network blocking via pfctl/iptables, and even patching vulnerable source code by directly modifying the filesystem.
The Lab
The built-in CloudBoard Next lab features 15 vulnerabilities across 3 services, forcing the agent to chain attacks across services. The framework ships with 85 tools, 48 modules, 51 attack skills, and 360 tests across 14 test files.
- Built for: bug bounty hunters automating recon across thousands of targets, researchers exploring novel attack paths, CTF players speed-running challenges, and SOC defenders needing autonomous active defense.
- Portable architecture: all paths resolve relative to project root, so the folder can be renamed without breaking anything.
- LLM providers: DeepSeek, HuggingFace, Gemini, and Anthropic.
- Interface: classic Rich TUI with a guided menu and live colored output for every command executed.
Markdown report + Mermaid attack-chain diagram. Reproducible, auditable, and shareable.