Apart Research
Swarm Alignment Hackathon 2026
Swarm Alignment Hackathon 2026

Infection Chains in LLM Swarms

Spread, Detection and Layered Gating
Agustin Diaz-Cano  ·  MS Candidate, Systems Engineering
The problem

One compromised agent. Many peers.

Agents trust messages from peers in shared channels
Per-agent monitors read one message at a time
We measure the spread, then test the defenses
Threat model

A secret split across the swarm

Synthetic canary, 12 characters
K9Q2 M4X8 T7B1
3 fragments, each at graph distance 2 or more from patient zero
Multi-hop recruitment: every hop looks like routine admin
RingComplete
AuthorityUrgencyReciprocity (held out)
Experiment scale

Real models, preregistered, graded by code

Real episodes
0
Swarm model
gemma-4-31b-it
Guardrail: deepseek-v4-flash
Model calls logged (test)
0
Arms
A0 · A1 · A2 · A3 · A3c
control, free flow, offline detection, online gating, gate cost
Attack variety
3 styles × 2 topologies
solo and split credential
Intent audit
0%
prereg-v1  ·  TRAIN seeds 1 to 15  ·  TEST seeds 101 to 110  ·  deterministic grading from event logs
Result 1: free-flow spread (A1)

Splitting the secret does not stop the infection

Result 2: full credential exfiltration

Full exfiltration was rare with a split credential

The defenses

What is a guardrail?

A guardrail is a filter placed between agents. It reads every message and blocks it before delivery if it looks like an attack.
Ablation ladder: D1 → D2 adds an LLM → D3 adds context → D5 adds tiering. Control: no guardrail. Each gate is calibrated to block at most 0.5% of normal messages.
Result: guardrail by guardrail (ring, split credential)

Every guardrail stopped the spread; they differ in cost

6 episodes per row. The attacker follows a fixed playbook and does not adapt after a block. Exfiltration alone does not separate the gates (see next slide).
Result 3: detection and online gating

What the data support, and what they do not

Offline AUROC (seen playbooks)
D1, D2, D3, D5
Realized false positive rate
target 0.5%. Held-out playbook: no negative messages, no shift claim
Exfiltration, gated vs free flow
Utility loss (0 to 1 scale)
Gate cost on benign swarms
Cost, known
Adaption credits, all test attempts
Hypotheses
H1 noH2 n/aH3 n/aH4 n/aH5 n.s.H7 limited
Report Section 6.7
Data integrity

No number is typed by hand

Committed data
event logs
ground truth
analysis CSVs
→
Scripts
render_results.py
make_paper_assets.py
→
Generated outputs
README results
paper tables and figures
numbers in the text
Not typed by a person
Not written by the AI agent
SHA-256 of the source beside each table
Re-check: render_results.py --check
Takeaways

A measurement framework, with limits stated

Measured
Multi-hop infection chains in LLM swarms
Finite reproduction numbers per episode
Four defenses, offline and online
Safeguards
Attack playbooks stay out of the repository
Synthetic canary, closed testbed
Every number generated from committed logs
Next
More seeds per cell
Adaptive attackers
Mixed-model swarms
github.com/agustindiazcano/apart-research-swarm-alignment
Agustin Diaz-Cano  ·  MS Candidate, Systems Engineering

Press Space or click to play (about 3 minutes).
R restart   F fullscreen   A audio on/off
URL options: ?audio=0 mutes the narration (it plays by default), ?t=95 starts at 95 s, ?freeze=95 shows one frame.