NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Default-Off Edges for Self-Rewiring Agent Teams

Some multi-agent language-model systems decide afresh, every round, which agents talk to which. The best-known recent example, DyTopo, has each agent write a short "what I need" and "what I can offer" description. It then connects two agents whenever those descriptions are similar enough. This saves tokens and improves accuracy. It also means the wiring of the whole team is decided by text that the agents write about themselves. A compromised agent can therefore advertise whatever makes it look useful and get connected to exactly the peers it wants to poison or eavesdrop on.

Today's defenses act after the harm is done. G-Safeguard detects bad agents with a graph neural network (a model that reads the communication graph and the agents' messages) and then cuts their outgoing links. Its authors acknowledge that it only acts after a dialogue round, once peers are already infected. In a self-rewiring team, a cut link can simply be re-created the next round from the same self-descriptions. We propose instead to borrow the "default-off" idea from network security: routers drop any packet that lacks explicit permission from its receiver. Applied here, no message is delivered unless the edge carrying it was granted by the routing step, and edges are granted on the basis of how an agent has actually behaved, not what it claims.

Core Claim

In dynamically rewired agent teams, the routing decision is the right place to enforce security, and routing should rest on observed behavior rather than self-description. Concretely, an edge from agent $j$ to agent $i$ in round $t$ is instantiated only if two conditions hold:

$$ \cos(q_i^t, b_j^t) \ge \tau \quad\text{and}\quad \hat{r}_{ij}^t - c\sqrt{\ln t / n_{ij}^t} \ge \kappa . $$

Here $q_i^t$ is the embedding of $i$'s stated need. The term $b_j^t$ is a behavioral embedding of $j$, computed by the controller from $j$'s past outputs, never from $j$'s own "offer" text. The quantity $\hat{r}_{ij}^t$ is the fraction of $j$'s past messages to $i$-like receivers that passed downstream verification, and $n_{ij}^t$ is how many such messages there were. The thresholds are $\tau$ for similarity and $\kappa$ for trust, and $c$ is an exploration constant.

The second condition is a pessimistic lower confidence bound. It inverts the optimistic upper-confidence link selection that SkyLink uses for satellite links, because here an untested link is a risk rather than an opportunity.

Some candidate edges pass on similarity but not yet on trust. Messages on those edges are neither delivered nor dropped. They are held in a quarantine buffer and released one round later, only if a verifier accepts them. This is a security reuse of the "storage links" that Reconfigurable Time Extension Graphs use to hold satellite traffic until a downstream link exists.

Each granted edge carries a short token issued by the controller, bound to the round, the round goal, and the subtask. Receivers discard any message without a valid token before reading it, as default-off packet architectures do at ingress (Rule-based Forwarding; Dixon et al.).

The claim we will test is specific. Against attacks that operate through routing, this design should beat content filtering plus reactive pruning by a wide margin, at a small utility cost. The routing-level attacks are advertised-capability manipulation, forged agent identity, unsolicited task flooding, and requests to peers outside the issued edges. Against attacks that operate purely through message content, we expect it to be roughly equal to a good content filter, and we say so up front.

Relation to Prior Work

The motivating evidence comes from four papers. A2ASecBench shows that attacks exploiting trust in advertised capabilities, such as Capability Cloaking, Half-Open Task Flooding, and Agent-Side Request Forgery, reach 100% attack success across domains. Production guardrails like NeMo do not stop them. Architecture Matters for Multi-Agent Security shows that wiring alone moves safety a lot. In one case, a chain of agents drops planning refusal from 84.4% to 8.1% on RedCode-Gen, because sub-agents receive harmless-looking fragments of a harmful task. That paper studies only fixed wirings, which is why routing decisions matter. DyTopo supplies the self-rewiring system we attack and harden. It assumes all agents are benign.

The method comes from three sources. Linguistic Firewall (ANTAP) replaces textual agent descriptions with behavioral operators fitted offline, and cuts router hijacking from 75.3% to near zero. We extend that idea in two ways. It becomes online, so an agent that behaved well on benchmarks and then turns is caught. It also becomes multi-round and peer-to-peer, whereas ANTAP handles only one-shot dispatch to one of N agents. From SkyLink we take per-link bandit statistics with constant cost per node. From the time-extended graph work we take store-and-forward holding.

Two papers constrain the design. The Sum Leaks More Than Its Parts shows that heavy gatekeeping can block 97% of attacks while cutting legitimate success to about 53%. That is why quarantine delays rather than drops, and why the utility cost is a primary metric. AdvEvo-MARL shows that safety trained into the weights can lower contagion without hurting utility. This is a competing philosophy, so we test it as a baseline and as a possible complement.

Research Program

The work has four parts.

The first is the attack suite. We implement DyTopo faithfully, with a manager agent, workers, need/offer descriptors embedded with MiniLM, and threshold-based edges. We then build four routing-level attacks against it.

  • Descriptor spoofing: a malicious worker writes "offer" text crafted to match many needs.
  • Eavesdropping: the attacker crafts "needs" that match sensitive subtasks.
  • Flooding: the attacker sends unsolicited messages outside the issued edges.
  • Identity forgery: the attacker poses as another agent.

We port the A2ASecBench attack families onto this setting and add the G-Safeguard prompt-injection and memory-poisoning attacks as content-level controls.

