Pentest-Swarm-AI README

The project's README from github.com/Armur-Ai/Pentest-Swarm-AI. As one markdown file: README.md.

Pentest Swarm — open-source autonomous penetration testing that doesn't just scan: it exploits and proves it with a working PoC

❤️ Loved by bug-bounty hunters, security researchers, pentesters, CTF players, and enterprise teams.

Hosted by Armur AI Book a demo Presented at Black Hat Arsenal — India Documentation Discord Stars Go License AI Status

XBOW Open Source Alternative

It doesn't just scan. It exploits — and proves it.

Every other tool hands you a list of maybes. Pentest Swarm sends a swarm of AI agents to actually exploit the weaknesses they find, build a working proof-of-concept, and hand it to you — confirmed, reproducible findings instead of scanner noise.

🛡️ Safe for real engagements. Hard guardrails — fail-closed scope, egress control, target authorization, and a full audit trail — keep the swarm strictly inside the assets you authorize; it never wanders onto surfaces you didn't name. Safe to point at bug-bounty and pentest targets.

🔒 To prevent misuse, this free & open-source edition runs with its most powerful capabilities deliberately limited. The commercial platform unlocks the full offensive range — gated behind a strict verification that you own the assets you're testing.

☁️ Hosted version · 📖 Documentation · Quick Start · Use Cases · vs. XBOW · Swarm vs. Multi-Agent · How It Works · Mission · Coverage · Roadmap

Pentest Swarm AI is an open-source, self-hosted automated penetration-testing platform built on a real swarm. Dozens of AI agents coordinate through a shared stigmergic blackboard to test, prove, and report on vulnerabilities across your APIs and web apps.

  • 🐝 A real swarm, not a pipeline — dozens of agents work your surface concurrently, coordinating via pheromone-weighted findings; test coverage emerges instead of being scripted.
  • ✅ Proof, not maybes — non-LLM verification oracles (OOB / differential / timing) confirm each finding against the live target, so you get a VERIFIED badge and evidence, not a noisy "possible" list.
  • 🧠 Any model, self-hosted — Claude, Together AI (GLM/Qwen/DeepSeek), Gemini, OpenAI-compatible, or fully local Ollama / LM Studio. Your data and your targets never leave your infrastructure.
  • 📋 Findings you can act on — every result comes with evidence, severity, CVSS, and a graded report; the Armur suite carries it on to triage and remediation.
  • 🛡️ Safe by design — fail-closed scope, egress guard, target authorization, and a full audit trail, so a scan only ever touches what you told it to.
  • 🎯 Drop-in use cases — API security, external ASM, CI/CD, GraphQL, OWASP Top 10, internal network, CTF — each a one-command playbook.

🚀 Shipped continuously — the most actively-developed autonomous-pentest repo

Most "AI pentest" projects are a one-time drop. Pentest Swarm ships new capabilities every month — 742 commits, 41 releases, and counting. It's the most actively-developed autonomous-penetration-testing repo on GitHub, adapting to new models, new vulns, and new attacker techniques as they land. ⭐ Star it and put it to work in your company.

Shipping velocity in 2026 — cumulative commits climbing to 742 across the year with 41 releases; built continuously and accelerating

A concurrent swarm at the exploit stage — sequential recon and classification feed many exploit agents working concurrently on the same campaign, converging into one aggregated report

☁️ Don't want to self-host?

Armur AI runs Pentest-Swarm for you — continuous scheduled pentests, human-reviewed reports, a hosted dashboard, and compliance-ready reporting (SOC 2 · ISO 27001 · PCI · HIPAA). Same open-source engine, fully managed.

→ Get started at armur.ai  ·  📅 Book a 15-min demo  ·  See pricing

The commercial platform is a distinct, managed product — and it tests only assets you own. We verify ownership of every in-scope domain and asset before any scan runs.

🏴 Presented at Black Hat Arsenal — India · the open-source pentest swarm, demoed live.

🔒 Scope note: like any pentesting tool, run it only against assets you own or are authorized to test. Scope is enforced fail-closed and every run is scoped and audited. See Responsible Use.

