Autonomous penetration testing using a swarm of AI agents. Orchestrates recon, classification, exploitation, and reporting specialists with ReAct reasoning — su
Autonomous penetration testing using a swarm of AI agents. Orchestrates recon, classification, exploitation, and reporting specialists with ReAct reasoning — su
Dozens of AI agents attack your target concurrently — and find real, proven vulnerabilities at machine speed.
Built for pentesters · bug bounty hunters · red teamers · security researchers
Documentation · Quick Start · vs. XBOW · Swarm vs. Multi-Agent · How It Works · Roadmap
New here? Start with the documentation — quickstart, provider setup, CLI reference, and troubleshooting. (Or run
pentestswarm docsto open it.)
XBOW proved a point: AI can top the bug-bounty leaderboards. But XBOW is a closed, hosted SaaS — one agent, on their cloud, on their model, at their price. We think the future of offense is open, self-hosted, and a swarm — so we built it.
| Pentest Swarm AI | XBOW | |
|---|---|---|
| Open source | ✅ AGPL, fork it | ❌ closed |
| Self-hosted | ✅ your infra, your model, $0 floor | ❌ their cloud, their bill |
| A real swarm | ✅ dozens of agents, concurrent | ❌ single agent |
Three structural wins — and the swarm is the one that compounds. This isn't a single planner LLM walking recon → classify → exploit → report down a fixed line. Dozens of agents work your surface at once, coordinating through a shared stigmergic blackboard: the instant a finding lands it wakes whichever agent it's relevant to, so a 1,000-subdomain target gets hit in parallel — attacking at machine speed. And unlike a scanner that spits out unverified "maybes," the swarm exploits what it finds, proves it with captured evidence, then writes the report.
Who it's for: pentesters covering a whole scope overnight · bug bounty hunters racing to first-blood on a fresh target · red teamers who need breadth fast · researchers pushing autonomous offense.
Run it on any model — Claude, anything OpenAI-compatible (incl. Together AI's hosted Llama/Qwen/DeepSeek), the new security-tuned open models (Pentest-R1 and the wave behind it), or fully local Ollama / LM Studio. We don't compete with those models — we're the harness that gives them hands: real tools, swarm coordination, scope safety, and evidence-backed reports. Air-gapped, zero API cost, and not one byte of your data leaving your box.
For authorized testing only — see the disclaimer below.
Credits & Inspiration
This project stands on the shoulders of giants. We credit and thank these projects for pioneering AI-powered offensive security:
- PentestGPT — the OG that proved LLMs can pentest
- PentAGI — fully autonomous agent architecture
- Strix — AI hackers that find and fix vulns
- CAI — cybersecurity AI framework, 3600x faster than humans
- HackingBuddyGPT — LLM hacking in 50 lines of code
- Shannon — white-box AI pentester
- BlacksmithAI — multi-agent pentest framework
- PentestAgent — black-box AI security testing
Their open-source contributions made tools like this possible.
Legal Disclaimer: Pentest Swarm AI is designed exclusively for authorized security testing, bug bounty programs, CTF competitions, and educational research. You must obtain explicit written permission from the target system owner before running any scan. Unauthorized access to computer systems is illegal under the Computer Fraud and Abuse Act (CFAA), the Computer Misuse Act, and equivalent laws worldwide. The authors and contributors of this project accept no liability for misuse, damage, or any illegal activity conducted with this tool. By using this software, you agree that you are solely responsible for ensuring your use complies with all applicable laws and regulations. Do not use this tool against systems you do not own or have explicit authorization to test.
Most "multi-agent" pentesting tools are a single planner LLM dispatching to specialist agents in a fixed order — recon → classify → exploit → report. That's a pipeline, not a swarm.
Pentest Swarm AI is built around three swarm-intelligence primitives:
Why it wins: a pipeline is sequential (one stage at a time), can't fold a mid-run discovery back into recon, and is bounded by its slowest stage. A swarm works your surface concurrently, reacts to every new finding, lets attack chains emerge instead of scripting them, and lets stale paths decay and die. The payoff on stage is breadth — a long list of proven findings, because many agents chew on the surface at once.
** Full write-up: Architecture — Swarm vs. Pipeline** (the blackboard, pheromone decay, emergent chains, and why concurrency stays cheap). Diagrams also live in docs/.
We built this because the category was empty. Every tool marketed as "swarm" was actually a pipeline. If you find a counter-example, open an issue — we'll add them to the comparison table.
One command to install. One command to run. No API key, no cloud, no bill to start.
npm install -g @armurai/pentestswarm # npm (Node ≥16)
curl -fsSL https://raw.githubusercontent.com/Armur-Ai/Pentest-Swarm-AI/main/scripts/install.sh | sh # any macOS/Linux
brew install Armur-Ai/tap/pentestswarm # Homebrew
go install github.com/Armur-Ai/Pentest-Swarm-AI/cmd/pentestswarm@latest # Go toolchain
docker run --rm ghcr.io/armur-ai/pentestswarm:latest --help # Dockerpentestswarm runThat's it. run opens the interactive TUI launcher — no flags to memorize:
localhost:7777 and a full-screen terminal TUI with live charts, a swarm-topology diagram, and a graded findings stream. Both, by default.A readiness check runs right in the launcher (Go, Docker, tools, provider) — it never blocks; anything missing is shown as a note you can fix or ignore.
run just wraps scan, so everything is scriptable too:
# watch it find a real vuln in ~2 min — bundled lab, local model, no key
pentestswarm scan --lab --lab-target crapi --provider ollama --swarm --tui
# a real target, cloud model for max quality
export PENTESTSWARM_ORCHESTRATOR_API_KEY=your-key-here
pentestswarm scan <authorized-target> --scope <target> --swarm --followNew here? pentestswarm demo plays the whole campaign offline — that's the GIF above. Running inside GitHub Actions? See deploy/github-action/example-workflow.yml.
Key behaviours:
PORT_OPEN stays hot for hours; a SESSION for minutes. Config-driven half-lives.--scope is not bypassable.internal/pipeline/cleanup_memory.go and cleanup.go.How we position vs. the rest of the ecosystem. We'll ship real benchmark numbers in a future release (see the benchmarks roadmap).
| Tool | Open / self-host | Architecture | Executes vs. suggests | Memory | Tools wired | MCP | Swarm? |
|---|---|---|---|---|---|---|---|
| Pentest Swarm AI | ✅ open, self-hosted | Stigmergic blackboard | Executes | pgvector + pheromones | 8 ProjectDiscovery + nmap; sqlmap / Burp MCP / Metasploit in roadmap | Yes | ✅ real |
| XBOW | ❌ closed SaaS | Autonomous agent (hosted) | Executes | Hosted | Managed | No public API | No |
| PentestGPT | ✅ open | Single-agent ReAct | Suggests | None | None native | No | No |
| HackingBuddyGPT | ✅ open | Single-agent | Executes | Run logs | Shell passthrough | No | No |
| PentAGI | ✅ open | 4 agents + planner | Executes | pgvector | 40+ via MCP/shell | Partial | Pipeline |
| Shannon | ✅ open | White-box + browser | Executes | Session state | Browser DOM | No | Pipeline |
| HexStrike | ✅ open | MCP tool wrapper | Delegates to client LLM | None (stateless) | 150+ via MCP | Yes | No |
| Pentest-R1 | ✅ open (model) | RL-tuned LLM | Executes | Trajectory | CTF-scope | No | No |
If any entry here is wrong or out of date, please open a PR — we want this table to stay honest.
Honesty labels: stable means shipped + tested, beta means works but rough edges, alpha means experimental, planned means in the roadmap.
| Feature | Status | Notes |
|---|---|---|
| Sequential 5-phase runner | stable | Default mode; battle-tested core |
| Stigmergic swarm scheduler | alpha | --swarm flag; memory-backed blackboard wired |
| ProjectDiscovery toolchain | stable | subfinder, httpx, nuclei, naabu, katana, dnsx, gau |
nmap adapter |
stable | XML parsed; scope-validated |
| Cleanup registry | stable | Always runs on SIGINT / exit / budget-cancel |
| Claude prompt caching | stable | Enabled for recon + classifier by default |
--strict LLM mode |
stable | Promotes LLM errors to fatal |
| CVSS v3.1 scoring | stable | FIRST spec |
| Postgres blackboard backend | beta | Migration shipped; runner uses memory-board for now |
| MCP server | beta | pentestswarm mcp serve |
| VS Code ext |
No open issues yet, or sync has not completed.