The second is the defended controller. It computes behavioral embeddings from a sliding window of each agent's actual outputs, maintains the per-pair trust statistics, and runs the admission rule and the quarantine buffer. The verifier can be a small classifier, a peer cross-check, or task-level execution feedback such as unit tests on code tasks. We build all three and compare them. Tokens use a keyed hash that only the controller can issue.

The third is analysis of the trade-off between sparse wiring and containment. Sparse graphs are efficient but let an infection travel down one path unchecked. We therefore measure whether trust-gated sparsity keeps DyTopo's token savings while containing infection, as measured by contagion rate. We also measure how the thresholds $\kappa$ and $c$ move the balance between safety and utility.

The fourth is an adaptive attacker. Since admission is based on behavior, the obvious counter is to "farm reputation": behave well for $k$ rounds, then attack. We measure how much damage one agent can do per unit of accumulated trust, and whether goal-bound tokens limit the damage to one subtask.

Baselines

The naive reference point is undefended DyTopo. No attack numbers for it are reported on Lacuna, so we measure them ourselves. Its benign utility anchors the utility-cost metric: +6.2% average accuracy over AgentScope, and 9,453 versus 19,520 tokens on HumanEval, as reported by DyTopo. Every defended variant runs on the same backbone models (Qwen3-8B and Llama3-8B-Instruct, both from the DyTopo evaluation suite), the same tasks and seeds, and the same per-round token budget. Hyperparameters for all methods are tuned on a shared held-out split under a fixed number of trials.

The strongest existing competitor is G-Safeguard run on the graph of each round, with its pruning decisions carried forward as a persistent blocklist. The blocklist is our addition, made so that pruning does not simply vanish when the wiring is recomputed. G-Safeguard reports ASR reductions of 21.38% for prompt injection on CSQA and 22.01% on MMLU, and it is the only published detect-and-mitigate method that operates on the communication graph. Beating it means lower attack success on routing-level attacks by a margin larger than seed variance, and at least matching it on its own content-level attacks, with benign accuracy within two points of undefended DyTopo.

We also run DyTopo with a per-message content guard, meaning a BERT-style detector at each receiver in the spirit of the edge filter in Joint Optimization of Prompt Security and System Performance in Edge-Cloud LLM Systems, which reports F1 0.927. We run ANTAP-style offline behavioral operators substituted into DyTopo's matching step. Finally, we run AdvEvo-MARL-trained agents inside undefended DyTopo, where its contagion rate below 35% on fully connected graphs is the reported reference.

The key ablations isolate one ingredient at a time. One keeps textual offers but adds the trust bound and tokens. One uses behavioral embeddings without the trust bound. One drops instead of quarantining. One removes the tokens.

Why not just…?

Why not just put a strong guard model on every message? Routing-level attacks do not need a malicious-looking message. A spoofed offer produces an edge, and the payload over that edge can look benign. A2ASecBench reports that NeMo guardrails suffer 100% attack success on five of six protocol attacks. We still treat this alternative as a real threat on content-level attacks, where it may equal our method. The split between routing-level and content-level attacks in our experiments is designed to show exactly where each wins.

Why not just run G-Safeguard each round and prune? It detects only after tokens are produced, so peers are already infected. In a self-rewiring graph, a pruned edge is regenerated whenever the attacker's descriptors still match. Our persistent-blocklist variant closes the second gap. If that variant matches us, the contribution shrinks to "behavioral keys add nothing beyond persistent pruning," and the ablation without the trust bound will tell us so.

Why not just use ANTAP's offline behavioral operators? They remove the textual attack surface at dispatch, but they are fitted once on benchmarks. An agent that is compromised later, or that farms reputation, keeps its good operator. The reputation-farming experiment compares offline and online behavioral keys directly.

Why not just train safer agents with AdvEvo-MARL? It is complementary rather than competing. Trained weights do not stop an outside agent from forging identity or flooding peers. We report it both alone and combined with our controller.

Proposed Experiments

Utility is measured on HumanEval, APPS-Competition, MATH-500, and Omni-MATH (the DyTopo suite), reporting accuracy, tokens, and wall-clock latency. Security is measured three ways. The first is our DyTopo routing-attack suite. The second is A2ASecBench tasks adapted to self-rewiring teams, reporting attack success and benign score; for Capability Cloaking in the travel domain, the paper reports benign score falling from 0.853 to 0.682. The third is G-Safeguard's CSQA, MMLU, and GSM8K injection and poisoning settings. Intent laundering is probed on RedCode-Gen through planning refusal and harmful-task completion. We also add churn: agents join and leave between rounds, which mirrors dynamic discovery in agent-to-agent protocols.

Three checks decide the outcome. First, on routing-level attacks, attack success under our controller must be well below persistent-pruning G-Safeguard, while HumanEval tokens stay near DyTopo's 9,453. If the tokens climb back toward static-broadcast levels, the sparsity benefit is lost. Second, the ablation with textual offers plus the trust bound must be clearly worse than the full system. Otherwise behavioral keys are not the operative ingredient. Third, under reputation farming, damage per compromised agent must stay bounded to its token-scoped subtask. If a single well-reputed agent can still derail whole tasks, the online-trust mechanism fails, and we would report that as the central negative result.