Pentest Swarm AI
An open-source swarm of AI pentest agents that exploits what it finds and proves it with a reproducible PoC.
- Source repo
- Armur-Ai/Pentest-Swarm-AI
- Stars
- ★ 3.3k
- Last updated
- today
- FARS reviewed
- Nov 23, 2026
- License
- AGPL-3.0
- Primary language
- Go
- FA score
- 41/100 · Major gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformOpenAI API · Claude API
- Cost
- Free tier plus a paid hosted plan
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- A bug-bounty hunter races a freshly launched target through recon → classify → exploit → proof breadth-first using
pentestswarm playbook run bug-bounty. - Not a fit if
- Teams that need full automated exploitation out of the box — that lives only in the commercial edition
- Teams requiring production-grade stability; the project labels itself alpha, with the swarm scheduler alpha
- Anyone without an authorized target, since scope is enforced fail-closed
- Website
- armur.ai/open-source ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-23
- Source review
- 41/100 · Major gaps
What does this agent do, and when should you use it?
Pentest Swarm AI is Armur AI's open-source autonomous penetration-testing platform, written in Go 1.24 under AGPL-3.0 and currently at alpha status. It runs in two modes: a stable sequential five-phase runner, and a stigmergic swarm scheduler enabled with --swarm, where recon, classify, exploit and report agents each carry their own trigger predicate and coordinate through a shared Postgres 16 + pgvector blackboard, with pheromone weights that decay per finding type deciding which agent wakes next. The tool layer drives subfinder, httpx, nuclei, naabu, katana, dnsx, gau and an nmap adapter, and the exploit stage can generate a self-contained Python PoC that is safety-scanned and then run in a sandboxed runner against the authorized target. A --verify flag re-checks high-stakes findings with non-LLM oracles (out-of-band callback, differential response, timing) and stamps confirmed ones as VERIFIED. Models are interchangeable — Claude, Together AI, any OpenAI-compatible endpoint, Gemini, or fully local Ollama / LM Studio — and output is a graded report with evidence, severity and CVSS v3.1, available as Markdown, JSON or SARIF, plus an AssessmentSnapshot envelope for the wider Armur suite.
1) pentestswarm install-tools fetches the recon and exploitation toolchain: subfinder, httpx, nuclei, naabu, katana, dnsx, gau, plus an nmap adapter that parses XML output and scope-validates it. 2) pentestswarm scan <target> --scope <scope> starts a campaign — by default the stable sequential five-phase runner; with --swarm the stigmergic scheduler takes over, and the four agents read and write findings on a pgvector blackboard whose pheromone weights decay at type-specific half-lives (a PORT_OPEN stays hot for hours, a SESSION for minutes). 3) With --verify, high-stakes findings are re-confirmed on the live target by a non-LLM oracle (out-of-band callback, differential response, or timing) and recorded with a VERIFIED badge and a 1.0 attack-graph edge. 4) The exploit stage writes a self-contained Python PoC, safety-scans it, runs it in a sandboxed runner against the authorized target, and checks the result against observed evidence. 5) Output is a graded report carrying evidence, severity and CVSS v3.1 scoring in Markdown, JSON or SARIF, with --format snapshot exporting an AssessmentSnapshot JSON envelope. 6) Surrounding interfaces include pentestswarm run (an interactive TUI launcher with provider selection and readiness checks), pentestswarm playbook run <name> (bug-bounty, external-asm, ci-cd-security, api-security, graphql-audit, owasp-top10, internal-network, ctf-solver), pentestswarm serve (API server plus a localhost:7777 web dashboard) and pentestswarm mcp serve (a JSON-RPC stdio MCP server for Claude Desktop and Cursor). 7) Every agent inherits one provider config, so swapping the model is a single change; the Claude path enables prompt caching by default.
- A bug-bounty hunter races a freshly launched target through recon → classify → exploit → proof breadth-first using
pentestswarm playbook run bug-bounty. - A security team covering a large external attack surface of subdomains wants many agents working concurrently rather than one planner walking a queue.
- An engineering team gates releases in CI/CD with the
ci-cd-securityplaybook, emitting SARIF for its scanning platform against an authorized staging host. - An API team needs a focused pass on object-level and function-level authorization (BOLA/IDOR/BFLA) via the
api-securityorgraphql-auditplaybook. - An organization that cannot let target data leave its infrastructure runs the whole swarm on local Ollama or LM Studio, air-gapped and with zero API cost.
- A security engineer wants Claude Desktop or Cursor to drive scans directly, exposing capabilities through
pentestswarm mcp serve.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
npm install -g @armurai/pentestswarm # npm (Node >= 16)curl -fsSL https://raw.githubusercontent.com/Armur-Ai/Pentest-Swarm-AI/main/scripts/install.sh | sh # macOS/Linuxbrew install Armur-Ai/tap/pentestswarm # Homebrewgo install github.com/Armur-Ai/Pentest-Swarm-AI/cmd/pentestswarm@latest # Go toolchain
- Environment variables
PENTESTSWARM_ORCHESTRATOR_API_KEY- Runtime
- Node.js 16+ · Go 1.24
- Install notes cover
- macOS · Linux · Docker
How do you install or deploy this agent?
Install the CLI with any of these (the order follows the README quickstart):
npm install -g @armurai/pentestswarm # npm (Node >= 16)
curl -fsSL https://raw.githubusercontent.com/Armur-Ai/Pentest-Swarm-AI/main/scripts/install.sh | sh # 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 # DockerBuilding from source needs Go 1.24 alongside Postgres 16 + pgvector and Redis 7:
git clone https://github.com/Armur-Ai/Pentest-Swarm-AI.git
cd Pentest-Swarm-AI
./scripts/setup.sh # installs tools, starts Postgres/Redis/Ollama
make build
make testThen pull the recon/exploit toolchain and run a health check:
pentestswarm install-tools
pentestswarm doctorCredentials: cloud providers read PENTESTSWARM_ORCHESTRATOR_API_KEY; Ollama and LM Studio need no key at all.
How do you use this agent?
The easiest front door is the interactive launcher, which walks you through provider, key, target (or a bundled vulnerable lab) and live view, then starts the campaign:
pentestswarm runFor scripting and CI, call scan directly:
# no key needed: local model against a bundled lab (crAPI / Juice Shop / VAmPI / DVGA)
pentestswarm scan --lab --lab-target crapi --provider ollama --swarm --tui
# real authorized target with a cloud model
export PENTESTSWARM_ORCHESTRATOR_API_KEY=your-key-here
pentestswarm scan <authorized-target> --scope <target> --swarm --follow
# confirm high-stakes findings with a non-LLM oracle
pentestswarm scan <authorized-target> --scope <target> --swarm --verifyRun a task-specific playbook:
pentestswarm playbook list
pentestswarm playbook run api-security --target https://api.example.com --scope api.example.comStart the API server and local dashboard, or expose the agent over MCP:
pentestswarm serve # API server + dashboard on localhost:7777
pentestswarm mcp serve # JSON-RPC stdio MCPSwapping models is pure configuration — here the whole swarm runs on Together AI's GLM:
orchestrator:
provider: "together"
model: "zai-org/GLM-5.3"
api_key: "" # or export PENTESTSWARM_ORCHESTRATOR_API_KEY
context_window: 128000Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
Inherits capabilities of connected MCP servers; audit third-party servers before enabling.
What are this agent's strengths and limitations?
- A genuine swarm rather than a pipeline: agents trigger each other through pheromone-weighted blackboard findings, each carries its own predicate, and adding an agent needs no orchestrator rewrite — which is what makes wide attack surfaces tractable concurrently.
- Non-LLM verification oracles (out-of-band callback, differential response, timing) independently re-check high-stakes findings, producing a VERIFIED badge instead of a list of maybes.
- Model-agnostic by design: Claude, Together AI, any OpenAI-compatible endpoint, Gemini, Ollama or LM Studio, including fully offline self-hosting — swap the engine, keep the harness.
- Safety is a shipped feature, not a footnote: scope enforced at both the tool layer and the executor, fail-closed, plus egress guard, target authorization and a full audit trail.
- Broad delivery surface: CLI, full-screen TUI, web dashboard, MCP server, VS Code extension, a GitHub Action with SARIF output, a Docker image, and nine ready playbooks.
- Outputs compose downstream: Markdown/JSON/SARIF reports and a versioned AssessmentSnapshot envelope that plugs into Engira, Dhantra, Akira and Hayagriva over armur-contracts.
- Self-labelled alpha: the swarm scheduler, verification oracles, exploit chains and web dashboard are alpha/beta, and dashboard wiring to live campaigns is still in progress.
- The free edition deliberately caps capability — full exploit automation and high-intensity exploitation are reserved for a commercial platform gated behind asset-ownership verification.
- Self-hosting is not zero-config: the full swarm wants Postgres 16 + pgvector, Redis 7, Go 1.24 and the ProjectDiscovery toolchain pulled via install-tools.
- Quality depends on the model you bring; the README itself recommends cloud models for best results, and providers must support native tool/function calling.
- No benchmark numbers yet: Cybench, AutoPenBench and CVE-Bench runs are still roadmap items, so there is no third-party effectiveness data to compare against.
- Hard authorization precondition: it only runs against assets you own or are permitted to test, and anything out of scope is refused fail-closed.
How does this agent compare with similar options?
The README names its alternatives directly. Against XBOW, this project is open source (AGPL), self-hosted and swarm-based, where XBOW is a closed hosted SaaS with a single agent. Against PentestGPT and HackingBuddyGPT, those are single-agent designs without persistent memory or native tool wiring. PentAGI uses four agents plus a planner and pgvector but is classified as a pipeline, not a swarm. Shannon takes a white-box plus browser route and is likewise a pipeline. HexStrike is an MCP tool wrapper with no state of its own that delegates reasoning to the client LLM. Pentest-R1 is an RL-tuned open model that this project can adopt as its engine. The README invites PRs to keep the table honest and notes that benchmark figures have not been published yet.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Pentest Swarm AI This agent | 41 · Major gaps | CLIFreemium | ★ 3.3k | today | Go | OpenAI API · Claude API |
| JoySafeter | 53 · Major gaps | Self-hosted serviceFree + model costs | ★ 319 | 7mo ago | Python | — |
| ARTEX | 55 · Major gaps | — | ★ 18k | today | Go | OpenAI API · Claude API |
| Self-hosted AI Starter Kit | 51 · Major gaps | Self-hosted serviceFree | ★ 15k | 4mo ago | — | — |
How does FollowAgents rate this agent?
Why each dimension lost points
README asserts fail-closed scope, egress guard, authorization gate and audit trail, but the sampled files only show a read-only apiserver and a CORS toggle; no scope enforcement, egress control or authorization check code is present, so 1. User confirmation: an interactive TUI launcher and --scope flag are described, but no pre-execution confirmation or dry-run evidence. Data-flow transparency: README claims data stays local, but model-call and target-traffic paths are not shown. Sensitive data: go-keyring in go.mod hints at credential storage, but no key-handling policy is shown. Dependency security: go.mod has many deps including pseudo-versions (armur-contracts, chromedp/cdproto) with no audit or lockfile rationale. External effects: this is an active offensive tool; Responsible Use and SECURITY.md disclaimers exist, but no default restriction on destructive actions is shown. Rollback: README mentions cleanup registration and reverse-order cleanup, but no cleanup code is in the sample. Source attribution: heavy marketing and XBOW comparison, but no clear attribution/licensing of wrapped third-party tools (nuclei/nmap etc.).
Self-consistency: README badge says Go 1.24 while go.mod and CI use 1.26 — an inconsistency; the 742 commits/41 releases claim is unverifiable in the sample. Dependency availability: go.mod uses several pseudo-versions and a 'latest' tag (golangci-lint version: latest), weakening reproducibility. Failure messages: npm/bin/cli.js gives a clear missing-binary error with reinstall guidance, and apiserver has structured logging and graceful shutdown, so 2.
Audience and scenarios: README enumerates bug bounty, CI/CD, API, GraphQL, OWASP, internal network and CTF playbooks — well covered, 2. Capability boundaries: README says the OSS edition deliberately limits the strongest capabilities and the commercial edition unlocks them, but the specific limits are not stated in the sample. Trigger precision: playbooks and --scope exist, but trigger predicates or misfire guards are not shown. Environment fit: five install paths plus local Ollama/LM Studio give good environment fit, 2.
Information architecture: README is well structured with quick start, use cases, architecture and comparison table, 2. Install notes: five install methods and run commands are explicit, 2. Naming stability: module path and CLI name align, but the npm package @armurai/pentestswarm differs from the repo name and the project is alpha. Examples and FAQ: many command examples and a use-case table, 2. Known limitations: only a vague alpha note and OSS-edition limit, no concrete list. License: full AGPL-3.0 LICENSE matching metadata, 2. Versioning/changelog: README cites 41 releases but no CHANGELOG in the sample. Maintenance responsibility: SECURITY.md gives a contact and response SLA, but publisher identity is unverified so ownership is unclear.
Output usability: README claims evidence, severity, CVSS and graded reports; test fixtures show structured CVSS output, but no actual report sample is present. Marginal value: claims swarm and verification oracles beat scanners, but no oracle implementation is in the sample, so the claim is unsupported. Cost-benefit: local Ollama gives a zero-API-cost floor, but resource cost of a concurrent swarm is not discussed.
Claim traceability: many marketing claims (most active, 742 commits, Black Hat) lack in-sample evidence. Cross-source corroboration: CI workflow and go.mod corroborate Go build/test existence, but core safety claims have no code backing. Fact/inference separation: README blends marketing inference with fact, e.g. 'safe by design' and 'deterministic structure' without verifiable basis.
- This is an active offensive tool: use only against authorized assets, as README and SECURITY.md stress; misuse may be illegal.
- README safety claims (fail-closed scope, egress guard, authorization gate) lack implementation code in the sample; do not assume safety from them.
- go.mod contains several pseudo-version dependencies and CI uses a 'latest' tag, raising reproducibility and supply-chain concerns.
- README has a Go 1.24 vs 1.26 inconsistency and many marketing claims unverifiable in the sample.
- Publisher identity is unverified by FollowAgents; maintenance responsibility and update path are unclear.
FAQ
What separates the free edition from the commercial one?
Do I need a model API key to try it?
--provider ollama or LM Studio everything runs locally. The README's keyless entry point is pentestswarm scan --lab --lab-target crapi --provider ollama --swarm --tui, which spins up a bundled vulnerable lab, attacks it and tears it down. For higher quality, set PENTESTSWARM_ORCHESTRATOR_API_KEY and use Claude, Gemini, Together AI or any OpenAI-compatible endpoint.Can it leave the scope I give it?
--scope is not bypassable; that sits alongside egress control, target authorization and a full audit trail, with cleanup registered before execution so SIGINT, crashes and budget exhaustion all trigger reverse-order teardown. It is still alpha software, so validate configuration against an authorized lab before a real engagement.Where does the VERIFIED badge come from?
--verify flag turns it on; it is off by default and ignored under --dry-run/--safe-mode.How does it fit into an existing pipeline or agent client?
deploy/github-action/action.yml is a GitHub Action with SARIF output; pentestswarm serve exposes an API server plus a localhost:7777 dashboard; and pentestswarm mcp serve speaks JSON-RPC stdio MCP for Claude Desktop and Cursor. On the reporting side you get Markdown, JSON, SARIF and an AssessmentSnapshot via --format snapshot.Is Pentest Swarm AI open source?
Is Pentest Swarm AI safe to use?
Is Pentest Swarm AI still maintained?
Who makes Pentest Swarm AI?
What is Pentest Swarm AI's official website?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.