Skip to content
IAM Insights

Briefing · Paper · source · updated · Boston Identity

eBay researchers say AP2 does not make a payment mandate single-use, so they built a gateway that does

Four eBay researchers argue that Google's Agent Payments Protocol (AP2) leaves two checks to whoever deploys it: that a signed mandate runs only once before it expires, and that it runs against the merchant it was meant for. Their gateway, ZTRV, adds both. It was tested in simulation against a mock merchant, and AP2 v0.2, published since, has tightened the merchant half.

arXiv · Qianlong Lan, Anuj Kaul, Shaun Jones, Stephanie Westrum · February 6, 2026 · read

share
3 findings4 sectionsAgentic paymentsAgentic identityStandardsFraudAI trust
5,018 words. With Qianlong Lan, author, eBay Inc.
01

What's happening

Finding3
BI-FIND-2026-1085Lead finding

The eBay authors argue AP2 does not require a payment mandate to be used only once, and AP2's v0.2 specification still tells no verifier to treat one as spent.

Lan, Kaul, Jones and Westrum of eBay argue that AP2 signs payment mandates and gives them an expiry, but leaves two checks to whoever deploys it. In their reading, AP2 "does not require (i) consume-once enforcement" to keep a mandate from executing more than once within its validity window, nor strict binding at execution time to the intended merchant when requests pass through a shared payment-processor endpoint. They read AP2 as Google announced it in September 2025. When we checked the v0.2 specification published in April 2026, the merchant half had moved: the merchant must match a checkout hash to the Checkout JWT it signed, and the processor must check the payment credential is scoped to that checkout. The spend-once half had not. The only reuse rule we found is on the agent, which may not present a second open mandate until the first is rejected; neither v0.2 document tells a verifier to treat a mandate as spent.

medium confidencebest source: vendor, technicalobserved Feb 2026 – Apr 2026EvidenceRuntime gap in AP2 mandates and threat model
Also reported in +1 briefing
flag a problem with BI-FIND-2026-1085
BI-FIND-2026-1086

ZTRV, the authors' fail-closed gateway, checks a context hash and a nonce in each mandate, yet the paper says it needs no change to the AP2 mandate format.

The authors' fix, ZTRV, is a fail-closed gateway that every mandate-bearing request must pass before it reaches the merchant or payment processor. After checking signature and expiry, it rebuilds a SHA-256 hash over the task, agent, merchant and scope and rejects any mismatch, then claims the mandate's nonce in a registry with an atomic set-if-absent and rejects a nonce it has already seen within the validity window. The paper says ZTRV needs no change to the AP2 specification or mandate format, yet its own design compares against a context hash "embedded within the mandate's cryptographic signature" and says each mandate includes a unique nonce. We read that as a change to what the mandate issuer signs, and the paper does not say how it fits AP2. The authors also say ZTRV cannot stop a legitimate agent that is manipulated, for example through prompt injection, into obtaining and using a valid mandate for the wrong purpose.

medium confidencebest source: vendor, technicalobserved Feb 2026EvidenceSection 2Limits, deployment and conclusions
flag a problem with BI-FIND-2026-1086
Figure steps
  1. The agent sends a request carrying its mandate for merchant A. The gateway checks signature and expiry, then rebuilds the context hash over task, agent, merchant and scope.
  2. The gateway claims the mandate's nonce with a set-if-absent. It is new, so the registry stores it and the request goes on to the merchant or payment processor.
  3. The same request arrives again. It passes signature, expiry and context, but the registry has already seen the nonce, so the gateway rejects it as a replay.
  4. The same mandate aimed at merchant B fails the context hash and is rejected before the registry is asked. A verifier that checks only signature and expiry would have forwarded both.
Fig. 1

A replayed mandate passes the signature, expiry and context checks and is stopped only when the registry has already seen its nonce; one aimed at another merchant fails the context hash first.

Drawn from the paper's figure 1 and Algorithm 1Source dated February 6, 2026Passage: Section 2

Swipe for the full figure →

BI-FIND-2026-1087

ZTRV stopped all three tested attacks in a Python simulation against a mock merchant, beating the authors' own baseline that checks only signature and expiry.

