sapper-v2: The AI Pentest Swarm That Won a 634-Team CTF

By 6 min read
sapper-v2 multi-agent AI pentest swarm with a commander model directing cheaper worker agents in a Tencent CTF

An open-source swarm of AI agents says it beat 633 teams in a hacking contest while using less than a quarter of the runner-up’s tokens. The project is sapper-v2, it appeared on GitHub on 30 October 2026, and four weeks later it had 2,683 stars and 1,296 forks.

In short: sapper-v2 is a multi-agent AI pentest harness that reports first place in the online qualifier of Tencent’s 3rd Intelligent Attack-Defense Challenge, but the figures come from the project itself and its own documents do not fully agree.

That gap is the interesting part. Here is what sapper-v2 is, what the numbers say, and what defenders should take from it.

Three headline figures for sapper-v2: an 80.18 score, 1.0B tokens used and 2,683 GitHub stars.
These are project-reported figures, and no outside party has audited the result.

What is sapper-v2?

sapper-v2 is an orchestration layer for many AI agents, not a single smarter agent. Its README says so plainly and calls it an “autonomous pentest legion”.

The design has four roles and one script:

Role Model in the contest Job
Commander GLM-5.3 Reads the scoreboard, picks targets, dispatches work. Never attacks itself.
General GLM-5.3 Takes over hard targets after workers stall
Soldier DeepSeek V4.1 Flash Does most of the routine work
Scout DeepSeek V4.1 Flash Quick recon to judge how hard a target is
Watchdog No model, plain script Restarts crashed agents, rotates API keys, stops at the deadline

The agents run in tmux panes and talk by typing into each other’s input boxes. Memory lives in a shared, three-layer fact graph (title, summary, evidence), so a worker whose context fills up can be replaced and its successor reads what it learned. That foundation is published separately as nvwabase, and the README credits Cairn as a reference for recording agent history.

The licence is MIT. A prebuilt Docker image with a full Kali toolchain ships as release v18-champion, dated 1 November 2026.

How did sapper-v2 win the Tencent CTF?

According to its README, through cheap division of labour rather than raw model power. The claimed result:

Team Score Flags Tokens
sapper-v2 80.18 85 1.0B
Runner-up 79.29 85 4.5B
Other top-10 teams n/a n/a 1.5B to 4.5B

The README says it reached the same 85 flags as the runner-up 25 seconds sooner, ran 8 hours unattended, and also took first prize in the GeekCon 2026 AI Challenge. AlphaSignal reported the same figures on 3 November and labelled them project-reported.

Bar chart comparing sapper-v2 using 1.0B tokens against the runner-up using 4.5B tokens.
sapper-v2 reports using about a quarter of the runner-up's tokens, according to its own README.

The Chinese-language battle report in the repo explains how. The biggest lever was what it calls family transfer. The challenge set contained many near-identical apps, so once one was solved, the commander wrote the method to the fact graph and new workers started from it. After one target took 84 minutes, the swarm took 12 or more flags in about 40 minutes. A later family of multi-stage targets took 30 to 90 minutes each at first, then fell quickly once the chain was worked out.

Four-step flow showing how solving one target let the swarm clear similar targets faster.
Family transfer let the commander reuse one solved method, so similar apps fell in about 40 minutes (project battle report).

The report puts the model bill at about 110 yuan, roughly 2.4 yuan per flag.

What the numbers do not tell you

This is the section the launch coverage skipped. The project’s own documents disagree with each other.

Claim README Battle report
Flags captured 85 About 45
Field 634 teams First of 50 teams that had posted scores
Challenges solved Not stated 36 or more of 63

The two may be measuring different things, for example registered teams against teams that scored. The project does not say. explainx.ai, which covered the tool on 17 November, called the figures claimed and not independently audited. We found no independent confirmation either.

