Concepts · Level 3 · Note 12
Multi-agent systems: orchestrators, handoffs and A2A, and how they break
Orchestrators and sub-agents, handoffs, Google's A2A protocol, human approval and sandboxes in plain words, then how research shows each one being attacked.
Short answer
A multi-agent system is several AI agents passing text to each other: an orchestrator splits a job, sub-agents work in their own context windows, and one agent's output becomes the next agent's input. So every message between agents can carry prompt injection. In lab studies, a planted prompt copied itself between agents, and web content got orchestrators to run malicious code 45 to 64% of the time. In a Unit 42 proof of concept, a remote A2A agent slipped in a stock trade. Give each agent its own narrow permissions, treat agent messages as untrusted, and build approvals outside the model.
One agent is a model in a loop with some tools. We covered that in How AI agents work: tool calling, MCP and memory. This note is about what changes when you connect several of them.
Agents talk to each other in text, and a model can’t reliably tell an instruction from data. So every arrow between two agents is a new place to hide a command.
Orchestrator and sub-agents, in plain words
Think of a general contractor building a house. The contractor doesn’t lay bricks or pull wire. They split the job, hire an electrician and a plumber, give each a written brief, and collect the results. Each specialist works from their own brief with their own tools. The contractor never sees every wire. They see the finished work and a short report.
In an agent system the orchestrator is the contractor and the sub-agents are the trades.
Animated: an orchestrator splitting one job
- You ask for one big job. The orchestrator reads it and plans.
- It splits the job and writes a brief for each helper.
- Each sub-agent works alone, in its own context window, with only the tools for its part.
- The web reader fills its own window with pages and dead ends. The orchestrator never sees those.
- Each sub-agent sends back a short summary. The orchestrator reads the summaries as text and merges them.
- The catch: a summary is built partly from what the sub-agent read. If a web page slipped a line into it, that line now sits in the orchestrator's context. Give each agent its own narrow permissions and treat reports as untrusted.
Orchestrator and sub-agents, technically
Anthropic described its research product in June 2025 as “a multi-agent architecture with an orchestrator-worker pattern, where a lead agent coordinates the process”. The sub-agents run “in parallel with their own context windows” and send condensed findings back.
That is the main reason to split. A context window, the text a model can hold in view at once, is finite, and a long job fills it with search results and dead ends. A sub-agent can burn through its own window and hand back a summary. The second reason is specialization, since each sub-agent gets a narrow prompt and only the tools for its part.
The split costs tokens. The same write-up says “multi-agent systems use about 15× more tokens than chats.” On Anthropic’s internal research test, a Claude Opus 4 lead agent with Claude Sonnet 4 sub-agents “outperformed single-agent Claude Opus 4 by 90.2%”. That is one vendor’s own evaluation of one kind of task.
Handoffs and messages, in plain words
Picture a hospital shift change. The night nurse writes a note and the day nurse acts on it. The day nurse wasn’t there overnight, so the note is all they know.
Agents work the same way. Whatever one agent writes becomes the starting point for the next. If a stranger managed to add a line to the note, the day nurse has no easy way to tell.
Animated: an injection riding along a handoff
- Agent A reads something from outside: a web page, a ticket, an email.
- A stranger added one line to it, written as an instruction.
- Agent A writes a summary, built partly from what it read. The line travels inside it.
- The message lands in agent B's context, next to B's own instructions. To the model, all of it is text.
- Agent B acts on it, with B's tools and B's permissions. A could only read. B can do things.
- Nothing in the message tells B which words came from its colleague and which came from the outside text. Treat messages between agents as untrusted, and ask whether a reading agent can reach an acting one.
Handoffs and messages, technically
There are two common shapes. In the first, the orchestrator calls a sub-agent like a function and gets a result back. In the second, control moves. The OpenAI Agents SDK documentation says “Handoffs allow an agent to delegate tasks to another agent.” It adds that “Handoffs are represented as tools to the LLM.” So a handoff is a tool call with a name like transfer_to_refund_agent, chosen by the model.
By default in that SDK the receiving agent “gets to see the entire previous conversation history”, unless you add an input filter. That means anything the first agent read, including text from a stranger, can travel with the handoff.
A2A, in plain words
Go back to the contractor. Inside one firm, people just talk. Between firms you need paperwork: a listing that says what a company does and how to reach it, and a work order you can track.
Agent2Agent, or A2A, is that paperwork for agents built by different teams or vendors. The listing is called an agent card. The work order is called a task. Keep in mind that the company writes its own listing. Attack 4 depends on that.
A2A, technically
Google announced A2A on April 9, 2025 with “more than 50 technology partners”. A “client” agent formulates tasks and a “remote” agent acts on them. Remote agents “advertise their capabilities using an “Agent Card” in JSON format”. Work is wrapped in a task object that “has a lifecycle”, and the output is an “artifact”.
A builder’s guide from the Agentic AI Foundation, which now hosts the project, says version 1.0 was frozen on March 12, 2026. The card can be served at /.well-known/agent-card.json. A task holds one of nine states. One is a placeholder for unknown, and two pause the work: INPUT_REQUIRED and AUTH_REQUIRED. The specification says the same and calls those two “interrupted” states.
On how it differs from MCP, the project’s own comparison says MCP “standardizes how AI models and agents connect to and interact with tools”. A2A, it says, “standardizes how independent, often opaque, AI agents communicate and collaborate with each other as peers.” A tool takes structured input and returns a result. A remote agent can hold a conversation over several turns, keeps the task’s state, and makes its own choices. The specification says agents work together “without needing access to each other’s internal state, memory, or tools”. That last part is the security difference.
Animated: agent cards, tasks, and a card that lies
- Agents built by different teams need paperwork to work together. Each remote agent publishes an agent card: what it does and how to reach it.
- The client agent's model reads the cards to decide who gets the work.
- It opens a task with the chosen agent. A task is a work order with a lifecycle, and the output comes back as an artifact.
- The catch: every agent writes its own card. In a proof of concept on one researcher's own machine, a rogue card claimed to do everything well and told the host to always pick it. The host did.
- A card can be signed. A valid signature tells you the card wasn't altered. It doesn't tell you the signer is someone you'd hand work to.
- A card is a claim. Keep an allowlist of remote agents and check signatures against keys you already trust.
MCP and A2A do different jobs
Human approval, in plain words
Banks ask for a second signature on large transfers. The clerk prepares the slip and a manager signs it.
The control is only as good as the slip. The manager signs what is put in front of them. And a manager asked to sign two hundred slips a day stops reading them.
Human approval, technically
Human-in-the-loop means the system pauses before a risky action and waits for a person. A2A has the two pause states above: one waits for more input from the user, the other for credentials. Agent platforms have their own switches. AppOmni’s write-up, covered below, notes that a ServiceNow tool can be set to run in supervised mode.
It has two limits. The approval screen is usually written by the agent, from context an attacker may have touched. And prompts wear people down. Anthropic’s sandboxing write-up for Claude Code says constant approval clicks can lead to “approval fatigue”, where “users might not pay close attention to what they’re approving”.
Sandboxes and per-agent permissions, in plain words
Per-agent permissions work like hotel key cards. The cleaner’s card opens the rooms on one floor. It doesn’t open the safe or the manager’s office, so if the card is stolen, the thief gets one floor.
A sandbox is the walls, a room where a mess stays inside.
Sandboxes and per-agent permissions, technically
Anthropic’s write-up names two boundaries. Filesystem isolation means the agent “can only access or modify specific directories”. Network isolation means it “can only connect to approved servers.” You need both: “Without network isolation, a compromised agent could exfiltrate sensitive files like SSH keys; without filesystem isolation, a compromised agent could easily escape the sandbox and gain network access.” Anthropic reports that in its internal use, sandboxing cut permission prompts by 84%.
A sandbox limits where damage can go. It does not stop an injected agent from misusing whatever the sandbox still allows, and it does nothing about the messages that agent sends to other agents.
Permissions are the other half. Each agent should hold its own credentials, scoped to its job. On AWS, STS GetScopedCredentials is one way to hand a sub-agent less than you hold.
Attack 1: an injection that copies itself
In October 2024, Donghyun Lee of University College London and Mo Tiwari of Stanford published “Prompt Infection”, “a novel attack where malicious prompts self-replicate across interconnected agents”. An attacker plants one prompt “into external content, such as a PDF, email, or web page”. The first agent that reads it is told to drop its instructions, do a task that fits its role, and pass the same prompt to the next agent.
It was a simulation on GPT-4o and GPT-3.5 Turbo, with no live systems touched. In a simulated society of agents, the spread followed “an exponential-like trend” and slowed as it neared saturation.
The authors also tested a defense they call LLM Tagging, which “prepends a marker to agent responses” so the receiver knows a message came from an agent. By itself it “reduces the attack success rate by only 5%”. Paired with older prompt defenses it did much better.
Prompt Infection: attack success rate with paired defenses (lab result)
Those numbers come from one paper’s own attack prompts, so they don’t prove tagging holds against an attacker who adapts.
Attack 2: a weak agent recruits a strong one
On November 19, 2025, Aaron Costello of AppOmni published research on ServiceNow’s Now Assist. In his test, a user who could only create tickets put a prompt in a ticket description. When an admin’s agent later read that ticket, it pulled in a more capable agent to carry out the planted job. Costello had “instructed a seemingly benign Now Assist agent to recruit more powerful agents”. Data from a record the attacker couldn’t open was copied into the attacker’s own ticket. Another test assigned the admin role.
Default settings made it work. Agents were “automatically grouped into the same team by default” and “marked as being discoverable by default when published.” They also “run with the privilege of the user who started the interaction”, which here was the admin. ServiceNow’s prompt injection protection “was also enabled throughout the time of testing.” Costello writes that ServiceNow’s security team confirmed the behaviors were intended, and that the on-platform documentation was then updated.
A Cornell Tech team found the same shape in open frameworks. In “Multi-Agent Systems Execute Arbitrary Malicious Code”, first posted in March 2025, Triedman, Jha and Shmatikov tested AutoGen, Crew AI and MetaGPT in a lab. In their main example a local file holds a fake but plausible security error saying the file must be run. The file-reading agent passes that along. The orchestrator then has the code-running agent execute the file, which opens a reverse shell (a connection that lets the attacker run commands on that machine). Web pages worked as carriers too. A malicious page got these systems to run malicious code “45-64% of the time (averaged across models)”, and for some model and orchestrator combinations every time. The attacks worked “even if the individual agents are not susceptible to direct or indirect prompt injection”. The paper calls the sub-agents “confused deputies”.
Three results from multi-agent security research
Attack 3: agent session smuggling in A2A
Palo Alto Networks Unit 42 published this on October 31, 2025. A remote agent in an A2A conversation can talk back over several turns. A malicious one uses those turns to slip in extra instructions while it is supposedly just doing its task.
Their proof of concept had a financial assistant, built with Google’s Agent Development Kit on Gemini 2.5 Pro, delegating a news request to a research assistant. The research assistant returned the news. Along the way it got the financial assistant to reveal its chat history, system instructions and tool list. In a second run it got the assistant to call its buy_stock tool, “resulting in an unauthorized trade of 10 shares on behalf of the victim user.”
Animated: an instruction smuggled in mid-session
- A user asks their assistant for some news.
- The assistant is the client agent. It opens a task with a remote research agent.
- A tool takes one call and returns one result. A remote agent is different: it can talk back over several turns.
- A malicious remote agent uses those turns. While it is supposedly doing its task, it slips in instructions of its own.
- The client agent follows them and calls one of its own tools, with the user's authority.
- The user sees only the final summary. This was a proof of concept. The researchers had not seen it in the wild, and it is not a flaw in the protocol itself. Their fixes: confirm risky actions through a channel the model can't influence, and show users the tool calls.
Agent session smuggling, step by step
Unit 42 is careful about the limits. “This research does not reveal any vulnerability in the A2A protocol itself.” It adds, “Although we have not observed the attack in the wild, its low barrier to execution makes it a realistic risk.” A user wouldn’t notice, because people “typically only see the final, consolidated response”. The fixes Unit 42 lists include confirmation through a channel the model can’t influence, and showing users the client agent’s tool calls.
Attack 4: the agent card lies
An agent card is self-written, and in setups like the one tested here the client’s model reads it to choose who gets a task. Tom Neaves of SpiderLabs showed the problem on April 21, 2025, less than two weeks after A2A was announced. His rogue card described “An agent that can do everything really good” and told the host to always pick it. In his localhost proof of concept, the host did. The attack assumes one agent is already compromised, or that an attacker can add an agent to the host’s list. He described it as “indirect prompt injection here through the agent cards”.
A2A 1.0 lets cards be signed, and the specification makes signing optional. The foundation’s second guide is blunt about what that buys: “Signing fixes card integrity.” It goes on, “It does not fix identity”. A valid signature tells you the card wasn’t altered. You still have to decide whether the signer is someone you’d hand work to.
Attack 5: the approval prompt lies
Checkmarx researchers published “lies-in-the-loop” on September 15, 2025. They pointed Claude Code at a GitHub issue written by an attacker. The injected comment was “deliberately so long” that the one hint of trouble scrolled off the top of the terminal, and the visible prompt looked safe. “All the user has to do to harm themselves is press Enter.” Their demo opened a calculator.
This was a single agent, but the weakness carries over to any chain that ends in a person clicking yes. In the article’s words, “the human can only respond to what the agent prompts them with”. Checkmarx reports that Anthropic did not class it as a vulnerability under its threat model and said users are responsible for reviewing permission prompts.
How failures cascade
OWASP’s Top 10 for Agentic Applications has entries for most of this. Its launch post describes ASI07, Insecure Inter-Agent Communication, as “Spoofed inter-agent messages misdirected entire clusters”. For ASI08, Cascading Failures, it says “False signals cascaded through automated pipelines with escalating impact”. ASI09, Human-Agent Trust Exploitation, is the approval problem. Our walkthrough of the list has all ten.
Cascades don’t need an attacker. Anthropic’s write-up says “The compound nature of errors in agentic systems means that minor issues for traditional software can derail agents entirely.”
What to check, with an example
The examples below use one made-up system: a travel assistant with an orchestrator, a research agent that reads the web, and a payments agent that can charge a saved card. It is an illustration, with no real incident behind it.
- Can a reading agent reach an acting agent? This is the path in the ServiceNow and Cornell Tech cases. In the travel example, a hotel page tells the research agent that booking needs a deposit to some account. If the orchestrator forwards that to the payments agent as an instruction, a web page just spent money.
- Does each agent have its own credentials? Shared credentials make the weakest agent as powerful as the strongest. The research agent in our example should hold no payment token, so hijacking it gives an attacker nothing to charge with.
- Whose privileges does a delegated task run with? AppOmni’s case worked because the agent ran as the admin who triggered it. At the travel company, a support employee opening one booking shouldn’t lend the agents staff access to every other booking.
- Is approval shown outside the model? Unit 42 recommends out-of-band confirmation. For the travel assistant that means your code builds the charge screen from the real tool arguments (amount, payee), with no agent-written text.
- How many approvals does a person see per day? People stop reading when prompts pile up. Here you’d sandbox the research agent so page fetches need no approval, and keep prompts for charges.
- Do you verify remote agents before trusting their cards? A card is a claim. In the example, a new “discount flights” agent that calls itself best for every task shouldn’t win work on its own word. Keep an allowlist and check signatures against keys you already trust.
- Can you replay who told whom to do what? Unit 42 asks for visible client agent activity. When a wrong charge appears in the travel system, the log should show which message, from which agent, led to the payments call.
The five fixes in our prompt injection note still apply to each agent on its own.
Sources (all checked 23 November 2026)
- Anthropic, “How we built our multi-agent research system”, June 13, 2025: anthropic.com
- OpenAI Agents SDK documentation, “Handoffs”: openai.github.io
- Google Developers Blog, “Announcing the Agent2Agent Protocol (A2A)”, April 9, 2025: developers.googleblog.com
- A2A project documentation, “A2A and MCP”: a2aproject.github.io
- A2A project, “Agent2Agent (A2A) Protocol Specification” (latest released version 1.0.0) and its
a2a.protofile: github.com/a2aproject/A2A - Agentic AI Foundation, “A2A v1.0: A Builder’s Guide”, part 1 (August 27, 2026): aaif.io, and part 2 (September 1, 2026): aaif.io
- Anthropic, “Beyond permission prompts: making Claude Code more secure and autonomous”, October 20, 2025: anthropic.com
- Lee (University College London), Tiwari (Stanford University), “Prompt Infection: LLM-to-LLM Prompt Injection within Multi-Agent Systems”, October 2024: arxiv.org/abs/2410.07283 and full text
- Costello (AppOmni), “When AI Turns on Its Team: Exploiting Agent-to-Agent Discovery via Prompt Injection”, November 19, 2025: appomni.com
- Triedman, Jha, Shmatikov (Cornell Tech), “Multi-Agent Systems Execute Arbitrary Malicious Code”, March 2025, revised September 2025: arxiv.org/abs/2503.12188 and full text
- Lu, Chen (Palo Alto Networks Unit 42), “When AI Agents Go Rogue: Agent Session Smuggling Attack in A2A Systems”, October 31, 2025: unit42.paloaltonetworks.com
- Neaves (SpiderLabs), “Agent In the Middle – Abusing Agent Cards in the Agent-2-Agent (A2A) Protocol To ‘Win’ All the Tasks”, April 21, 2025: levelblue.com
- Ron, Tumarkin (Checkmarx), “Bypassing AI Agent Defenses With Lies-In-The-Loop”, September 15, 2025: checkmarx.com
- OWASP GenAI Security Project, launch post for the Top 10 for Agentic Applications, December 9, 2025: genai.owasp.org