Building duelswarm
What a range has to get right before anything it says about AI attackers and defenders means anything.
duelswarm is a sandboxed network where an AI attacker tries to steal data, an AI defender tries to stop it, and a set of fixed rules decides what either one is allowed to touch. Everything that happens goes into a log that cannot be quietly edited.
It is not a product and it is not a benchmark. It is a place where four specific claims can be proven wrong. Most of the work so far has gone into making sure it cannot lie to me and each of the ways it tried ended up teaching me something worth writing down on its own.
Copy a real intrusion, not a puzzle
A range built out of imagination only tests what you imagined. So I shaped the network after a real case: the DIVD breach, an AI-driven attack whose victim published everything. There is one exposed application, a database behind it, a login service, and internal mail, a wiki, and a ticket system. The network rule holds and identity is the only way onward, because that is what actually happened.
One incident is still only one shape and a result on it only tells you what happens on networks like it. That is why there is a second, different network, to check whether anything an attacker learns carries over.
The attacker gets no map
A real attacker shows up blind and has to pay for its map by looking around. Mine is told what it wants and nothing else: no addresses, no passwords, and no list of what is off limits. If a real machine name ever reaches it, I treat that as a bug.
The network is not empty
On a network with no other activity, every single event is the attacker by definition and detection becomes free. So ordinary users run on a schedule the whole time, really logging in and really reading, which gives the attacker something to hide in and gives the defender something it can actually break.
The enforcers decide, not my code
Every rule lives in the thing that owns what it protects: the router, the login service, each service checking its own tokens, and the database. My engine just sends the request and writes down the answer. Each enforcer keeps its own record and a separate checker compares all of them against the log. I explain why that matters in Where the Floor Actually Lives.
A no is just a no
Every refusal looks the same, byte for byte, no matter which rule produced it. Which rule actually refused goes into the record and never back to the agent. Otherwise the refusals themselves turn into a map.
The defender pays for its mistakes
The defender is an AI with no human in the loop. It can take access away and give it back, but never past what the rules allow. It is scored on what it actually caused, worked out from the records afterward and never from what either AI says about itself. That means the harm the attacker caused, how much of the ordinary service broke along the way, and whether the attacker persisted in the system. A defender that shuts everything off stops the attacker and the business in the same move and scoring only the first half is how a range ends up flattering its defender.
Memory carries technique, not a map
Both sides remember what they learned from one episode to the next, but they don’t start from the same place. The attacker is map blind: it never sees the layout of the network and has to discover it again every episode. The defender has the full map, the same way a real defender knows its own network. Either way, a check fails the run if a lesson contains a machine name, an address, or a secret, because otherwise “learning” just means memorizing this particular network.
What is not mine
The vulnerable targets come from Vulhub and the range generator builds on Brian Singer’s MHBench. The fixed rule is a fifty-year-old idea. The code is at github.com/drcano/duelswarm and where the build stands is on the Status page.
Almost every rule above exists because an earlier version of the range got it wrong. That list is in What I Threw Out.