Pentest Swarm AI — the live swarm TUI: stigmergic blackboard, exploit-chain reasoning, and verified findings

Writes the exploit, verifies the result — each confirmed finding ships with a self-contained Python PoC that is safety-scanned, run in a sandboxed runner against the authorized target, checked against observed evidence, and handed over as runnable proof plus a receipt

Test at machine speed.

📖 New here? Start with the documentation — quickstart, provider setup, CLI reference, and troubleshooting. (Or run pentestswarm docs to open it.)

XBOW proved a point: AI can find vulnerabilities as well as a top human tester. But XBOW is a closed, hosted SaaS — one agent, on their cloud, on their model, at their price. We think automated pentesting should be open, self-hosted, and a swarm — so you can run it on your own infrastructure, against your own assets, on the model you choose.

Pentest Swarm vs. XBOW

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 → test → 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 covered in parallel — testing at machine speed. And unlike a scanner that spits out unverified "maybes," the swarm proves what it finds with captured evidence, then writes the report.

Who it's for: security teams covering a whole scope overnight · engineering teams gating releases in CI/CD · pentesters who need breadth fast · researchers advancing automated security testing.

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.

Test only assets you own or are authorized to test — see Responsible Use.


Why can't I just use Mythos or GPT-Cyber? Why do I need a harness?

Point a bare model — or a thin agent like Mythos or GPT-Cyber — at a target and it has to invent the harness on the fly: how to run tools, how to chain findings, how to verify a result, how to stay in scope — probabilistically, and differently every single run. That's non-reproducible, and it's exactly where unsafe, unreliable behaviour creeps in. Pentest Swarm ships a harness that's already built and hardened, so the same run produces the same disciplined, in-scope, verified result. You get deterministic structure wrapped around a probabilistic engine — which beats a raw model every time.

The way to picture it: the model is the engine; the harness is the car.

Frontier models are getting absurdly powerful, and they'll keep getting better. But raw capability is an engine on a test stand: it revs, it roars, and it moves nothing. A 1,000-horsepower engine with no transmission, no chassis, no tires, and no traction doesn't win races — it doesn't even leave the garage. To put that power on the road, you need the rest of the car.

Pentest Swarm is that car. The model is the engine you drop in; everything around it is what turns horsepower into a finished pentest:

The car Pentest Swarm Why the power needs it
Engine the frontier model you choose — Claude, GLM / Qwen / DeepSeek, local Ollama raw reasoning, and fully interchangeable
Drivetrain (the hands) real tool execution — recon, exploitation, PoC generation a model can describe an attack; the harness runs it against a live target
Transmission the stigmergic swarm spreads the power across dozens of agents instead of one planner redlining a single thread
Tires & traction non-LLM verification oracles (OOB / differential / timing) proof the power actually hit the road — a VERIFIED finding, not a confident guess
Chassis the shared pgvector blackboard + memory holds every finding together so attack chains emerge and nothing is lost between agents
Brakes & seatbelts fail-closed scope, egress guard, authorization gate, full audit trail power you can't stop is a liability, not a feature
The finish line captured evidence + the graded report the whole point — a proven result, not a chat transcript

And here's the part that compounds: a better engine makes a better car — but only if the car can use it. Every time the frontier moves, Pentest Swarm gets better for free, because the harness is model-agnostic: swap the engine, keep the car. We don't compete with the labs building the engines — we're the layer that lets anyone put that power on the road, on their own infra, for authorized security testing.

No matter how good the model gets, something still has to give it hands, aim it at a target safely, coordinate it at scale, and prove what it found. That's the harness. That's the hard part. That's us.


What makes this a swarm?

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.


Quick Start

One command to install. One command to run. No API key, no cloud, no bill to start.

1 · Install (pick one)

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                # Docker

2 · Run it

pentestswarm run

That's it. run opens the interactive TUI launcher — no flags to memorize:

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.

Prefer flags? (scripting / CI)

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 --follow

# prove findings, don't just report them: confirm each high-stakes finding
# against the live target with a non-LLM oracle (OOB / differential / timing)
pentestswarm scan <authorized-target> --scope <target> --swarm --verify

