9 minute read

“Agent A hallucinated a number. Agent B used it in a calculation. Agent C approved the result. Agent D executed the transaction.”

TL;DR

A prompt injection planted in one agent can replicate through a multi-agent system, and one adversarial image in one agent’s memory spread to almost every agent in a simulation of up to a million. Multi-agent systems fail because agents trust each other implicitly, shared memory is a poisoning vector, errors cascade faster than containment, and MCP connects agents to servers nobody verifies. Even without an attacker, correctness of an open-source multi-agent framework like ChatDev was measured as low as 25%. For how to authenticate agents to each other, see Agent-to-agent trust. For the controls that contain these failures, see Securing agent orchestration.


Fiber optic network nodes with a central red node causing a cascade of color changes outward

Why do multi-agent systems introduce new failure modes?

Because they add trust relationships, shared state, and cascading dependencies that don’t exist in single-agent systems.

A single AI agent has a bounded attack surface: its inputs, its tools, its outputs. Secure those three boundaries and you’ve contained the risk. A multi-agent system adds: inter-agent communication channels (new input surfaces), shared memory stores (new state that any agent can read and write), delegation chains (new trust relationships), and coordination logic (new failure modes where agents interact in unintended ways).

The research confirms this. A 2025 study (Cemri et al., “Why Do Multi-Agent LLM Systems Fail?”) found that the correctness of ChatDev, a popular open-source multi-agent framework, can be as low as 25% on the programming tasks the authors studied. The authors built a taxonomy of 14 failure modes in three groups: system design issues, inter-agent misalignment and task verification. The failures aren’t random: they follow patterns. Agents produce contradictory outputs. One agent’s hallucination becomes the next agent’s input. Coordination fails when agents duplicate work or skip steps. No agent in the chain verifies the final output against the original requirements.

Small inconsistencies accumulate into system-level failures. In a single-agent system, a hallucination produces one wrong answer. In a multi-agent system, a hallucination feeds into reasoning chains across multiple agents, each adding its own conclusions, until the final output is confidently wrong in ways that no individual agent would produce.


How does cascading compromise work?

The mechanism is straightforward and the speed is alarming.

A single compromised agent (through prompt injection, tool abuse, or supply chain poisoning) injects manipulated data into the multi-agent workflow. Downstream agents process this data as legitimate because it arrived through the expected channel from a trusted peer. Each downstream agent incorporates the tainted data into its own reasoning and passes its (now corrupted) conclusions to the next agent.

Research shows how far this can spread. Prompt Infection (Lee and Tiwari, 2024) demonstrated LLM-to-LLM prompt injection in which a malicious prompt self-replicates across interconnected agents like a computer virus, enabling data theft and system-wide disruption even when agents do not share all their communications. Agent Smith (Gu et al., 2024) showed an “infectious jailbreak”: feeding one adversarial image into the memory of a single randomly chosen agent was enough to spread harmful behavior to almost all agents, exponentially fast, in simulations of up to one million multimodal agents. The damage compounds because each agent amplifies the problem. Agent B doesn’t just pass Agent A’s bad data forward. It draws new conclusions from that data, adding a layer of seemingly valid reasoning that makes the corrupted output harder to detect.

Picture a procurement workflow where a compromised intake agent feeds slightly altered supplier data to a pricing agent, which feeds an approval agent, which feeds an ordering agent. No individual agent’s safety check fires, because each contribution looks locally valid. Only the aggregate result is fraudulent.

graph LR
    A[Compromised<br/>Agent A] -->|Tainted data| B[Agent B<br/>Adds reasoning]
    B -->|Corrupted analysis| C[Agent C<br/>Approves]
    C -->|False approval| D[Agent D<br/>Executes]

    A -.->|Poisoned data| M[(Shared Memory)]
    M -.->|Read by all| B
    M -.->|Read by all| C
    M -.->|Read by all| D

    style A fill:#fce4ec
    style D fill:#fce4ec

How does shared memory become a weapon?

Multi-agent systems use shared memory for coordination: task state, intermediate results, conversation history, tool output caches. This shared state is the backbone of multi-agent coordination. It’s also a persistence mechanism for attackers.

