arXiv:2611.00923cs.CROct 2026

Manuscript Offprint

arXiv:2611.00923

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

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

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 Illusion, a proactive topology obfuscation defense for LLM-MAS. 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 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.

1 Introduction

Large Language Model Multi-Agent Systems (LLM-MASs) have emerged as a powerful paradigm by orchestrating multiple LLM-based agents to tackle complex tasks (Li et al., 2024). Beyond the inherent model capabilities, the communication topology fundamentally shapes the behavior of a MAS, which encodes the domain workflow and reflects how a complex task is decomposed and coordinated among specialized agents. Moreover, studies have shown that the topology is also a critical factor in utility, efficiency, safety, and robustness (Yu et al., 2025b; Cemri et al., 2025; Shen et al., 2025). Hence, the topology holds valuable

Figure

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.

Intellectual Property (IP) value to MAS owners and developers.

As LLM-MAS rapidly advances, the security of LLM-MAS is also increasingly studied, focusing on risks such as prompt injection, jailbreaking, and privacy breaches (Luo et al., 2025; Yu et al., 2025a). Despite the critical role of LLM-MAS topology, its confidentiality remains largely unprotected. If the communication topology is leaked, it could lead to serious consequences as illustrated in Figure 1. First, it poses a significant threat of IP infringement. A carefully designed topology encapsulates the expert knowledge and engineering effort (Zhang et al., 2025). Second, knowledge of topology enables adversaries to launch more powerful attacks. A leaked topology allows attackers to identify agents vulnerable to attacks or structurally critical agents, such as high-privilege agents and central aggregators, enabling stronger and more efficient attacks compared to topology-agnostic strategies (Liang et al., 2026; Wu et al., 2026).

Studies have shown that topology inference is not a hypothetical risk. Early topology inference attacks relied on direct identity queries and jail-breaking to elicit and extract the topology (Wang et al., 2025a; Liang et al., 2026). Recent advances have shown that topology can be stealthily exfiltrated via subtle contextual cues from agent outputs, even without explicit identity disclosure (Xiong et al., 2026; Wu et al., 2026). While these developments reveal that topology is vulnerable to inference through multiple channels, defense for topology receives little attention. Existing MAS defenses focus on attack detection and mitigation (Liang et al., 2026; Wang et al., 2025b), but none proactively conceals the topology itself. A concurrent work, MIRAGE (He et al., 2026), defends by presenting a phantom topology, but it assumes the defender can rewrite and suppress messages so the attacker never observes the real transcript. This assumption fails when messages leak through channels that bypass any shaping layer, such as jail-breaking, memory leakage or other side channels.

To bridge this gap, we propose Illusion, a proactive topology obfuscation defense framework for LLM-MAS. Inspired by network topology obfuscation (Liu et al., 2022; Hou et al., 2020; Meier et al., 2018; Liu et al., 2021; Zhu et al., 2025), Illusion strategically injects fake edges to send fake messages and present attackers with a deceptive topology. Realizing this requires overcoming a unique challenge: presenting a deceptive topology with fake messages while preserving system's behavior. Illusion operates in three stages, including candidate generation, candidate selection and injection loop. It selects low-impact candidates that preserve output-distribution equivalence and task-accuracy non-inferiority, and it aims to make fake messages indistinguishable under black-box setting.

Our contributions are as follows:

  • We investigate a largely underexplored security risk and propose Illusion, a topology obfuscation defense framework for LLM-MAS. Illusion injects fake edges with fake messages to deceive topology inference attacks.

  • We identify desired properties that should be achieved by topology obfuscation, including effectiveness, harmlessness, and indistinguishability, and formulate the evaluation for each of them.

  • We conduct extensive evaluations to demonstrate that Illusion can effectively degrade topology inference attacks, largely preserve system's behavior, and produce fake messages that cannot be easily removed.