Illusion: Safeguarding Topology Confidentiality in LLM Multi-Agent Systems via Behavior-Preserving Obfuscation

Yiu-Fai Cheung, Hongzhi Guo, Miao Pan, Irwin King, Hao WangarXiv 2026

TL;DR

Illusion is a proactive defense framework that protects the communication topology of Large Language Model Multi-Agent Systems (LLM-MAS) by injecting deceptive "fake" edges and messages. It successfully misleads topology inference attacks—reducing graph recovery accuracy significantly—while ensuring the system’s actual task performance and output behavior remain virtually unchanged.

What Problem Does This Paper Address?

When we build complex LLM Multi-Agent Systems, the "secret sauce" isn't just the models themselves; it’s the topology—the specific workflow of how agents (like a "Coder," "Reviewer," and "Manager") interact and pass information. This topology represents valuable intellectual property (IP) and expert domain knowledge.

Unfortunately, this structure is vulnerable. Recent "topology inference attacks" can stealthily reconstruct these communication graphs just by observing the final outputs of the system. If an attacker knows the topology, they can steal the design or launch targeted attacks on critical "bottleneck" agents.

Fig. 1: Illustration of the risk of topology inference attack. Topology inference attacks (Wu et al., 2026) against LLM-MAS exploit semantic cues from outputs to infer the communication topology. This leads to IP leakage and poses severe safety risks, motivating the need to protect and conceal the topology of LLM-MAS.

While existing defenses try to detect these attacks, they don't proactively hide the structure. The authors of this paper argue that we need a way to "obfuscate" the graph—making it look like something it’s not—without breaking the system's logic.

Methods

The authors propose Illusion, a framework that injects "fake edges" into the MAS. These aren't just random links; they are carefully crafted communication paths where one agent sends a "decoy" message to another.

The Illusion workflow operates in three main stages:

  1. Candidate Generation: The system uses an LLM to generate "fake-message prompts." These prompts instruct a sender agent to write a message to a receiver that looks perfectly natural but contains no information that would actually change the receiver's final decision.
  2. Candidate Selection: Not all fake edges are safe. Illusion "probes" the receiver agents to see how they react to these decoys. It ranks candidates based on which ones have the lowest impact on the receiver's behavior.
  3. Injection Loop: The system iteratively adds the best fake edges. After each addition, it runs a rigorous statistical check (using Two One-Sided Tests, or TOST) to ensure "harmlessness"—verifying that the output distribution and task accuracy haven't degraded beyond a strict margin.
Fig. 2: The overview of Illusion. (a) Illusion contain three stages. It operates by generating prompts for candidate fake edges, then ranking each candidate based on its effect on the receiver agent via probing, and iteratively injects the best fake edge candidate, verifying that the addition does not degrade task performance or alter the output distribution. (b) We demonstrate that the resulting obfuscated topology of Illusion achieves effectiveness, harmlessness and indistinguishability.

Datasets

The researchers evaluated Illusion across three diverse reasoning domains:

  • MMLU: General knowledge and reasoning across STEM, humanities, and social sciences.
  • GSM8K: Grade-school mathematical word problems.
  • GPQA: High-level science questions written by domain experts.
  • MetaGPT (Case Study): A real-world software engineering MAS evaluated on the HumanEval coding benchmark.

Key Insights and Ideas

  • Behavior Preservation is the Golden Rule: Unlike traditional network obfuscation (which might just delay packets), LLMs are incredibly sensitive to input variations. The "aha moment" here is treating harmlessness as a distributional equivalence problem rather than just checking if the final answer is the same.
  • Generative vs. Static Decoys: You can't just inject "Hello world" as a fake message. To be indistinguishable, fake messages must be generative—they must adapt to the current task, the sender's persona, and the conversation's context.
  • The Adaptive Attacker Challenge: Even if an attacker knows you are using Illusion and tries to filter out "suspicious" messages using another LLM as a judge, they still fail. The fake messages are so well-integrated into the context that pruning them often results in removing genuine messages, further degrading the attack's accuracy.

Key Results

The experiments show that Illusion provides a robust "smoke screen" for MAS topologies:

  • Effectiveness: Against the state-of-the-art "CIA" inference attack, Illusion reduced the edge-level F1 score from 0.87 down to 0.62. Global graph similarity (GSim) dropped from 0.94 to 0.71.
  • Harmlessness: In 17 out of 18 experimental settings, the system maintained "non-inferiority" in task accuracy. Essentially, the defense is "free" in terms of performance cost.
  • Indistinguishability: When attackers tried to use LLM-based filters to find the fake messages, their detection F1 score was a measly 0.39—only slightly better than random guessing.
Comparison of topology inference performance with and without Illusion. The significant drop in F1 and GSim scores across different datasets highlights the defense's effectiveness.

Limitations and Future Work

While Illusion is a major step forward, the authors note a few areas for improvement:

  • Dynamic Topologies: The current work focuses on static DAG (Directed Acyclic Graph) structures. Future versions will need to handle systems where the communication path changes on the fly.
  • Token Overhead: Injecting fake messages inevitably increases the number of tokens processed, which translates to higher API costs or latency. Developing "resource-aware" injection strategies is a logical next step.
  • Stronger Adaptive Attackers: As defense evolves, so will the attacks. Testing against even more sophisticated, multi-stage pruning strategies remains an open challenge.

Summary updated

Abstract

The communication topology of Large Language Model Multi-Agent Systems (LLM-MASs) governs how information propagates among agents and encodes critical domain knowledge and expert workflow design. It is valuable intellectual property and plays a decisive role in system utility and safety, yet remains vulnerable to inference attacks that stealthily reconstruct it from agent outputs. Existing defenses detect or mitigate such attacks but do not proactively conceal the topology itself. We propose \textit{Illusion}, a proactive topology obfuscation defense for LLM-MAS. \textit{Illusion} injects fake edges and fake messages to present attackers with a deceptive topology, while selecting low-impact candidates that preserve output-distribution equivalence and task-accuracy non-inferiority. The resulting fake edges are designed to be indistinguishable from genuine messages under black-box observation. Extensive experiments show that \textit{Illusion} reduces edge-level F1 from over 0.87 to 0.62 and graph similarity from over 0.94 to 0.71. It also largely preserves output distributions and task performance, and its fake edges resist both similarity-based and LLM-judge filtering, even under adaptive pruning.
BibTeX
@misc{cheung2026illusion,
  author = {Yiu-Fai Cheung and Hongzhi Guo and Miao Pan and Irwin King and Hao Wang},
  title = {{Illusion: Safeguarding Topology Confidentiality in LLM Multi-Agent Systems via Behavior-Preserving Obfuscation}},
  year = {2026},
  eprint = {2611.00923},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.00923},
}
Figure