Other limits worth stating:

  • It is a CTF. Targets were known, scored and time-boxed. The README says the build was designed for the competition and checks for the arena API at startup, and AlphaSignal notes that real networks need separate evaluation.
  • It stalled. The battle report describes an 84-minute stall on one target, failed flag submissions, and a climb from 25th to 15th to 5th to 3rd before finishing first.
  • The margin was tiny. 0.89 points separated first and second, and the report credits a final sweep for unsubmitted flags with about 4 of those points.
  • The weaknesses were ordinary. The battle report describes a standard loop of port scan, service identification, vulnerability matching and exploitation. Nothing in it points to new vulnerability classes.

Why does sapper-v2 matter?

Because it shows cost, not capability, is the thing that is moving. The design lets a strong model make a few decisions while cheap models do thousands of steps, and the project claims that cut its token use by more than three quarters.

That matters for defenders. A swarm that reuses one working method across every similar system is exactly what you face if you run many copies of the same web app or appliance. The Swiss AI agent cyberattacks and the BOSSAI attack mesh both relied on the same pattern of ordinary flaws found at scale.

The fork count is also notable. 1,296 forks against 2,683 stars is a high ratio, and a fork is a private copy nobody can recall. As we saw when CyberStrikeAI was shut down, removing an offensive repo later does not remove the copies.

The authors propose a fix of their own: a “taggant”, markings built into the harness that would leak the operator’s identity to victims during illegal use. Their disclaimer says a tracer is in development. It has not shipped, and the authors admit stripping it is a hard problem.

What should defenders do?

  • Assume your look-alike systems fall together. If one instance of a template app is exploitable, treat all of them as exploited. Patch and harden as a fleet.
  • Fix the basics first. Weak credentials, exposed admin panels and known CVEs are what agent swarms convert into flags fastest.
  • Watch for tireless activity. Eight hours of continuous, methodical probing from one source, with retries seconds after failures, is a useful signal.
  • Plant bait. Agents that copy a working method across similar targets will copy a decoy too. Our guide to AI agent honeypots covers where to start.
  • Vet forks before your red team uses them. If you test with sapper-v2, use the original repo, pin a reviewed version and run it isolated.

The bottom line

sapper-v2 is a clever, cheap way to make many AI agents work as one team, and its reported CTF win is plausible but unaudited, with internal figures that do not match. The lesson for defenders is not that AI swarms are unstoppable. It is that a swarm solves your tenth identical system almost for free once it has solved the first.

Sources

This article is written for defenders and authorised security testers. Only test systems you own or have written permission to assess.

Frequently asked questions

What is sapper-v2?

sapper-v2 is an open-source multi-agent orchestration harness for autonomous penetration testing, published on GitHub by N1nEmAn of VarFusion Lab under the MIT licence. One AI commander assigns targets to worker agents running in tmux panes, and all of them share a layered fact graph as memory.

Did sapper-v2 really beat 634 teams?

The project says it was champion of the online qualifier of the 3rd Tencent Cloud Intelligent Attack-Defense Challenge, which it describes as a 634-team event. Its own battle report says it ranked first among 50 teams that had posted scores, and no independent party has audited the numbers.

Which AI models does sapper-v2 use?

In the contest, the commander and the 'general' agents ran GLM-5.3 and the 'soldier' and 'scout' agents ran DeepSeek V4.1 Flash, according to the README. The harness is model-agnostic, so any agent CLI and model can be swapped in.

How is sapper-v2 related to Cairn?

The sapper-v2 README thanks Cairn as a reference for how it records history for AI agents. Both projects come from the Tencent Cloud AI pentest competitions: Cairn reports third place among 610 teams in the 2nd edition, sapper-v2 claims first in the 3rd edition qualifier.

How do you defend against tools like sapper-v2?

Fix what these agents find quickly: weak credentials, exposed web apps and known, unpatched flaws. Watch for long, tireless bursts of activity from one source, and use decoys, because agents that reuse a working approach across similar systems also reuse the bait.

Keep reading

sapper-v2AI pentestingmulti-agent AITencent CTFoffensive AIGitHub trendsopen source