Skip to main content
LLM Security Database
Skip to research details
Back to research findings
LMVD-ID: 260435d8
Paper published February 1, 2025
Entry analyzed March 4, 2025
Paper-reported evidence
Confidence: Source-linked

The LMVD-ID is an internal research identifier, not an official CVE identifier.

Agent-in-the-Middle Attack

A vulnerability exists in the communication mechanisms of Large Language Model (LLM)-based Multi-Agent Systems (LLM-MAS) enabling an Agent-in-the-Middle (AiTM) attack. An attacker can intercept and manipulate messages…

BibTeX citation

Paper-evaluated models(2)

  • GPT-3.5 Turbo
  • GPT-4o

Description

A vulnerability exists in the communication mechanisms of Large Language Model (LLM)-based Multi-Agent Systems (LLM-MAS) enabling an Agent-in-the-Middle (AiTM) attack. An attacker can intercept and manipulate messages between agents, causing the victim agent to produce malicious outputs. The attack does not require compromising individual agents directly; instead, it leverages contextual manipulation of inter-agent communications.

Examples

See arXiv:2502.14847 (opens in a new tab) for detailed examples demonstrating AiTM attacks across various Multi-Agent system frameworks and communication structures. The paper shows how an adversarial agent can manipulate messages to achieve different goals, including Denial-of-Service (DoS) attacks and the induction of specific malicious behaviors. For example, in a debate scenario, the attacker can subtly steer the conversation by modifying messages received by a specific agent, leading to a predetermined outcome.

Impact

Successful AiTM attacks can compromise the integrity and availability of LLM-MAS. Malicious outputs can propagate through the system, impacting the overall results and potentially leading to serious consequences depending on the application (e.g., injection of malicious code in a software development LLM-MAS). DoS attacks can render the entire system unusable.

Affected Systems

LLM-based Multi-Agent Systems using message-passing communication mechanisms. This includes systems employing various communication structures such as chain, tree, complete, or random graphs. Specific examples include, but are not limited to, frameworks like AutoGen and Camel. In general, any system where agents exchange information via potentially insecure channels is vulnerable.

Mitigation Steps

  • Secure Communication Channels: Implement secure communication channels (e.g., encryption) to prevent interception and manipulation of inter-agent messages.
  • Message Integrity Verification: Incorporate mechanisms (e.g., digital signatures, hash verification) to detect message tampering.
  • Input Sanitization and Validation: Implement robust input validation at the agent level to prevent the propagation of manipulated information.
  • Redundancy and Fail-safes: Design systems with redundancy and fail-safe mechanisms to mitigate the impact of compromised agents or manipulated messages.
  • Agent Behavior Monitoring: Implement monitoring systems to detect anomalous agent behavior or deviations from expected communication patterns.
  • Principle of Least Privilege: Agents should only have access to the minimum information and resources they require to perform their tasks.

Research context and confidence

Evidence and verification
Paper-reported; independent reproduction is not documented.
Primary research source linked.
Severity
Not rated by this catalog.
Source and publication type
arXiv · Research preprint.
Peer-review status is not provided by this source.
Author and publication status
Author metadata is not stored; see the primary paper.
Threat model and attacker access
Ability to influence untrusted model inputs or connected content.
Related deployment categories
No related deployment category is classified.
Taxonomy labels only; paper-specific deployment prerequisites are not inferred.
Affected systems
LLM-based Multi-Agent Systems using message-passing communication mechanisms. This includes systems employing various communication structures such as chain, tree, complete, or random graphs. Specific examples include…

Research Paper

Red-Teaming LLM Multi-Agent Systems via Communication Attacks

Primary source: arXiv. Findings are reported by the cited research and have not been independently verified.

View Paper

Evidence

This entry is based on a primary research source. Its findings are paper-reported; independent reproduction and verification are not claimed.

https://arxiv.org/abs/2502.14847