Agent-to-Agent Firewall

Simulated: no agent, network, or real standard is used. All traffic happens in this page. The model is simplified and is not the A2A SDK code.

Scenario
Mode
Firewall rules (used in "With firewall" mode)
The credential is bound to partner.example.test. Edit a rule, then press Play.

Where the check happens

Anatomy of the agent-to-agent firewall A caller agent sends a message with a credential to a firewall box. The firewall passes it to the partner agent, or stops it. Dashed paths lead from the firewall to a third-party agent and to an internal service. A dot moves along the path of each message. Caller agentholds key_**** FirewalloffBLOCKED Partner agentpartner.example.test Third partythird-party.example.test Internal service169.254.169.254 intended leak path

The dot is one message. Solid line: the path the credential should take. Dashed lines: paths the firewall closes. A leak turns a line thick and red.

Agent chat

Press Play to start the conversation.

No run yet.

What the firewall sees

Status
Waiting for the first message.

Try this

  1. Pick "Agent card picks the header name", then "Hostile card names Authorization". Press Play without the firewall.
  2. Switch to "With firewall" and press Play again. Read the notice in the chat.
  3. Add "Authorization" to the allowed header names. Press Play and watch the next rule stop the redirect.

Pain point

A credential can leave the place it was meant for when one agent calls another.

Problem statement

A hostile agent card or a hostile redirect can send a credential to the wrong party. Nothing checks header names, redirects, or destinations before a request leaves.

What sparked it

Per public reports, three A2A Java SDK advisories came out on Oct 20 2026. The scenarios follow their themes.

Why this approach

A firewall at the agent gateway binds each credential to one authority. It checks each request before the request leaves.

Hypothesis tested

We believed that a few gateway rules can stop all three advisory patterns. If it holds, each attack fails with the firewall on and passes with it off.

How to try it

  1. Open the Prototype tab. Pick a scenario and a variant.
  2. Press Play in "Without firewall" mode and read the red verdict.
  3. Press Play in "With firewall" mode and read the green verdict.
  4. Edit the rules and play again.

What this does not do

Notes

Traces

Prompts used to make this prototype
StepPromptModelToolDate

Cost

Cost to make this prototype
StepModelInput tokensOutput tokensCost (USD)
Total

Measured: the author runs used 190,576 tokens in total. Estimated: the split into input and output tokens (90 percent input, 10 percent output) and the dollar cost, at $2 input and $10 output per million tokens for Sonnet 5.5 (about $0.53). The run reported one total only. The lead session's planning, research, and publishing are not included. The prompts in the Traces section are listed in the order they were given.