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. These calls use the Agent2Agent (A2A) protocol: JSON-RPC 2.0 requests such as message/send and tasks/get, plus an agent card that describes what each agent can do.
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 OWASP Top 10 for Agentic Applications lists it as its own risk, ASI07 Insecure Inter-Agent Communication.
Greymatter inspects and controls A2A traffic in the data path, at the listener of the agent that receives the call.
Check 1: the agent proves who it is
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. A caller outside that list is refused before its call reaches the agent, so the later checks only ever see known agents.
Check 2: only A2A reaches the agent
Greymatter’s A2A inspection reads each request on the listener. In REJECT mode, the listener takes only two things: a JSON-RPC 2.0 call and a request for the agent card. Anything else gets a 400. A size limit on each call refuses an oversized body with a 413 before the agent reads it.
The inspection also keeps the method and the fields of each call, so the next check can act on them.
Check 3: only listed methods and addresses
An authorization entry reads the method that the inspection found. Your team lists the methods the agent serves, such as message/send and tasks/get. A call to any other method gets a 403. That includes a call that speaks another protocol over the same JSON-RPC shape.
Push notifications get the same treatment. A2A lets a caller give the agent an address to call back when a task finishes. A second entry reads that address and admits only the hosts on your list. A call that tries to send results somewhere else gets a 403.
Check 4: Guardrails and DLP read each message
Guardrails and DLP scan the parts of each A2A message: text parts, structured data parts, and inline file parts. They look for prompt injection, credentials such as a cloud access key, personal data such as a Social Security number, and the other risks their modules cover. An ordinary message passes with no finding.
On the way back: 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. 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. DLP records sensitive data in the answer and lets the work continue.
Every call is on the record
Each A2A call and answer lands in the forensic record with the agent that made it, the decision, and any findings. When someone asks what one agent told another, the record answers by agent, by method, and by time.
Start in detect mode
Every Guardrails module starts in detect mode and reports what it would block. The identity, inspection, and authorization checks are policies your team writes, so you decide when each one applies. Turn on blocking one module at a time, once the findings match what you expect.
See the full mapping to the OWASP Top 10 for Agentic Applications on the AI Guardrails page.

