Compare / Cairn

Open-source tool

Pentest-Swarm vs Cairn

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.

In November 2026 Palo Alto Networks' Unit 42 reported that a China-nexus actor used a customised Cairn fork in 25 operations against at least 19 organisations in August and September 2026. Google's threat intelligence team also named CAIRN among frameworks seen in intrusions.

Last reviewed 23 November 2026 from public sources listed below. Spotted something out of date? Tell us.

At a glance

AttributePentest-SwarmCairn
GitHub stars≈3.3k≈5.7k
Open sourceYes — AGPL-3.0 core on GitHub. Some high-impact capabilities are reserved for the managed platform, behind asset-ownership verification.Yes — AGPL-3.0, with a commercial licence available from the author.
DeploymentSelf-hosted CLI (npm, Homebrew, Go, Docker) with a TUI and local dashboard; or fully managed by Armur.Docker Compose, CLI, or a local mode with no sandbox.
What it testsWeb applications and APIs (REST and GraphQL), plus playbooks for external attack surface, internal network ranges and CTF.Pentesting, CTF and vulnerability research.
How it worksRecon, classify, exploit and report agents coordinating through a shared, pheromone-weighted blackboard. The swarm scheduler is alpha; the sequential runner is the stable default.Blackboard-style 'fact-intent graph' with role-less OODA-loop workers.
Model choiceYour choice: Claude, Gemini, Together AI (GLM, Qwen, DeepSeek), any OpenAI-compatible API, or fully local Ollama / LM Studio.Claude Code, Codex and Pi CLIs as backends; local model support not documented.
Finding validationNon-LLM verification oracles — out-of-band callback, differential response, timing (--verify, beta) — plus sandboxed Python proof-of-concept generation.Not described.
Scope & safety controlsScope enforced in code at the tool layer and again at the executor, fail-closed; egress guard; target authorisation; full audit trail.Authorised-use notice; local mode runs without a sandbox.
PricingFree to self-host. Managed continuous testing (Offensive AI): $3,600 per year.Free; commercial licence available.
Key differences

What actually differs.

Same idea, different guardrails

Both use shared-board coordination. Pentest-Swarm adds fail-closed scope enforcement at two layers, an egress guard, target authorisation and an audit trail.

Model independence

Pentest-Swarm talks to model APIs directly, including local Ollama and LM Studio; Cairn drives coding-agent CLIs.

Verification

Pentest-Swarm confirms findings with non-LLM oracles.

Choose Cairn if
  • You are researching agent coordination and want a compact framework to experiment with.

Questions

Was Cairn used by attackers?

Unit 42 reported in November 2026 that a China-nexus actor used a customised Cairn fork in 25 operations against at least 19 organisations.

Sources

  1. Cairn on GitHub
  2. Unit 42 on Cairn (12 Nov 2026)
  3. Google Threat Intelligence & Mandiant: ARTEX and Friends (31 Oct 2026)

Competitor details come from their public websites, documentation, repositories and press coverage as of 23 November 2026. Product names and trademarks belong to their owners. Pentest-Swarm details reflect its README and documentation.

More comparisons