New here? pentestswarm demo plays the whole campaign offline — that's the GIF above. Running inside GitHub Actions? See deploy/github-action/example-workflow.yml.


Use cases

Each use case is a one-command playbook — a curated swarm configuration for a specific job. List them with pentestswarm playbook list; run one with pentestswarm playbook run <name> --target <t> --scope <scope>.

Use case What the swarm does Playbook Example
Bug bounty — first blood race a fresh target: recon → classify → exploit → proof, breadth-first bug-bounty pentestswarm playbook run bug-bounty --target https://app.example.com --scope example.com
External ASM enumerate a whole external surface and prove the exploitable edges external-asm pentestswarm playbook run external-asm --target example.com --scope example.com
CI/CD gate fast, scriptable scan with SARIF output for a pipeline ci-cd-security pentestswarm playbook run ci-cd-security --target $STAGING_URL --scope $STAGING_HOST
API security (BOLA/IDOR/BFLA) object-level & function-level authz abuse across an API api-security pentestswarm playbook run api-security --target https://api.example.com --scope api.example.com
GraphQL audit introspection, field-level authz, injection, batching abuse graphql-audit pentestswarm playbook run graphql-audit --target https://api.example.com/graphql --scope api.example.com
OWASP Top 10 broad web-app coverage mapped to the Top 10 owasp-top10 pentestswarm playbook run owasp-top10 --target https://app.example.com --scope example.com
Internal network authorized internal-range sweep and service exploitation internal-network pentestswarm playbook run internal-network --target 10.0.0.0/24 --scope 10.0.0.0/24
CTF solver autonomous flag hunting on a CTF target ctf-solver pentestswarm playbook run ctf-solver --target http://ctf.local:8000 --scope ctf.local
Try it with no target attack a bundled vulnerable lab (crAPI, Juice Shop, VAmPI, DVGA) that spins up and tears down — pentestswarm scan --lab --lab-target crapi --swarm --tui

Full walkthroughs with sample output live in the documentation and the coverage catalog.


Shipping every week? You can't pentest once a year.

A pentest is a snapshot — true the day it's run, stale by your next deploy. If you're a team of 50+, pushing code continuously, handling customer data, or working toward SOC 2 / ISO 27001 / PCI / HIPAA, a once-a-year test leaves you exposed for the other 51 weeks. New endpoints, new dependencies, new auth flows — and new vulnerabilities — land between engagements, and attackers don't wait for your annual review.

2026 timeline of critical, in-the-wild RCEs across every major stack — vm2, Axios and Shai-Hulud npm worms, nginx Rift and nginx2root, Spring JMS deserialization, KindaRails2Shell, Next.js RCE, Django GeoDjango, PHP2Shell, Go build-time RCE, React2Shell, Java4Shell, Drupal — landing all year, between annual pentests

Just look at 2026: critical, actively-exploited RCEs in PHP, nginx, Rails, Node, Python, Java, Go, and Next.js, month after month. A test you ran in March saw none of them.

Armur runs a continuous, always-on version of Pentest-Swarm for you. You sign up once and it keeps working:

It's gated behind ownership verification (we confirm you own the assets before anything runs), and you can sign up and start on the web app today — or have our team scope it with you.

→ Start continuous pentesting on armur.ai  ·  📅 Book a 15-min demo  ·  📧 [email protected]


How the swarm works

Pentest Swarm AI architecture — a seed feeds a shared pgvector blackboard that triggers four independent agents (recon, classify, exploit, report) by pheromone threshold; exploit results feed back to wake other agents

Key behaviours:

  1. Agents are independent. Any one of them can be removed, replaced, or added without rewiring the others.
  2. Pheromones decay per-finding-type. A PORT_OPEN stays hot for hours; a SESSION for minutes. Config-driven half-lives.
  3. Scope is enforced at the tool layer and again at the executor. Defence in depth — --scope is not bypassable.
  4. Cleanup is always registered before execution. SIGINT, crashes, and budget exhaustion all trigger reverse-order cleanup. See internal/pipeline/cleanup_memory.go and cleanup.go.
  5. Prompt caching on Claude cuts cost and latency on repeated system prompts (enabled by default for recon + classifier).

