A Survey of LLM-Driven AI Agent Communication: Protocols, Security Risks, and Defense Countermeasures

Dezhang Kong, Shi Lin, Zhenhua Xu, Zhebo Wang, Minghao Li, Yufeng Li, Yilun Zhang, Hujin Peng, Zeyang Sha, Yuyuan Li, Changting Lin, Xun Wang, Xuan Liu, Ningyu Zhang, Chaochao Chen, Muhammad Khurram Khan, Meng HanarXiv 2025 · DOI

Introduction: The Rise of the Internet of Agents

As Large Language Models (LLMs) transition from passive chatbots to autonomous AI agents, the landscape of digital interaction is undergoing a fundamental shift. Agents are no longer isolated; they must collaborate with users, external tools, and other agents to execute complex, multi-step tasks. This evolution heralds the "Internet of Agents" (IoA), where efficiency is gained through automation but at the cost of significant new security risks.

A comparison between traditional manual Internet interactions and the emerging, automated Internet of Agents.

A Structured Framework for Agent Communication

To navigate this new ecosystem, researchers have proposed a comprehensive framework to categorize the protocols and interactions involved. This survey provides the first structured look at the entire lifecycle of agent communication, from basic data transmission to complex semantic interpretation.

The hierarchical structure of the survey, detailing the classification of protocols, security risks, and defense countermeasures across various communication layers.

The Three-Layer Communication Support

The paper identifies three distinct layers where communication occurs and vulnerabilities can manifest:

  1. Data Transmission Layer (L1): The foundation handling raw data packets (e.g., HTTPS, TCP/IP).
  2. Interaction Protocol Layer (L2): The management layer for sessions and authentication (e.g., Anthropic’s MCP, Google’s A2A).
  3. Semantic Interpretation Layer (L3): The "cognitive core" where the LLM parses intent. This layer represents a novel and largely unprotected attack surface.

Security Vulnerabilities and the "Trust-Obedience" Conflict

The core security challenge in the IoA is the "Trust-Obedience" conflict. Agents are designed to be helpful and follow instructions implicitly. Attackers exploit this by embedding malicious commands within natural language data—such as tool descriptions or retrieved documents—that bypass traditional L1 and L2 security measures. While traditional security focuses on how data is sent, agent security must focus on what the data means.

Key Risk Categories

  • Memory Poisoning: In Agent-Environment (A-E) communication, attackers can inject false information into an agent's long-term memory, effectively "brainwashing" it for future tasks.
  • Controller Blasting: In centralized architectures, compromising a single hub can compromise the entire network.
  • Non-convergence: In decentralized P2P networks, agents can be trapped in infinite loops of conflicting instructions.

Experimental Case Studies: Red-Teaming MCP and A2A

The researchers conducted red-teaming experiments on industry-standard protocols to demonstrate these risks. Utilizing tools like MCP-Scan and benchmarks like GenTel-Bench, they proved that current protocols are highly vulnerable:

  • Malicious Code Execution: Tricking an agent into modifying system files (e.g., .zshrc) to open a remote shell.
  • Tool Poisoning: Inducing an agent to exfiltrate sensitive data, such as SSH keys, by manipulating tool descriptions.
  • Selection Manipulation: Using "SEO-style" prompt engineering in agent metadata to ensure a malicious agent is chosen to handle sensitive user tasks.

Future Directions and Conclusion

Securing the Internet of Agents requires a paradigm shift from traditional data-centric security to semantic-aware defense. Future work must address the speed-security trade-off, develop decentralized auditing mechanisms, and fill the current legal gaps regarding agent liability. The authors advocate for the development of "powerful but lightweight" malicious input filters and the potential use of blockchain for immutable communication archiving.

Summary updated

BibTeX
@misc{kong2025survey,
  author = {Dezhang Kong and Shi Lin and Zhenhua Xu and Zhebo Wang and Minghao Li and Yufeng Li and Yilun Zhang and Hujin Peng and Zeyang Sha and Yuyuan Li and Changting Lin and Xun Wang and Xuan Liu and Ningyu Zhang and Chaochao Chen and Muhammad Khurram Khan and Meng Han},
  title = {{A Survey of LLM-Driven AI Agent Communication: Protocols, Security Risks, and Defense Countermeasures}},
  year = {2025},
  eprint = {2506.19676},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.19676},
}
Figure