Memory poisoning works differently from direct message injection. When a compromised agent sends a bad message, it affects the immediate recipient. When a compromised agent writes to shared memory, the false data persists. Every agent that reads from the shared store encounters the poisoned data. The attacker writes once and poisons many.

The attack vectors on shared memory:

  • False facts: Write incorrect data that agents reference in their reasoning
  • Corrupted instructions: Write modified task parameters that change agent behavior
  • Malicious context: Write prompt injection payloads that activate when other agents read the context
  • History manipulation: Modify conversation history to make it appear that certain decisions were already made or approved

Unlike a database with access controls and audit logs, most shared memory implementations in multi-agent frameworks provide no access control (any agent can read and write), no integrity verification (no way to confirm who wrote what), and no tamper detection (no alert when data is modified).


What about MCP in multi-agent contexts?

MCP (Model Context Protocol) amplifies the multi-agent trust problem because it enables tool sharing across agent boundaries, and the protocol leaves most of the verification to whoever deploys it.

In a multi-agent system using MCP, agents connect to shared MCP servers that provide tools. A financial analysis agent and a document processing agent might both connect to the same database MCP server. If the MCP server is compromised (or if a malicious MCP server is substituted), every connected agent is affected.

The MCP security gaps that matter for multi-agent systems:

No per-agent permission model. MCP’s authorization spec (OAuth 2.1 for HTTP transports, added in 2025) is optional, and many servers skip it. Even where it is used, the protocol has no built-in per-tool permission model: unless the server implements and enforces scopes, every connected agent gets the same tool access. You can’t scope “Agent A gets read access, Agent B gets write access” through MCP alone.

No server verification. Anthropic counted more than 10,000 active public MCP servers in December 2025. Beyond TLS for remote servers, MCP has no way to verify that a server’s code or tool descriptions are what its publisher shipped. A look-alike package or a malicious update looks the same to the agent as the legitimate server.

Cross-agent data flow. When Agent A calls an MCP tool and the result enters the shared context, Agent B acts on that data without knowing which MCP server produced it. The data’s provenance is lost.

No audit trail. The protocol doesn’t define audit logging of which agent called which tool with what parameters; that is left to each client and server, and many log nothing. Post-incident investigation can’t trace the chain of tool calls that led to a compromise.

For how these MCP gaps contribute to broader privilege escalation, see The privilege escalation kill chain.


Key takeaways

  • A prompt injection in one agent can self-replicate across a multi-agent system, and an infectious jailbreak spread to almost all agents in simulations of up to a million
  • Multi-agent correctness was measured as low as 25% (ChatDev) even without an attacker. Small errors compound across agent chains.
  • Shared memory is a persistence mechanism for attackers: write once, poison every agent that reads.
  • MCP’s 10,000+ public servers create cross-agent attack surfaces; authorization is optional, and per-agent permissions and audit logging are left to each deployment
  • Cascading compromise is fast and hard to detect because each agent’s contribution appears locally valid
  • Defense requires: inter-agent authentication, shared memory integrity verification, MCP server verification, and circuit breakers that halt chains when anomalies are detected

FAQ

How does a compromised agent cascade through a system?

Downstream agents trust peer messages. Corrupted data enters the workflow, gets incorporated into reasoning at each step, and produces confidently wrong final outputs. Research on Prompt Infection and infectious jailbreaks shows a single compromised agent can spread malicious instructions to the rest of the system.

What is shared memory poisoning?

A compromised agent writes false data to shared memory. Every agent that reads from the store encounters the poisoned data. Unlike direct messages (which affect one recipient), memory poisoning persists and affects all readers. Most frameworks provide no access control or tamper detection on shared memory.

How does MCP create cross-agent risks?

MCP allows tool sharing across agents, and its OAuth-based authorization is optional. There are more than 10,000 public servers whose code nobody verifies for you. There is no built-in per-agent permission model and no protocol-level audit log. A malicious server affects every connected agent.

What is the correctness rate of multi-agent systems?

As low as 25% for ChatDev, an open-source multi-agent framework, in a 2025 study (Cemri et al.). Failures include contradictory outputs, cascading hallucinations, coordination failures, and verification gaps where no agent checks the final result.