Pheromone lifecycle — a finding's weight spikes to 1.0 when written and decays over time; above 0.5 the exploit agent fires, above 0.2 the classifier fires, below 0.2 it goes stale. Different finding types decay at different rates.


The Armur suite — Pentest-Swarm in the middle

Pentest-Swarm isn't a monolith. It's the orchestrator at the centre of a suite of independent tools, each shippable and usable on its own, that exchange evidence as versioned JSON envelopes defined once in armur-contracts. That shared vocabulary is the only thing they depend on each other for — no tool imports another's code, so any one of them upgrades, ships, or runs standalone without touching the rest.

Armur offensive suite architecture — six independent tools on one evidence loop (discover, model, prove, decide, repair, re-verify). Pentest-Swarm is the autonomous-exploitation hub that proves findings; Hayagriva discovers, Trishul reads code, Akira builds the attack-path graph, Engira triages, Dhantra remediates — all exchanging versioned JSON envelopes over armur-contracts.

Open-source users get the whole suite — automatically. You don't wire any of this together or install the pieces separately. Pentest-Swarm pulls in the rest of the offensive suite (Akira, Hayagriva, and the others) as dependencies, so the full evidence loop works out of the box with zero extra setup — you get all of the benefits by default.

🔦 Add Trishul and the swarm goes white-box. On its own, Pentest-Swarm tests from the outside, like a real attacker. Feed it Trishul's code, dependency, secret, and IaC evidence and it tests with knowledge of your source — mapping the exact vulnerable dependency, the reachable sink, the exposed secret, then proving each one against the running target. White-box coverage finds far more, far faster: black-box recon that would take the swarm hours is handed to it in seconds. (Trishul is the Source code analysis node in the diagram above.)

Tool Role Produces → consumes
Hayagriva discovery & recon front-end emits a DiscoveryBundle → warm-starts the swarm's blackboard (skip rediscovery, straight to proving)
Pentest-Swarm ★ autonomous exploitation consumes discovery; emits a verified AssessmentSnapshot (scan --format snapshot)
Engira triage & vulnerability intel consumes the snapshot → prioritized triage + CVE enrichment
Dhantra remediation consumes the snapshot → a RemediationRequest → authorized fix plan
Akira scenario replay consumes the snapshot → a replayable attack scenario

Every edge is a contract, not a call: a producer whose schema major Pentest-Swarm can't read is rejected at the seam (CheckEnvelope), never mis-parsed — so the suite stays honest as each tool version-skews on its own cadence. A pentest is a composition of tools; this is the backbone that lets them compose.

Defending, not attacking? The same pattern runs in reverse for defense, with Heramba as the centrepiece orchestrating agat, byakugan, sharingan, and skillscan. See the Heramba README.


Comparison

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.


Feature status

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
Jev false-positive filter beta --jev; optional second-opinion pass via TypeSafe's Jev — off by default, fails open. Docs
Jev adaptive attack-path scoring beta --jev-adaptive; the swarm scores its candidate attack strategies with Jev in real time and pursues the best first (graded pheromone). Off by default, fails open.
External verification oracles beta --verify; confirm a finding against the live target with a non-LLM signal — out-of-band callback, differential response, or timing — and trust that verdict over the model. Proven findings get a VERIFIED badge and a 1.0 attack-graph edge. Scope-guarded; off by default; ignored under --dry-run/--safe-mode. Docs
Exploit chains beta chain run/list/update; a growing library of named, CVE-tied exploit chains (SSRF→RCE, auth-bypass→RCE…) — fingerprint + safe verify + report. Lean binary + on-demand updates. Docs
Chain Forge beta chain forge; draft a new exploit chain from an advisory using any configured reasoning model (Ollama/Together/Claude/Muse Spark…) — safe verification, validated, human-reviewed before it ships.
Postgres blackboard backend beta Migration shipped; runner uses memory-board for now
MCP server beta pentestswarm mcp serve
VS Code extension beta deploy/vscode/
GitHub Action beta deploy/github-action/action.yml with SARIF
Swarm playbooks (5) beta playbooks/{bug-bounty,external-asm,ci-cd,internal-network,ctf-solver}.yaml
Live dashboard alpha web/; UI built, wiring to live campaigns in progress
Burp MCP bridge planned Wave 2
Metasploit / ZAP / sqlmap adapters planned Wave 2
Fine-tuned Pentest-Swarm model planned Wave 3 (Pentest-R1 recipe)
Cybench / AutoPenBench benchmarks planned Wave 3

