CP-Guard: A Unified, Probability-Agnostic, and Adaptive Framework for Malicious Agent Detection and Defense in Multi-Agent Embodied Perception Systems

Senkang Hu, Yihang Tao, Guowen Xu, Xinyuan Qian, Yiqin Deng, Xianhao Chen, Sam Tak-Wu Kwong, Yuguang Fang

Abstract

Collaborative Perception (CP) is essential for autonomous vehicle fleets to overcome local sensor limitations. However, it introduces significant security risks from malicious "insider" agents transmitting adversarial data. We present CP-uniGuard, a robust defense framework that leverages a novel probability-agnostic sampling method (PASAC) and a dynamic, adaptive thresholding mechanism. CP-uniGuard accurately detects and neutralizes adversarial messages in real-time without requiring prior knowledge of attack frequencies. Evaluated on V2X-Sim and DAIR-V2X datasets, the framework restores perception performance (mIoU) from 14.34% under attack to 39.34%, nearly matching the 40.45% upper-bound of clean environments.

Introduction

In multi-agent systems, Collaborative Perception allows agents to share sensor data or feature maps to perceive objects beyond their immediate line of sight. While beneficial, this creates a critical vulnerability: a single compromised agent can transmit "adversarial" features that trick the recipient (ego) vehicle into perceiving non-existent objects or ignoring real ones.

Overview of the CP-uniGuard framework protecting an ego vehicle (victim) from malicious agent messages to ensure robust perception.

Existing defenses often struggle with real-world constraints. Some are computationally prohibitive, requiring individual checks of every collaborator, while others rely on training against specific attack types that fail to generalize. Notably, prior methods like ROBOSAC require knowing the "prior probability" of an agent being malicious—a metric that is virtually impossible to determine in dynamic, real-world traffic.

Methodology

CP-uniGuard operates on the principle of "consensus over conflict," utilizing three core components to ensure system integrity:

  1. PASAC (Probability-Agnostic Sample Consensus): An efficient binary-splitting search algorithm. Instead of linear verification, it subdivides the collaborator pool into groups and tests for consistency. This logarithmic approach isolates malicious agents rapidly without needing prior attack statistics.
  2. CCLoss (Collaborative Consistency Loss): A custom metric designed to quantify information alignment. For object detection, it uses Hungarian matching and Intersection over Union (IoU); for Bird’s Eye View (BEV) segmentation, it measures weighted probability distribution overlaps. It effectively asks: "Does the received data align with the ego agent's local observations?"
  3. Online Adaptive Threshold: To account for environmental variables like weather and sensor noise, CP-uniGuard employs dual sliding windows. These windows track scores for both benign and contaminated agents to dynamically adjust the detection threshold, maintaining high sensitivity while minimizing false positives.

Experimental Evaluation

The framework was rigorously tested against common adversarial attacks (FGSM, C&W, and PGD) using two major benchmarks: V2X-Sim (simulated V2X communication) and DAIR-V2X (real-world cooperative perception data).

Key Results

  • Robustness: In BEV segmentation tasks on V2X-Sim, CP-uniGuard restored performance to 39.34% mIoU, significantly mitigating the drop to 14.34% seen in undefended scenarios.
  • Detection Accuracy: In real-world object detection (DAIR-V2X), CP-uniGuard achieved an [email protected] of 58.31%, outperforming the previous state-of-the-art, ROBOSAC (42.19%).
  • Efficiency: As shown in the verification count analysis, PASAC maintains stability and efficiency even as the number of agents and the ratio of malicious actors increase.

Discussion and Future Work

CP-uniGuard establishes the ego agent as the "root of trust," using its local perception as the baseline for truth. This discrepancy-based approach allows the system to detect novel, "unseen" attacks that training-based anomaly detectors might miss. Furthermore, the dynamic calibration via sliding windows ensures the system remains effective in noisy real-world environments.

However, limitations remain. Sophisticated attackers could potentially exploit blind spots where the ego agent lacks local data for verification, or craft perturbations that stay just below the adaptive threshold. Future research will focus on incorporating multi-frame temporal consistency and cross-modal verification (e.g., LiDAR-to-Camera cross-checks) to further harden the system against coordinated or highly subtle adversarial strategies.

Summary updated

Abstract

Collaborative Perception (CP) has been shown to be a promising technique for multi-agent autonomous driving and multi-agent robotic systems, where multiple agents share their perception information to enhance the overall perception performance and expand the perception range. However, in CP, an ego agent needs to receive messages from its collaborators, which makes it vulnerable to attacks from malicious agents. To address this critical issue, we propose a unified, probability-agnostic, and adaptive framework, namely, CP-uniGuard, which is a tailored defense mechanism for CP deployed by each agent to accurately detect and eliminate malicious agents in its collaboration network. Our key idea is to enable CP to reach a consensus rather than a conflict against an ego agent's perception results. Based on this idea, we first develop a probability-agnostic sample consensus (PASAC) method to effectively sample a subset of the collaborators and verify the consensus without prior probabilities of malicious agents. Furthermore, we define collaborative consistency loss (CCLoss) for object detection task and bird's eye view (BEV) segmentation task to capture the discrepancy between an ego agent and its collaborators, which is used as a verification criterion for consensus. In addition, we propose online adaptive threshold via dual sliding windows to dynamically adjust the threshold for consensus verification and ensure the reliability of the systems in dynamic environments. Finally, we conduct extensive experiments and demonstrate the effectiveness of our framework. Code will be released at https://github.com/CP-Security/CP-uniGuard.
BibTeX
@article{hu2026cp,
  author = {Senkang Hu and Yihang Tao and Guowen Xu and Xinyuan Qian and Yiqin Deng and Xianhao Chen and Sam Tak-Wu Kwong and Yuguang Fang},
  title = {{CP-Guard: A Unified, Probability-Agnostic, and Adaptive Framework for Malicious Agent Detection and Defense in Multi-Agent Embodied Perception Systems}},
  journal = {IEEE Transactions on Mobile Computing},
  year = {2026},
  doi = {10.1109/tmc.2026.3650980},
}
Figure