The evidence is a Python simulation against a mock merchant, and its headline result follows from the design. The baseline the authors beat is their own verifier that checks only signature and expiry, so it stopped none of the three attacks tested (context redirect, cross-context replay, same-context replay) while ZTRV stopped all of them with no false positives at N=5,000; the authors themselves put the perfect score down to deterministic checks. The ablation says more: the nonce alone stopped only same-context replay, and context binding alone stopped only the redirect and cross-context replay, so neither check covers for the other. Overhead was about 3.7 to 3.85 ms a request up to 10,000 requests a second, though the paper's text, chart and table give slightly different figures. We read its 12 MB registry ceiling as an effect of the 10-second test run, not a peak a live system would settle at: at 10,000 requests a second, any window longer than the run holds every nonce the run produced.

medium confidencebest source: vendor, technicalobserved Feb 2026EvidenceSimulation evaluation, ablation and overhead
flag a problem with BI-FIND-2026-1087
02

Section by section

4

showing 4 of 4

[1]

Runtime gap in AP2 mandates and threat model

Qianlong Lan, eBay Inc

Agentic paymentsAgentic identityStandards

The authors argue that AP2 mandates come with signatures, expiry and integrity, but that the specification does not require a mandate to be consumed once, or bound at execution time to the intended merchant. They model four threats: same-context replay, cross-context replay, misuse of leaked context, and replay of mandates harvested from observability pipelines. The case rests on their reading of the specification, with no deployment data behind it.

opinionfrom published text

[2]

ZTRV design: context binding and nonce registry

Qianlong Lan, eBay Inc

Agentic paymentsAgentic identity

ZTRV sits between agents and the merchant or payment processor and fails closed. It checks signature and expiry, rebuilds a SHA-256 context hash over task, agent, merchant and scope, then claims the mandate's nonce with an atomic set-if-absent in a registry that forgets nonces after a set window. The authors say it needs no change to the AP2 mandate format.

technical artifactfrom published text

[3]

Simulation evaluation, ablation and overhead

Qianlong Lan, eBay Inc

Agentic paymentsFraud

A Python prototype faced simulated attacks against a mock merchant. The authors' baseline, which checks only signature and expiry, stopped 0%; ZTRV stopped 100% at N=5,000 with no false positives. In the ablation the nonce alone stopped same-context replay and context binding alone stopped redirect and cross-context replay. Latency stayed near 3.7 to 3.85 ms up to 10,000 requests a second, and the registry peaked near 12 MB.

technical artifactfrom published text + figures

[4]

Limits, deployment and conclusions

Qianlong Lan, eBay Inc

Agentic paymentsAI trust

The authors credit the perfect detection to deterministic checks rather than heuristics, and say ZTRV can run in an API gateway or a service-mesh sidecar. They concede it cannot stop a legitimate agent manipulated, through prompt injection for instance, into obtaining a valid mandate, and they assume synchronized clocks and strongly consistent storage. Trusted execution environments are their next step.

opinionfrom published text

Terms used

AP2
Google's open protocol for letting AI agents make payments on a person's behalf with signed proof of what they approved.
Mandate (AP2)
In Google's Agent Payments Protocol (AP2), a signed statement of what a person authorized an agent to buy and pay, either naming the exact checkout (closed) or setting limits (open).
JWT
A compact, signed token that carries claims (who, for what, until when) between systems. It is the usual shape of an OAuth access token.
Fail closed
Deny by default when a check cannot be completed, rather than let the request through.
SHA-256
Secure Hash Algorithm 256 (SHA-256): a standard hash function that turns any data into a fixed 256-bit fingerprint, so changing the data changes the fingerprint.
Prompt injection
Hiding instructions in text an AI model reads, such as an email or a web page, so the model does something its operator never asked for.
API gateway
Application programming interface (API) gateway: a front door that routes, authenticates and rate-limits API traffic before it reaches the services behind it.
Sidecar
A helper process run beside an application, in the same pod or host, that handles cross-cutting work such as proxying traffic or fetching credentials, so the application code does not change.

Cited in our columns

Read next

Was this briefing useful?

Share this briefing

Every finding, forecast and open question on this site has a permanent ID. If we reword one, its ID stays the same, so a citation keeps pointing to the same claim.

Follow us on LinkedInRSS feed

Working on an identity problem this research touches? Talk to Boston Identity