CLI

pentestswarm run                                        # ⭐ Interactive TUI — pick options + target, no flags
pentestswarm scan <target> --scope <scope> --swarm      # Scriptable: stigmergic swarm scheduler
pentestswarm scan <target> --scope <scope> --tui        # Full-screen live TUI (charts + swarm topology)
pentestswarm scan --lab --lab-target crapi              # Attack a bundled vulnerable lab, no setup
pentestswarm playbook run <name> --target <t>           # Run a community playbook
pentestswarm doctor                                     # System health check
pentestswarm install-tools                              # Fetch the recon/exploit toolchain
pentestswarm mcp serve                                  # MCP server for Claude/Cursor
pentestswarm serve                                      # Start API server + dashboard

pentestswarm run is the front door — an interactive launcher (provider + key entry, target or bundled lab, live-view choice, readiness checks) so you never have to remember flags. The scan form stays fully scriptable for CI.


LLM Providers

All agents inherit from a single provider config. Set one key, the entire swarm works.

See the model comparison and recommendations to choose by quality, cost, privacy, refusal behaviour, and setup effort.

Bring your own model — we're the harness, not the model. A new wave of open models is topping the cyber-offense benchmarks — GLM (5.3), Qwen (3.x), DeepSeek, and security-tuned fine-tunes like Pentest-R1. Pentest Swarm turns any of them — or a frontier model, or a fully-local one — into an operating pentester: real tools, swarm coordination, scope enforcement, and evidence-backed reports. The model does the reasoning; the swarm does the work.

Together AI is first-class — pick together (in pentestswarm run or --provider together) and just add your key; the endpoint is handled for you. Any other OpenAI-API-compatible endpoint (OpenAI, DeepSeek, Groq, …) works via openai + a base-URL, plus first-party Gemini. The only hard requirement is native tool/function calling, which GLM, Qwen, and DeepSeek all support.

One key, whole swarm — one API key configures the orchestrator and all four agents inherit that provider by default; swap Claude / OrcaRouter / Ollama / LM Studio and the whole swarm follows

Provider provider: Setup Privacy Best for
Claude (default) claude export PENTESTSWARM_ORCHESTRATOR_API_KEY=... Cloud Best quality, zero setup, prompt caching
Together AI together Just set the key — endpoint auto-configured Cloud Open cyber-benchmark leaders: GLM zai-org/GLM-5.3, Qwen Qwen/..., DeepSeek, Kimi
OpenAI-compatible openai Set key + the vendor's /v1 endpoint Cloud OpenAI, DeepSeek, Groq, or any Chat-Completions API
Gemini gemini export PENTESTSWARM_ORCHESTRATOR_API_KEY=AIza... Cloud Large context, free tier
Ollama ollama Install Ollama + pull models 100% local Full privacy, air-gapped (GLM / Qwen builds available)
LM Studio lmstudio Load model, enable server 100% local GUI model management
OrcaRouter orcarouter export PENTESTSWARM_ORCHESTRATOR_API_KEY=sk-orca-... Cloud One endpoint for Claude/GPT + other frontier models, gateway-level security

Together AI example — run the whole swarm on GLM 5.3:

orchestrator:
  provider: "together"             # first-class — endpoint defaults to Together's API
  model: "zai-org/GLM-5.3"        # or Qwen/..., deepseek-ai/..., etc. — see together.ai/models
  api_key: ""                      # or export PENTESTSWARM_ORCHESTRATOR_API_KEY
  context_window: 128000

Tech Stack

