Cairn
Best for: Experimenting with blackboard-style agent coordination for CTFs and research.
Compare / Cairn vs Villager
Cairn: An open-source agentic pentest framework whose role-less workers coordinate through a shared fact-intent graph. Villager: An AI-native pentesting framework from Chinese group Cyberspike that pairs Kali Linux tooling with DeepSeek models, published on PyPI. This comparison mixes defensive tools with a framework that investigators have tracked in real attacks — read it as a guide to what attackers can now automate, and what you can run against your own systems first.
We also show where Pentest-Swarm, our open-source autonomous pentester, fits — and say plainly when one of these is the better choice.
Last reviewed 23 November 2026 from the public sources listed below. Spotted something out of date? Tell us.
Best for: Experimenting with blackboard-style agent coordination for CTFs and research.
Best for: Not recommended: dual-use tool with reported links to malware.
Best for: Open-source, self-hosted autonomous testing of web apps and APIs with verified findings.
| Capability | Cairn | Villager | Pentest-Swarm |
|---|---|---|---|
| Open source | ● | ○ | ● |
| Self-hosted | ● | ● | ● |
| Runs on local models | ○ | ○ | ● |
| Choose your own model | ○ | ○ | ● |
| Autonomous AI agents | ● | ● | ● |
| Tests web apps | ● | ● | ● |
| Tests APIs | ○ | ○ | ● |
| Tests networks / AD | ◐ | ◐ | ◐ |
| Public pricing or free | ● | ● | ● |
| Capabilities ticked | 5.5 / 9 | 4.5 / 9 | 8.5 / 9 |
● yes · ◐ partly · ○ no. Pentest-Swarm ticks the most boxes here — but a checklist is not a verdict: depth of testing, maturity and support matter too, and are covered below.
| Attribute | Cairn | Villager | Pentest-Swarm |
|---|---|---|---|
| Open source | Yes — AGPL-3.0, with a commercial licence available from the author. | Distributed as Python packages on PyPI (villager and kali-driver); a licence is not publicly documented. | Yes — AGPL-3.0 core on GitHub. Some high-impact capabilities are reserved for the managed platform, behind asset-ownership verification. |
| Deployment | Docker Compose, CLI, or a local mode with no sandbox. | Python package that spins up containerised Kali Linux environments, which Straiker reports self-destruct after 24 hours. | Self-hosted CLI (npm, Homebrew, Go, Docker) with a TUI and local dashboard; or fully managed by Armur. |
| What it tests | Pentesting, CTF and vulnerability research. | General penetration testing using Kali Linux tooling; specific target coverage is not publicly documented. | Web applications and APIs (REST and GraphQL), plus playbooks for external attack surface, internal network ranges and CTF. |
| How it works | Blackboard-style 'fact-intent graph' with role-less OODA-loop workers. | An MCP client service that orchestrates tasks, with a retrieval layer of 4,201 system prompts and Pydantic AI for structured outputs, according to Straiker. | Recon, classify, exploit and report agents coordinating through a shared, pheromone-weighted blackboard. The swarm scheduler is alpha; the sequential runner is the stable default. |
| Model choice | Claude Code, Codex and Pi CLIs as backends; local model support not documented. | A DeepSeek-based model accessed through OpenAI-compatible endpoints, according to Straiker. | Your choice: Claude, Gemini, Together AI (GLM, Qwen, DeepSeek), any OpenAI-compatible API, or fully local Ollama / LM Studio. |
| Finding validation | Not described. | Not publicly documented. | Non-LLM verification oracles — out-of-band callback, differential response, timing (--verify, beta) — plus sandboxed Python proof-of-concept generation. |
| Scope & safety controls | Authorised-use notice; local mode runs without a sandbox. | Not publicly documented. Straiker reported that Cyberspike's earlier red-team suite integrated AsyncRAT and Mimikatz plugins. | Scope enforced in code at the tool layer and again at the executor, fail-closed; egress guard; target authorisation; full audit trail. |
| Pricing | Free; commercial licence available. | Not publicly documented. | Free to self-host. Managed continuous testing (Offensive AI): $3,600 per year. |
Cairn is open source; Villager is not. Cairn: Yes — AGPL-3.0, with a commercial licence available from the author. Villager: Distributed as Python packages on PyPI (villager and kali-driver); a licence is not publicly documented.
Cairn and Villager are free. The table above has the detail each vendor publishes.
Cairn: Not described. Villager: Not publicly documented.
Cairn is an AGPL-3.0 framework in which role-less workers run an observe-orient-decide-act loop and coordinate only through a shared board — architecturally close to Pentest-Swarm's blackboard. It drives Claude Code, Codex or Pi CLIs as its backends.
Choose Cairn if:
Villager is an AI-native penetration testing framework released on PyPI on 23 July 2025 by Cyberspike, a Chinese group. Straiker's researchers reported that it acts as an MCP client orchestrating on-demand Kali Linux containers and a DeepSeek-based model, and that it reached 10,030 downloads in about two months. They compared it to Cobalt Strike — a commercial tool widely abused by attackers — and reported that Cyberspike's earlier product bundled the AsyncRAT remote-access trojan.
Pentest-Swarm is an open-source swarm of AI agents — recon, classification, exploitation and reporting — that coordinate on a shared blackboard to find, prove and report vulnerabilities in web apps and APIs. Compared with Cairn and Villager:
npm install -g @armurai/pentestswarm
pentestswarm runCairn — An open-source agentic pentest framework whose role-less workers coordinate through a shared fact-intent graph. Villager — An AI-native pentesting framework from Chinese group Cyberspike that pairs Kali Linux tooling with DeepSeek models, published on PyPI.
Cairn is open source. Villager: Distributed as Python packages on PyPI (villager and kali-driver); a licence is not publicly documented. Pentest-Swarm is also open source (AGPL-3.0).
Cairn: Free; commercial licence available. Villager: Not publicly documented. For comparison, Pentest-Swarm is free to self-host and Armur's managed version costs $3,600 per year.
Yes. Pentest-Swarm is an open-source autonomous pentester: a swarm of AI agents that finds, verifies and reports vulnerabilities in web apps and APIs. You can self-host it with any model, including local models via Ollama, or have Armur run it for you.
Details come from each vendor's public website, documentation, repositories and press coverage as of 23 November 2026. Product names and trademarks belong to their owners. Armur makes Pentest-Swarm, so weigh our view accordingly.