The short answer
A2A security is the set of controls on the calls that AI agents send to other AI agents over the Agent2Agent (A2A) protocol. A control verifies the agent that calls, admits only the methods and addresses that a team lists, and inspects each message and each answer. It also records every call.
What does A2A security mean?
An AI agent is software that uses a model to choose its next step and then takes that step. Agents increasingly hand work to other agents. A claims agent asks a research agent for a summary. A planning agent asks a scheduling agent to book a slot.
Each handoff is a call on the network. Many of these calls use the Agent2Agent (A2A) protocol. A2A security, also called Agent2Agent security or agent-to-agent security, puts a control on that call. The control decides which agents may call, what they may ask for, and what the call may carry.
A2A security is one part of AI runtime security, the set of controls that act while an AI system runs. For short definitions of the terms on this page, see the AI security glossary.
What is the Agent2Agent (A2A) protocol?
The Agent2Agent (A2A) protocol is an open protocol for calls between AI agents. It has a small number of parts.
- The agent card. Each agent publishes an agent card that describes what the agent can do. A caller reads the card before it sends work.
- JSON-RPC 2.0 requests. A caller sends each request as a JSON-RPC 2.0 call. The call names a method, such as
message/sendortasks/get. - Messages with parts. A message holds one or more parts. A part can be text, structured data, or an inline file.
- Tasks. Work that takes time becomes a task. The caller can ask for the state of the task later.
- Push notifications. A caller can give the agent an address to call back when a task finishes.
Every part gives the receiving agent something to read or something to act on. Securing AI agent communication means a control reads those parts before the agent does.
How is A2A different from MCP?
A2A and the Model Context Protocol (MCP) carry different kinds of work. A2A connects an agent to another agent. MCP connects an agent to tools and data.
A2A: agent to agent
One agent gives a piece of work to another agent. The second agent chooses its own steps and returns an answer. The call carries instructions.
MCP: agent to tool
An agent asks an MCP server which tools it offers and then calls them. Each tool call names one tool and its arguments.
One agent often uses both
An agent can receive work over A2A and then call tools over MCP to do that work. Both kinds of call need a control in the same data path.
The two protocols share a message format. Both use JSON-RPC, so a control must read the method of each call to know which protocol the call speaks. For the tool side, read What is MCP security?
What can go wrong when agents call agents?
An A2A call carries instructions. That makes it a path for the same risks that reach a model: hidden instructions, leaked data, and actions outside an agent’s job. The Open Worldwide Application Security Project (OWASP) lists this path as its own risk in the OWASP Top 10 for Agentic Applications: ASI07 Insecure Inter-Agent Communication.
Six A2A protocol risks show what a control must cover.
A caller that nobody verified
An agent that accepts work from any caller on the network acts for callers that have no verified name. Location inside the network proves nothing about the caller.
Hidden instructions in a message
An attacker hides instructions in a text part, a data part, or a file part. The receiving agent reads the part and follows the attacker’s instructions.
Sensitive data between agents
A message or an answer can carry a credential, such as a cloud access key. It can also carry personal data, such as a Social Security number.
Methods outside the agent's job
A caller can send a method that the agent has no reason to serve. A caller can also send another protocol over the same JSON-RPC shape.
Results sent to the wrong address
A push notification address tells the agent where to send results. A caller that sets that address to an outside host moves the results out of the network.
No record of the exchange
After an incident, a team must know what one agent told another. With no record of each call, the team has no way to show it.
Each problem appears in a live call between two agents. A control in the data path sees that call at the moment it happens.
What does a control check on each A2A call?
An A2A control does five jobs on each call. The jobs run in order, and each job narrows what the next job must handle.
Identity: which agent sent the call?
The control verifies the agent that calls. Proof is a credential that the control can test, such as a certificate. The control refuses a caller that is absent from the list of approved callers.
Protocol: is the call A2A?
The control reads each request. It admits a well-formed A2A call or a request for the agent card, and it refuses a request of any other shape or an oversized body.
Authorization: which method and address?
The control compares the method with the methods that the agent serves. It compares the push notification address with a list of approved hosts.
Inspection: what does the call carry?
The control reads the parts of each message and each answer. It looks for prompt injection, credentials, and personal data in both directions.
Record: what happened?
The control writes a record for each call and each answer. The record names the agent, the decision, and any findings.
Identity comes first for a reason. Once the control refuses unknown callers, the later checks see only known agents. A finding then names a real caller.
Where does an A2A control run?
Many teams put AI controls in one gateway at the network edge. That gateway sees the calls that cross the edge. Agents often run inside the network, and a call from one agent to another inside the network never reaches the edge.
An A2A control runs next to the agent that receives the call. In that place, the control sees every call to that agent, including the calls that stay inside the network. The control also knows the verified caller, because the same control checks identity.
How does A2A security relate to Zero Trust?
Zero Trust removes the trust that comes from network location. Every request must prove who sent it and must pass a policy check, every time. A2A security applies that rule to calls between agents.
An agent gets no trust from its place in the network. An agent that reached one agent has no standing access to the next agent. Each A2A call gets an identity check, a policy check, encryption, and a record.
Related explainer
The same rule for models, agents, and tools
Zero Trust for AI gives no model, agent, or tool trust from its place in the network. Read What is Zero Trust for AI?
How does Greymatter inspect and control A2A traffic?
Greymatter is a Zero Trust runtime security platform. It moves security controls into the live data path, closest to the resource. Greymatter inspects and controls A2A traffic in the data path, at the listener of the agent that receives the call.
Each call passes four checks on the way in. The answer passes one check on the way back.
What Greymatter adds
Four checks on the way in, one on the way back
Greymatter runs each check at the listener of the receiving agent.
The agent proves who it is
Identity gives each AI agent its own workload identity. Each agent runs with its own SPIRE identity and connects over mutual TLS. The receiving agent’s listener names the agents that may call it. Greymatter refuses a caller outside that list before its call reaches the agent.
Only A2A reaches the agent
A2A inspection reads each request on the listener. In REJECT mode, the listener takes only a JSON-RPC 2.0 call and a request for the agent card. Anything else gets a 400. An oversized body gets a 413 before the agent reads it.
Only listed methods and addresses
Your team lists the methods that the agent serves, such as message/send and tasks/get. A call to any other method gets a 403. A second entry reads the push notification address and admits only the hosts on your list.
Guardrails and DLP read each message
AI Guardrails and data loss prevention (DLP) scan the text parts, the structured data parts, and the inline file parts. They look for prompt injection, credentials, personal data, and the other risks that their modules cover.
The answer is checked too
The receiving agent’s answer comes back through the same data path. Guardrails and DLP scan it before the calling agent reads it. DLP records sensitive data in the answer and lets the work continue.
The inspection in check 2 keeps the method and the fields of each call. The authorization entries in check 3 act on those values. That is how Greymatter refuses a call that speaks another protocol over the same JSON-RPC shape.
On the way back, Guardrails can also block. With Guardrails in Enforce mode and an egress allow list in place, an answer that carries a data-bearing image link to an unlisted host gets a 403.
Teams turn on blocking in steps. Every Guardrails module starts in detect mode and reports what it would block. The identity, inspection, and authorization checks are policies that your team writes, so you decide when each one applies. Your team turns on blocking one module at a time, once the findings match what you expect.
The modules map to all ten risks in the OWASP Top 10 for Agentic Applications. See the mapping on the AI Guardrails page. For the same controls on model calls and tool calls, read the AI & Agent Control use case. For each check in detail, read Inspect and control agent-to-agent traffic.
What does the record of an A2A call show?
Each A2A call and each answer lands in the forensic record. The record holds the agent that made the call, the decision, and any findings.
When someone asks what one agent told another, the record answers by agent, by method, and by time. Forensic Auditing joins the records across hops, so one trace shows the person, the AI agent, the tool, and the data.
What the record shows
- Agent
- The agent that made the call
- Decision
- What Greymatter decided
- Findings
- What inspection found
- Search
- By agent, by method, and by time
Why does A2A traffic need post-quantum encryption?
Each A2A call is a new TLS connection that an agent opens on its own. Those connections carry instructions and the data behind them. Their number grows with every AI agent that a team deploys.
An attacker can record that traffic today and decrypt it later, unless the key exchange is post-quantum from the first call. Post-quantum encryption uses a key exchange that resists known quantum attacks.
Greymatter turns this protection on by default. A Greymatter agent handles each connection for the workload beside it. When your AI agents run on Greymatter, a Greymatter agent runs beside each one. The A2A call travels between two Greymatter agents, over mutual TLS with the post-quantum key exchange.
In a TLS 1.3 handshake, the Greymatter agent offers the key exchange group X25519MLKEM768 first. This group is a hybrid of X25519 and ML-KEM-768, the post-quantum algorithm from NIST FIPS 203. The Greymatter agent offers the group with no setting to turn on, and your AI teams write no code.
The same Greymatter agent also inspects the call. Post-quantum encryption protects the call on the wire, and inspection controls what the call may do. Read how Greymatter turns on post-quantum encryption by default.
- Kubernetes
- OpenShift
- RKE2
- k3s
- k0s
- Fully offline networks
A2A security is one rule: verify, inspect, and record every call between agents, where the call arrives. Greymatter runs those checks in the live data path, closest to the agent that receives the call.

