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
What's happening
Finding3The 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.
Also reported in +1 briefing
flag a problem with BI-FIND-2026-1085
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.
flag a problem with BI-FIND-2026-1086
Figure steps
- 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.
- 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.
- 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.
- 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.
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 →
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.
flag a problem with BI-FIND-2026-1087
Section by section
4showing 4 of 4
[1]Runtime gap in AP2 mandates and threat model
Qianlong Lan, eBay Inc
Agentic paymentsAgentic identityStandards
Runtime gap in AP2 mandates and threat model
Qianlong Lan, eBay Inc
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 design: context binding and nonce registry
Qianlong Lan, eBay Inc
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
Simulation evaluation, ablation and overhead
Qianlong Lan, eBay Inc
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
Limits, deployment and conclusions
Qianlong Lan, eBay Inc
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