Agent-to-agent trust: how multi-agent systems authenticate each other
“Agent A told Agent B to transfer the funds. Nobody verified that Agent A was Agent A.”
TL;DR
Multi-agent systems have a trust problem that OAuth and SAML weren’t designed for. Agents delegate laterally, create sub-agents, and share tools across boundaries that don’t map to organizational hierarchies. Palo Alto Unit 42 demonstrated agent session smuggling, where a malicious remote agent in an A2A session slipped hidden instructions to the agent that called it and triggered an unauthorized stock trade. Anyone can publish an MCP server, and the official registry catalogs self-reported metadata rather than vetting code. A2A leaves token lifetimes to your auth server and makes Agent Card signing optional. The identity infrastructure for agent-to-agent trust doesn’t exist yet. For how to build cryptographic identity binding for individual agents, see Cryptographic capability binding.

Why can’t agents verify each other’s identity?
Because the identity protocols we have were built for a different trust model.
OAuth 2.0 assumes a human initiates an authorization flow, grants consent to a specific application, and that application acts on behalf of that human. The trust chain is hierarchical: user trusts application, application acts within scoped permissions. When Agent A delegates a task to Agent B, who is the “user” granting consent? If Agent B creates Agent C, does Agent C inherit Agent A’s permissions? OAuth has no answer for lateral delegation between autonomous entities.
SAML assumes organizational identity federation between known entities with pre-established trust relationships. Agents spin up dynamically, run across providers, and interact with agents from other organizations through protocols like MCP and A2A. There’s no pre-established federation agreement between an agent running on your infrastructure and an MCP server someone published to GitHub last week.
The fundamental gap: current identity management protocols treat authentication as a human-initiated, hierarchical process. Agent systems are peer-to-peer, lateral, and autonomous. An agent is a process running on infrastructure, not a persistent entity with a verifiable identity. When Agent A sends a request to Agent B, there’s no standard mechanism for Agent B to verify:
- The request came from an authorized Agent A (not an attacker impersonating it)
- Agent A had the authority to delegate this specific task
- The task parameters haven’t been tampered with in transit
- Agent A’s permissions haven’t been revoked since the delegation was issued
What is agent session smuggling?
Palo Alto Networks’ Unit 42 documented agent session smuggling in October 2025 (write-up). It targets the Agent2Agent (A2A) protocol and exploits a simple fact: a client agent implicitly trusts the remote agent it is talking to across a stateful, multi-turn session.
The mechanism: a client agent delegates a task to a remote agent. The remote agent is malicious or compromised, and because it is itself an LLM agent it can adapt to the conversation. Between legitimate responses it sends follow-up requests and “clarification questions” that carry covert instructions. The client agent processes them as part of the expected exchange, and the user typically sees only the final answer.
In Unit 42’s proof of concept, built with Google’s Agent Development Kit, a financial-assistant client agent (Gemini 2.5 Pro) delegated research to a malicious remote agent. Through innocuous-looking questions, the remote agent got the client to disclose its system instructions, tool schemas and the user’s chat history. In a second scenario, smuggled instructions made the client call its buy_stock tool and buy 10 shares without the user’s knowledge. Unit 42 stresses that this abuses implicit trust between agents, not a flaw in the A2A protocol itself, and recommends out-of-band human confirmation for sensitive actions, keeping the session anchored to the user’s original intent, cryptographically signed Agent Cards, and showing users the remote agent’s instructions and tool calls.
This is different from traditional message tampering. The attacker doesn’t need to intercept and modify messages in transit. They control one endpoint and let the trust model do the rest. The agent-to-agent communication channel IS the attack vector.
The same trust problem cascades through pipelines. Picture a multi-agent financial workflow: Agent A (market research) feeds data to Agent B (risk assessment), which feeds to Agent C (trade execution). An attacker compromises Agent A through a poisoned data source. Agent A passes manipulated market data that looks legitimate. Agent B’s risk assessment reflects the manipulated data. Agent C executes trades based on Agent B’s assessment. No authentication failure occurred. Every agent did its job. The outcome is still attacker-controlled.
What are the security gaps in MCP?
MCP (Model Context Protocol), developed by Anthropic, lets AI agents connect to external tools and data sources through a standardized interface. It’s become the de facto standard for agent tool integration. It also leaves to implementers four controls that matter for inter-agent trust.
No per-tool access control by default. The spec defines optional OAuth-based authorization for HTTP transports, but it authorizes the connection, not individual tools. Unless the server adds its own checks, there’s no built-in mechanism to scope which users or agents can invoke which tools. If your MCP server exposes a database query tool, every connected agent can use it, regardless of whether their task requires database access.
Plaintext credential storage. MCP server configurations often store API keys and database credentials in plaintext configuration files. A compromised agent with filesystem access can read these credentials and use them outside the MCP framework.
Missing exfiltration controls. MCP has no built-in mechanism to restrict what data flows through tool responses. A tool that returns search results could return any data the tool has access to, including data the requesting agent shouldn’t see. There’s no output filtering or data classification at the protocol level.
No audit logging. The protocol doesn’t require logging of tool invocations. Whether you get an audit trail showing which agent called which tool with what parameters and what was returned depends on the client and server you run.
Anyone can publish an MCP server, and there are thousands on GitHub. The official MCP Registry, in preview since September 2025, is a catalog of self-reported server metadata with community moderation; it does not vet what a server’s code does. Any MCP server can claim any capability, and the protocol has no standard signing or attestation for servers or tool definitions. An agent connecting to an MCP server has no cryptographic way to verify that the server is what it claims to be.
For how tool-sharing through MCP creates cross-agent privilege escalation paths, see The privilege escalation kill chain.
What about Google’s A2A protocol?
Google’s Agent-to-Agent (A2A) protocol was designed to let agents from different frameworks and vendors communicate. It addresses some of the interoperability problems but introduces its own trust gaps.
No enforced token expiration. A2A delegates authentication to standard schemes such as OAuth 2.0, OpenID Connect and API keys, and doesn’t set token lifetimes. A token issued for a specific delegation stays usable for as long as your authorization server allows, so long-lived or leaked tokens can be replayed hours or days later.
Agent Card spoofing. A2A uses “Agent Cards” (JSON metadata describing an agent’s capabilities) for discovery. The specification lets providers sign Agent Cards with JWS (support was added in v0.3), but signing is optional, and a valid signature only helps if the client already trusts the signer’s key. Even a signed card attests to what the provider declares, not to what the agent actually does. An attacker can still publish an unsigned or self-signed Agent Card claiming to be a trusted agent.
Coarse-grained scopes. A2A doesn’t define a task-level permission model; access is whatever OAuth scopes you configure, and those are usually broad. An agent granted access to “financial data” might access both account summaries (needed for its task) and transaction details (not needed). Coarse scopes enable lateral movement within the authorized domain.
Missing consent for data sharing. When Agent A shares data with Agent B through A2A, there’s no protocol-level mechanism for the data owner to consent to the sharing. The agents negotiate between themselves without external oversight.
These aren’t implementation bugs. They’re design gaps in a protocol trying to balance interoperability with security. The A2A specification acknowledges many of these tradeoffs, but the current priority has been getting agents talking to each other, not securing the conversation.
What would secure agent-to-agent communication look like?
The building blocks exist. They’re just not assembled into a coherent agent identity infrastructure yet.
Cryptographic identity per agent. Each agent gets a unique identity bound to a cryptographic key pair. Decentralized Identifiers (DIDs) with verifiable credentials are the most promising approach: they don’t require a central authority, they support delegation, and they can encode capability constraints. The agent proves its identity by signing requests with its private key.
Signed requests on every interaction. HTTP Message Signatures (IETF RFC 9421) provide a standard for signing HTTP requests so the receiver can verify the sender’s identity and confirm the message wasn’t tampered with. Every agent-to-agent request should carry a signature. Every receiving agent should verify it.
Sender-constrained delegation tokens. DPoP (Demonstration of Proof-of-Possession) binds tokens to the sender’s key pair, preventing stolen tokens from being used by another entity. Combined with short expiration (minutes, not hours) and per-hop validation (each agent in the chain validates before forwarding), this eliminates most replay and escalation attacks.
Mutual TLS for transport. mTLS ensures both sides of the connection are authenticated at the transport layer. The agent connecting to an MCP server or A2A endpoint proves its identity through its certificate. The server proves its identity through its certificate. This prevents impersonation at the connection level.
A live queryable registry. Agents need to check peer identity in real time, not against a static configuration. A registry that agents can query to verify: “Is this agent authorized to make this request with these parameters right now?” Real-time identity checks at this scale are routine in payments, so the hard part is agreeing on who runs the registry and what it attests, not lookup speed.
graph LR
A[Agent A] -->|Signed Request<br/>+ DPoP Token| B[Agent B]
B -->|Verify Signature| R[Agent Registry]
R -->|Identity Confirmed<br/>+ Scope Validated| B
B -->|Signed Response| A
A -.->|mTLS| B
B -.->|mTLS| C[Agent C]
subgraph "Missing Today"
R
style R fill:#fce4ec
end
None of this exists as an integrated standard for AI agents. The components (DIDs, DPoP, HTTP Signatures, mTLS) are proven in other contexts. Assembling them into an agent-native identity layer is the unsolved engineering problem.
Key takeaways
- OAuth and SAML assume human-initiated, hierarchical trust. Agent delegation is peer-to-peer, lateral, and autonomous. The identity protocols don’t fit.
- Agent session smuggling (Unit 42) showed a malicious remote agent extracting a client agent’s instructions and chat history and triggering an unauthorized trade, all inside a normal-looking A2A session
- MCP leaves per-tool authorization, credential storage, exfiltration controls and audit logging to implementers. Anyone can publish a server, and the official registry does not vet server code.
- Google’s A2A protocol leaves token lifetimes to your auth server, makes Agent Card signing optional, and has no fine-grained scopes or data-sharing consent
- The building blocks for secure agent identity exist (DIDs, DPoP, HTTP Message Signatures, mTLS) but aren’t assembled into an agent-native standard
FAQ
Why can’t agents verify each other’s identity?
Current identity protocols (OAuth, SAML) assume human-initiated, hierarchical trust. Agent systems delegate laterally between autonomous entities. There’s no standard mechanism for Agent B to verify that a request from Agent A is authentic, authorized, within scope, and untampered. The identity management infrastructure for autonomous peer-to-peer agent communication doesn’t exist yet.
What is agent session smuggling?
Documented by Palo Alto Networks Unit 42 in October 2025, agent session smuggling lets a malicious remote agent abuse a stateful A2A session to slip covert instructions to the client agent that called it. In Unit 42’s proof of concept the client leaked its system instructions, tool schemas and chat history, and bought stock without the user’s knowledge. The root cause is implicit trust between agents, not a protocol bug.
What are the security gaps in MCP?
MCP leaves four controls to implementers: per-tool authorization (optional OAuth covers the connection, not individual tools), credential storage (often plaintext), exfiltration controls on tool outputs, and audit logging. Anyone can publish a server; the official MCP Registry catalogs self-reported metadata and does not vet code, and there is no standard signing or attestation.
What would a verified agent identity registry need?
PKI-based identity using DIDs and verifiable credentials, a live queryable registry for real-time verification, HTTP Message Signature validation on all inter-agent requests, sender-constrained delegation tokens (DPoP) with short expiration and per-hop validation, mutual TLS for transport authentication, and revocation support for compromised identities.