BlindGuard: Safeguarding LLM-based Multi-Agent Systems under Unknown Attacks

Rui Miao, Yixin Liu, Yili Wang, Xu Shen, Yue Tan, Yiwei Dai, Shirui Pan, Xin Wang

TL;DR

BlindGuard is an unsupervised defense framework designed to protect LLM-based multi-agent systems from malicious exploits without requiring any prior knowledge or labeled attack data. By combining a hierarchical agent encoder with a corruption-guided contrastive learning detector, it effectively identifies and isolates compromised agents to prevent misinformation from propagating through the network.

What Problem Does This Paper Address?

Multi-Agent Systems (MAS) leverage collaborative Large Language Models (LLMs) to solve complex tasks by passing messages back and forth. However, this interconnected architecture introduces a critical vulnerability: propagation vulnerability. If even a single agent is compromised—whether through prompt injection, memory poisoning, or tool exploitation—its misleading responses can quickly corrupt the collective decision-making process of the entire network.

While supervised defense frameworks exist, they rely heavily on labeled examples of malicious behavior to train their detection models. In real-world deployments, adversarial attacks are rare, heavily camouflaged, and constantly evolving, making well-annotated attack data nearly impossible to obtain. Furthermore, traditional unsupervised graph anomaly detection (GAD) methods fall short because they typically look for structural anomalies (like unusual connection patterns) rather than the semantic anomalies (like deceptive text or malicious intent) typical of compromised LLMs.

Comparison of supervised vs. unsupervised anomaly detection-based defense paradigms in MAS.

Methods

To bridge these gaps, the authors introduce BlindGuard, an unsupervised defense method that trains exclusively on normal MAS interaction data.

The framework consists of three core components:

  1. Hierarchical Agent Encoder: To accurately spot anomalies, the system must understand context at multiple scales. The encoder extracts individual agent semantics (mapping textual responses to dense vectors via SentenceBERT), aggregates local neighborhood interactions, and captures global, system-wide context. These three views are fused via a multi-layer perceptron (MLP) to create a comprehensive representation of each agent.
  2. Corruption-Guided Attack Detector: Since no real attack data is available during training, BlindGuard simulates malicious behavior directly in the embedding space. It injects magnitude-scaled directional noise into benign agent features to synthesize pseudo-abnormal samples. It then uses a supervised contrastive learning objective to maximize similarity among normal agents while pushing the simulated anomalous agents away, creating a clean angular decision boundary.
  3. Pruning-Based Remediation: During inference, BlindGuard calculates an anomaly score based on an agent's semantic misalignment with the rest of the system. The top-K highest-risk agents are flagged, and their communication links are dynamically severed (pruned) to halt adversarial propagation.
The designing workflow of our proposed BlindGuard.

Datasets

The authors evaluated BlindGuard across several distinct datasets to test its resilience against three primary attack modalities:

  • Prompt Injection (PI): Evaluated using adversarial samples from CSQA, MMLU, and GSM8K.
  • Tool Exploitation (TA): Evaluated using the InjecAgent dataset.
  • Memory Poisoning (MA): Configured according to PoisonRAG and CSQA.

Experiments were conducted across four network topologies (chain, tree, star, and random) using both open-source (Qwen3-30B-A3B, DeepSeek-V3) and commercial (GPT-4o-mini) LLMs as agent backbones.

Key Insights and Ideas

  • Semantic vs. Structural Deviations: Malicious agents rarely alter who they talk to; instead, they alter what they say. BlindGuard successfully shifts the focus of unsupervised graph defense from topological structures to embedding-space deviations.
  • The Necessity of Global Context: Colluding attackers can easily maintain local consistency with their immediate neighbors to fly under the radar. BlindGuard’s inclusion of a global system view ensures that even if a small clique looks normal locally, its misalignment with the overall system intent remains detectable.
  • Universal Generalization: Because BlindGuard models the boundary of normal behavior rather than learning specific attack signatures, it generalizes exceptionally well to entirely unseen attack types—a feat that supervised models struggle to achieve.

Key Results

  • Outperforming Unsupervised Baselines: BlindGuard significantly outperformed existing unsupervised GAD baselines (DOMINANT, PREM, TAM), consistently achieving an Area Under the Curve (AUC) greater than 80% across various topologies.
  • Approaching the Supervised Upper Bound: Despite using zero labeled attack data, BlindGuard closely approached the performance of the supervised upper bound model (G-Safeguard).
  • Superior Zero-Shot Generalization: When a defense model trained on Prompt Injection was tested against an unseen Memory Attack, BlindGuard consistently maintained high detection accuracy (e.g., up to 78.67% AUC on CSQA), whereas supervised models suffered severe performance drops.
  • Preserving Clean Utility: In attack-free evaluations, BlindGuard did not falsely prune benign agents, ensuring that normal MAS functionality remained completely uncompromhed.
The overall performance of MAS on the CSQA (PI) dataset after each turn of dialogue.

Limitations and Future Work

While powerful, BlindGuard has a few notable limitations:

  • Post-Intrusion Mitigation: It is a reactive defense layer. It mitigates adversarial propagation after an intrusion has occurred rather than preemptively blocking an attacker from infiltrating the system.
  • Stealthy, On-Topic Attacks: The system struggles against highly sophisticated, "manifold-preserving" attacks where a malicious agent injects subtle bias while remaining perfectly on-topic and stylistically consistent with the prompt.
  • Benign Heterogeneity: Highly creative or unconventional reasoning styles from benign agents can sometimes create local/global semantic disagreement, accidentally triggering false positives and causing the system to prune legitimate communication links.

The authors note that future work will focus on validating BlindGuard in open-world, non-simulated environments and developing more adaptive, proactive defense strategies.

Summary updated

BibTeX
@inproceedings{miao2026blindguard,
  author = {Rui Miao and Yixin Liu and Yili Wang and Xu Shen and Yue Tan and Yiwei Dai and Shirui Pan and Xin Wang},
  title = {{BlindGuard: Safeguarding LLM-based Multi-Agent Systems under Unknown Attacks}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.1819},
}
Figure