AgentShield: Make MAS more secure and efficient

Kaixiang Wang, Zhaojiacheng Zhou, Bunyod Suvonov, Jiong Lou, Jie LiarXiv 2025 · DOI

Abstract

Multi-Agent Systems (MAS) leveraging Large Language Models (LLMs) are increasingly used for complex collaborative reasoning. However, their interconnected nature makes them susceptible to "cascading failures," where a single compromised agent can propagate malicious information throughout the network. We introduce AgentShield (MAS-Shield), a hierarchical defense framework that addresses the safety-efficiency dilemma. By combining graph-theoretical node selection with a multi-stage auditing pipeline, AgentShield achieves a 92.5% attack recovery rate and reduces defense-related latency by over 70% compared to traditional committee-based approaches.

Introduction

As LLMs transition from standalone tools to collaborative Multi-Agent Systems, agents communicate to solve intricate tasks. This connectivity, while powerful, introduces a significant security risk: the cascading failure. An attack on a single node—whether through role hijacking, misinformation injection, or bias—can quickly "poison" the entire system's output.

Overview of adversarial attacks and the limitations of current single-auditor vs. committee-based defenses.

Current defensive strategies often fall into two extremes: fast but unreliable single auditors, which are prone to hallucinations and single points of failure, or robust but prohibitively expensive committee-based systems that require consensus for every interaction. AgentShield aims to bridge this gap by providing high-security "guardrails" without the massive computational overhead typically associated with robust MAS defense.

Methodology: The Three-Stage Defense Pipeline

AgentShield employs a "coarse-to-fine" filtering strategy to dynamically allocate computational resources where they are needed most.

The three-stage AgentShield pipeline: Critical Agent Selection, Light Auditing, and Global Consensus Auditing.

1. Critical Agent Selection

Rather than auditing every message, AgentShield uses topological analysis to identify "pivotal nodes." By calculating centrality metrics such as Degree, Betweenness, and Closeness, the framework targets high-influence agents that act as primary information hubs. Research indicates that auditing the top 25-30% of nodes is sufficient to intercept most error propagation paths in power-law networks.

2. Light Auditing (The Sentries)

The system deploys a committee of lightweight "sentry" models (e.g., Qwen-3-14B) to perform discriminative verification. These models provide a simple binary check (Pass/Escalate) rather than full generative reasoning. A "Strict Unanimity Rule" is applied: if even one sentry flags a message, it is escalated to the next stage, ensuring near-perfect recall of potential attacks.

3. Global Consensus Auditing

Only suspicious or ambiguous signals reach the heavyweight committee (e.g., Gemini-2.5-Flash) for a final majority vote. This ensures that expensive models are reserved for the most difficult cases. Additionally, a backtracking mechanism allows the system to trace errors back to their source and isolate malicious agents recursively.

Evaluation and Results

The framework was evaluated across diverse benchmarks including CSQA, GSM8K, MMLU, and a new FACT dataset designed to minimize data contamination.

  • High Recovery Rate: AgentShield restored system performance to near-baseline levels, achieving a 92.5% recovery rate against mixed adversarial attacks.
  • Efficiency Gains: In scenarios without attacks, the additional time overhead was reduced to just 13.9%, compared to 48% for standard majority voting.
  • Latency Reduction: The framework reduced defense-related latency by over 70% relative to existing committee-based baselines.
  • Scalability: Performance remained robust across various network topologies and scaled effectively as the number of agents increased (tested up to 40 agents) and as the ratio of malicious attackers grew.

Conclusion

AgentShield demonstrates that topological intelligence and hierarchical auditing can effectively secure Multi-Agent Systems against cascading failures. By exploiting the asymmetry between verification and generation, the framework provides a scalable solution to the safety-efficiency dilemma. Future work will explore domain-specialized sentries through knowledge distillation to further enhance sensitivity to sophisticated reasoning traps without increasing operational costs.

Summary updated

BibTeX
@misc{wang2025agentshield,
  author = {Kaixiang Wang and Zhaojiacheng Zhou and Bunyod Suvonov and Jiong Lou and Jie LI},
  title = {{AgentShield: Make MAS more secure and efficient}},
  year = {2025},
  eprint = {2511.22924},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.22924},
}
Figure