Component Technology Why
Platform Go 1.24 Single binary, goroutine concurrency, native security tools
CLI Cobra + bubbletea Beautiful TUI with multi-panel agent view
LLM Claude / Together AI (GLM · Qwen · DeepSeek) / Gemini / OrcaRouter / Ollama / LM Studio Best quality cloud + open cyber-bench leaders + full privacy local
Security Tools subfinder · httpx · nuclei · naabu · katana · dnsx · gau · nmap ProjectDiscovery Go libs + nmap subprocess
Blackboard Postgres 16 + pgvector Transactional writes, vector similarity, pheromone decay in SQL
Cache Redis 7 Rate limiting, session state
Dashboard Next.js 15 + shadcn/ui + tremor Dark-first, chart-heavy
MCP JSON-RPC stdio Claude Desktop + Cursor integration

Development

git clone https://github.com/Armur-Ai/Pentest-Swarm-AI.git
cd Pentest-Swarm-AI
./scripts/setup.sh    # Install tools, start Postgres/Redis/Ollama
make build            # Compile binary
make test             # Run tests
make dev              # Hot-reload development

Regenerate the demo after any CLI change:

brew install vhs ffmpeg          # one-off
# Record the live swarm TUI (offline replay — no key/Docker needed):
vhs docs/demo-tui.tape           # → docs/demo-tui.mp4
# Optimize it into the committed README GIF:
ffmpeg -i docs/demo-tui.mp4 -vf "fps=12,scale=900:-1:flags=lanczos,palettegen=stats_mode=diff" /tmp/p.png -y
ffmpeg -i docs/demo-tui.mp4 -i /tmp/p.png -lavfi "fps=12,scale=900:-1:flags=lanczos,paletteuse=dither=bayer:bayer_scale=3" docs/demo-tui.gif -y
# (docs/demo-flashy.tape still builds the classic scripted walkthrough, kept as a fallback.)

Roadmap

🧠 The Adaptive Swarm — headline releases

Adaptive attack-path scoring — the swarm generates candidate attack strategies, scores them with JEV against live state, pursues the best, and reinforces what works via pheromone

Today the swarm reacts to findings and runs verified attack playbooks (BOLA/IDOR, mass assignment, NoSQL injection, excessive data exposure) end-to-end. Next, we make it think — three major capabilities, each shipping as its own release:

Together these turn a reactive swarm into an adaptive one — attack surface it has never seen, handled without anyone writing a plan. Generalization beyond curated targets and full LLM-driven chaining ride on top of these.

Follow the GitHub Project board for live status.


Why "Swarm"?

Single agents are tools. Pipelines dressed up as agents are slightly fancier tools. A swarm is different: agents share an environment, each agent's writes influence other agents' behaviour, and the useful work is emergent rather than prescribed. That's what lets a swarm handle a 1,000-subdomain target without anyone writing a plan for it.

One agent is a tool. A swarm is a platform.


Our Mission

Security testing is going autonomous — it should be open. XBOW proved AI can find and prove vulnerabilities as well as a top human tester; it did so as a closed, hosted SaaS. We believe that capability shouldn't be locked behind one vendor's cloud and price — it should be open-source, self-hosted, and inspectable, so security teams, engineering teams, researchers, and independent testers can run it on their own infrastructure and their own models.

So our mission is to build the first real open-source pentest swarm in the open: a platform that turns any model — frontier or fully-local — into an operating pentester, with the safety rails (fail-closed scope, egress guard, target authorization, a full audit trail) that keep automated testing accountable and in-scope by default.

If a real open-source swarm is something you want to exist, help us build it.


Community

Join the swarm on Discord → 🐝

We're building the first real open-source pentest swarm in the open — come build it with us. In Discord you can share findings, request a tool adapter, argue about stigmergy and pheromone decay, get help running your first scan, or grab a good first issue and ship a PR. Researchers, red-teamers, and the AI-security-curious all welcome.

⭐ If a real open-source swarm is something you want to exist, drop a star. Star velocity is the fuel that keeps this shipping — it's the single biggest thing you can do in ten seconds.


Who's using Pentest Swarm?

Running Pentest Swarm — internally, on client engagements, in CI, or embedded in your own workflow? Add your org to ADOPTERS.md with a quick PR — it helps others trust the project and helps us prioritize what to build. Not ready to be listed publicly? A hello in Discord still helps.


In the press

Pentest Swarm has been featured and reviewed across the security community:

Video walkthroughs — community creators have demoed Pentest Swarm on YouTube.

Written or filmed something about Pentest Swarm? Tell us and we'll add it here.


Contributors

Every PR, issue, tool adapter, and playbook makes the swarm better. Thank you to everyone building this in the open. 💛

Pentest Swarm AI contributors

New contributor? Grab a good first issue and read CONTRIBUTING.md to get started.


Editions — Community · Pro · Enterprise

The Community edition is free and open source (AGPL-3.0), and always will be — but it is deliberately limited. It ships the core swarm, the scanners, every safety guardrail (fail-closed scope, egress guard, target authorization, a full audit trail), the CLI and TUI, and local reports — enough to find and safely demonstrate real issues on targets you're authorized to test. What it does not include is the platform's advanced offensive capabilities: full exploit automation, high-intensity exploitation, and scaled or continuous operation.

That limit is on purpose — it's about authorization, not revenue. Autonomous offensive tools are increasingly abused against systems their operators don't own (see the wave of ARTEX-style agents). We will not put that power behind an anonymous, unverified download. So the advanced capabilities live only in the commercial platform, and they unlock only after a complete verification that you own the assets you're testing. Same reason, every time: no tool of ours should ever run against a target someone can't prove they're allowed to touch.

Pro and Enterprise unlock those verified advanced capabilities and the platform a team needs to run continuously: scheduled pentests, human-reviewed reports, a dashboard and history, compliance-ready reporting, a remediation/retest workflow, integrations, and (at Enterprise) SSO, RBAC, and on-prem deployment.

Community (free, OSS) Pro Enterprise
Core engine — recon, classification, scanning & safe verification ✅ ✅ ✅
Advanced offensive capabilities — full exploit automation & intensity (requires ownership verification) — ✅ ✅
Every safety guardrail (scope · egress · authorization · audit) ✅ ✅ ✅
CLI · TUI · local reports (Markdown / JSON / SARIF) · playbooks · bundled labs ✅ ✅ ✅
Continuous testing — scheduled, recurring pentests self-run ✅ monthly ✅ custom cadence
Human-reviewed pentest reports (pentester sign-off) — up to 3 / year ✅ + on-demand depth
Hosted dashboard, scan history & trends — ✅ ✅
Scheduled / continuous scans + change alerts — ✅ ✅
Compliance reports (SOC 2 · ISO 27001 · PCI DSS · HIPAA) + attestation letter — ✅ ✅
Retest / fix-verification workflow — ✅ ✅
Integrations (Jira · GitHub · Slack · Linear · webhooks) — ✅ ✅
Team seats, multiple targets, managed CI/CD gating 1 user small team unlimited
SSO / SAML / SCIM · RBAC · tamper-evident audit · on-prem / air-gapped — — ✅
Managed OOB infra · custom chains · deeper human-led testing — — ✅
Support community / Discord email / priority SLA · onboarding · dedicated

How the commercial platform works — verified testing only

The commercial platform is a different product from the self-run open-source engine — a managed service for testing your own assets. Because it launches real offensive tests, we verify that you own every in-scope domain and asset before any scan can run. That keeps every engagement authorized and protects you.

No scan ever touches a target until ownership is verified.

Want Pro or Enterprise? See plans and pricing at armur.ai/pricing, or book a 15-minute demo and tell us what you're trying to prove (compliance, continuous coverage, a specific scope) — we'll get you set up.

🌐 armur.ai  ·  📅 Book a demo  ·  📧 [email protected]


Scope & authorization. Pentest Swarm AI is a penetration-testing tool for authorized security testing — your own assets, or targets you have permission to test (including bug bounty programs and CTFs). Like any pentesting tool, only test what you're authorized to. Pentest Swarm enforces scope fail-closed, keeps every run scoped and audited, and the software is provided as-is without warranty. See Responsible Use for the details.

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.


Licensing and commercial editions

Pentest Swarm AI follows an open-core model. The Community Edition is licensed under GNU AGPL-3.0-only; see LICENSE. Commercial use of the Community Edition is permitted subject to that license. Armur AI also offers commercial, enterprise, and hosted products, which may include separately licensed components.

For the planned separate-control-plane product, the Community Edition will run as a separately executed, pinned, unmodified public release under AGPL. This product architecture does not depend on proprietary relicensing of existing community contributions.

A signed contributor license agreement may grant Armur AI additional rights, including rights to distribute covered contributions under proprietary terms, while contributors retain copyright. Earlier contributions are not covered by a new CLA merely because the policy is introduced. See CONTRIBUTING.md for the applicable policy and effective date.

Distribution and modification can create notice and corresponding-source obligations. AGPL section 13 addresses remote interaction with modified versions. The license text controls; the price charged for a product or service does not determine its obligations.

armur.ai · Pricing · Book a demo · Docs · Discord · X

Built by Armur AI — autonomous offense & adaptive defense. Hosted plans & engagements: [email protected]

Pentest-Swarm-AI (Armur-Ai/Pentest-Swarm-AI)

Searching Database…

What is this?Pentest Swarm AI is an open-source, self-hosted penetration testing tool where dozens of AI agents work as a swarm to recon, classify, exploit, and report vulnerabilities in APIs and web apps — not just scan for them.
Is this a single AI agent like a chatbot, or something else?It's a true multi-agent swarm, not a single planner LLM. Independent agents coordinate through a shared 'stigmergic blackboard' — a finding posted by one agent wakes up whichever other agents are relevant, so recon, classification, exploitation and reporting run concurrently instead of a fixed pipeline.
How do I get it running?Install with one command, then run 'pentestswarm run' to open an interactive TUI launcher where you pick your AI provider, enter a key, and choose a target — a real URL or a bundled vulnerable lab (crAPI, Juice Shop, VAmPI, DVGA) that spins up and tears down automatically. For CI or scripting, the underlying 'scan' command is fully flag-driven.
Do I need an API key or cloud account to use it?No — you can run it fully offline with local Ollama or LM Studio models and no key at all, or plug in Claude, OpenAI, Gemini, or Together AI's hosted Llama/Qwen/DeepSeek models by pasting a key into the launcher.
Is the swarm mode ready for production use?Not fully — the stigmergic swarm scheduler, the live dashboard, the MCP server, the VS Code extension and the GitHub Action are all still labelled alpha or beta. The default, battle-tested mode is the sequential 5-phase runner; swarm mode is opt-in via a --swarm flag.
Who is this built for?Pentesters covering a whole scope overnight, bug bounty hunters racing for first-blood on a fresh target, red teamers who need breadth fast, and researchers pushing autonomous offense.
Does my target data leave my machine?No — run with local models, it's air-gapped with zero API cost and not one byte of your data leaving your box.
Is there a catch with the license or legal use?It's AGPL-3.0, fully open to fork and self-host, but the authors are explicit it's for authorized testing only — you need written permission from the target owner before scanning, since unauthorized access is illegal under laws like the CFAA.
What security tools does the swarm wire up out of the box?Eight native tools: the ProjectDiscovery suite (subfinder, httpx, nuclei, naabu, katana, dnsx, gau) plus an nmap adapter, with Burp MCP, Metasploit and sqlmap integrations planned for a later wave.
What is the Jev feature?Jev is an optional, off-by-default module that filters false positives and scores candidate attack paths in real time so the swarm pursues the most promising one first; both sub-features fail open if disabled.
Can I try it without attacking a real target?Yes — 'pentestswarm demo' replays a full campaign offline, and the launcher can also spin up disposable, legal vulnerable labs like crAPI, Juice Shop, VAmPI, or DVGA that tear down automatically after the run.
How does Pentest Swarm AI compare to XBOW?XBOW is a closed, hosted single-agent SaaS; Pentest Swarm AI is open-source (AGPL), self-hosted on your own infra and model of choice, and runs dozens of agents concurrently instead of just one.
What are similar projects?redamon, sapper-v2, ruflo, strix, PentestGPT, brigade, ARTEX, 0security
Creator
Armur-Ai
Size
84.4 MB
Stars
3.3K
Age
2y
Commits · 90 Days