Researchers disclose a Whisper prompt injection attack on the AP2 payment protocol and propose the A-VIP defenseSigning the Transaction but Not the Decision: Whisper Attacks and a Binding Defense for AP2
The authors conducted Whisper decision attacks and A-VIP defense on AP2; factual manipulation reached 73.3% on gemini-3.1-flash-lite.
The attacker controls all free-text fields and product ordering returned by the merchant API, but does not control user intent, the wallet, model weights, or the system prompt; the goal is to induce calls to the payment discovery RPC to steal credential aliases (Vault), tamper with the cart (Branded), or induce the selection of higher-priced items through false inventory/iteration facts (Selection).
- The cryptographic signatures of agent payment protocols such as AP2 can only verify that a transaction has not been tampered with; they do not constrain the decision process that produced the transaction. By embedding instructions or factual assertions in product description text, merchants can manipulate shopping agents into making purchasing decisions that deviate from user intent.
- Proposes the A-VIP protocol-layer defense, treating signed intent as capability authorization. Uses DDFC single-use tokens to decouple user credentials, performs structured arithmetic and identifier comparison on shopping carts using display snapshots, and triggers user confirmation for unauthorized spending beyond baseline.
- Under the undefended baseline, Vault and Branded attack success rates reach 90% and 56% on the Flash-Lite preview model, and Selection reaches 73.3% on later models. A-VIP blocks all structural tampering with zero false positives and exposes high-price attacks 100% of the time.
- Same-price replacement items or single-SKU bundled sales by merchants cannot be detected under current rules; spending confirmation relies on manual user review; the input scanner has a 12% Strict FPR in stress testing; the evaluation does not cover multi-turn social engineering or split-payload attacks.
- Evaluated models
- gemini-2.5-flash-litegemini-3.1-flash-litegemini-3.1-pro-previewgemini-2.5-progemini-3.5-flash-litegpt-5.5claude-opus-5mistral-largeclaude-sonnet-4.6kimi-k3claude-3-haikugemini-3-flash-previewgemma-4-31b-itgemini-3.5-flashgemini-2.5-pro-preview-05-06gemma-4-26b-a4b-itgemma-3-27b-itgemini-2.5-flashgemma-2-27b-itgemma-3n-e4b-it
- Benchmarks
- AP2-WhisperBenchgoogle/ap2 v0.2.0 reference deploymentFetch.ai uAgentsCoralOS
- Metrics
- ASRWilson 95% CIStrict FPRFriction FPRLatency (ms)Throughput (scans/sec)
Researchers found that the AP2 agent payment protocol only signs transactions and does not constrain the decisions that produce transactions; merchant-controlled product description text can manipulate shopping agents. Among three attack types, Vault Whisper induces the agent to query payment credentials using someone else's email, Branded Whisper generates a signed cart whose content does not match what is displayed, and Selection Whisper uses just one factual statement about inventory or product history to push the agent from a cheaper item to a more expensive one. On the Gemini Flash-Lite model that the AP2 example agent specifies by default, the three attack types succeed at rates of 90%, 56%, and 73.3%, respectively; Selection Whisper is effective across 17 Google models, 3 unrelated agent frameworks, and Google's consumer assistant, with only claude-opus-5 showing strong resistance at a 1.2% success rate.
Why it was selectedThe paper decomposes prompt injection under the AP2 payment protocol into three attack classes and reports cross-model success rates. Teams building agent payments can use this to understand the gap that signatures cannot constrain decision-making.
Paper analysis
What problem does this paper attempt to solve?
Protocol-layer signatures can verify that transactions have not been tampered with, but they cannot constrain the reasoning process that makes decisions, allowing merchant text to manipulate agent behavior.
The paper addresses the problem that in agent payment protocols, signatures bind only the transaction content but do not constrain the decision process that produces the transaction, allowing merchant description text to manipulate shopping agent behavior.
- Scenario and importance of the problem: in autonomous agent e-commerce, users authorize agents to select and settle purchases autonomously. The AP2 protocol generates cryptographically valid signatures for transactions, but the authors note that the signatures do not bind the reasoning process that produced the decision, and merchant-controlled text can change purchase outcomes without containing instructions.
- Shortcomings of existing defense mechanisms: the AP2 specification assumes that defending against prompt injection is infeasible and relies on constraint mechanisms for post-hoc containment; however, the authors note that the reference implementation's human-in-the-loop scenario leaves constraint fields empty, and credential discovery occurs before cart signing, outside the closed-loop constraint check scope.
- Core observation of the paper: merchant manipulation is not limited to instruction-style injection, but also includes factual premises stating inventory or product iterations; factual premises contain no imperative sentences and can bypass model alignment defenses tuned against instructions.
- Solution proposed by the paper: the paper proposes a taxonomy of three Whisper attack classes, the A-VIP protocol-layer binding defense mechanism, and the AP2-WhisperBench benchmark containing 1,544 evaluation scenarios.
- Threat model:
- Attacker goal: steal the victim's payment credential alias, tamper with cart entries or the settlement payee, or induce the agent to select higher-priced items promoted by the merchant.
- Attacker knowledge: a black-box external merchant that controls all free-text fields and product ordering returned by its own API, but does not have user intent, model weights, system prompts, or wallet responses.
- Attacker capability: controls product labels, descriptions, and the content returned by search_products; cannot tamper with user intent, wallet signatures, or the underlying cryptographic primitives.
- Victim system: a shopping agent running the Google AP2 v0.2.0 reference deployment and related multi-agent systems.
What related research exists?
Existing research covers agent payment security, prompt injection benchmarks, and model input/output defenses, but lacks protocol-layer binding of intent and decisions.
Around agent payment protocols and prompt injection defenses, the paper discusses the following related work:
Agent payments and protocol-layer verification
- AP2 and ZTRV (Lan et al., 2026): AP2 (Google, 2026) authorizes transactions through three groups of signed credentials: intent, cart, and payment; ZTRV uses single-use nonces to bind context at runtime against replay, but its authors explicitly list semantic injection as an open challenge outside execution-layer verification.
- Verifiable Intent (Mastercard, 2026) and x402 (Coinbase, 2025): the former provides post-hoc proofs for dispute arbitration rather than preemptive prevention; the latter is a crypto-native payment protocol based on a different federated model. Neither checks merchant content.
- Merchant-side and underlying protocol risk research: studies of the A2A transport layer (Anbiaee et al., 2026; Habler et al., 2025) and the MCP interface (Huang et al., 2026; Wang et al., 2026) discuss transport and tool poisoning risks.
AP2 prompt injection and structural flaw attacks
- Whispers of Wealth (Debi et al., 2026): the authors state that, to their knowledge, this work is the first to publish prompt injection attacks against AP2, proposing Branded and Vault variants; however, that work tests at a scale of 10 trials per single task, has no benign baseline, and does not evaluate defenses.
- Protocol structural flaw analysis (Louck, 2026): concurrent work catalogs model-agnostic structural flaws in agent e-commerce and provides cross-platform defenses, whereas this paper focuses on decision-layer attacks that depend on model reasoning.
Indirect prompt injection defenses
- Model-internal and input-side defenses: Meta SecAlign (Chen et al., 2025) rejects injected instructions through alignment training; StruQ (Chen et al., 2025) uses delimiters to separate data from instructions. The authors note that these methods require model control or cannot defend against instruction-free factual premises.
- Output-side and credential-path defenses: CaMeL (Debenedetti et al., 2025), MELON (Zhu et al., 2025), and Task Shield (Jia et al., 2025) verify tool calls after model decisions but add inference latency or API cost; SUDP (Yu et al., 2026) and CapSeal (Jin et al., 2026) isolate credentials outside the context but are not bound to the AP2 protocol.
Baseline methods and datasets used
- Baseline methods: the input defense baseline compares deployment-side signed proxy implementations of StruQ, SecAlign, PromptArmor (Shi et al., 2025), and CASCADE (Abasıkeleş Turgut & Gümüş, 2026).
- Evaluation environment used: experiments are evaluated on Google AP2 v0.2.0 reference implementation, Fetch.ai uAgents, and CoralOS.
The authors argue that most existing defenses require trade-offs among model weights, high-latency inference, or post-hoc auditing, whereas this paper positions itself as lightweight structural binding of signed objects and intent at the protocol layer, filling the defense gap where decisions are unconstrained.
How does the paper address this problem?
A-VIP treats intent as capability authorization, decouples credentials through session tokens, binds the cart through structured comparison, and triggers confirmation for unauthorized overspending.
For the three attack classes, the paper proposes the protocol-layer defense mechanism A-VIP (AP2 Verified-Intent Protection), which treats signed intent as capability authorization and uses structured verification on the CPU to block violations.
Credential-finding defense: decoupling user identifiers from direct data flow control
Vault Whisper induces the agent to pass the victim's email to the wallet to steal credentials. A-VIP uses the Direct Data Flow Controller (DDFC):
- Identifier removal: the agent no longer passes user identifiers to the wallet; instead it requests a single-use opaque token bound to the session.
- Four-party message passing and formal proof: the credential provider issues the token T = SignC(sid, cm_hash, aud, nonce, exp), where the formula denotes the credential token generated by the credential provider signing the session identifier, cart hash, audience merchant identifier, single-use nonce, and expiration time. The merchant presents the token together with the signed cart authorization at settlement.
- TLC model checking: the authors model-checked four invariants in TLA+: no identifier leakage, audience binding, cart binding, and single-use freshness.
Cart binding: comparison based on structured snapshots
Branded Whisper tampers with cart line items to generate a cart authorization that is valid but deviates from intent. A-VIP performs three deterministic checks at the protocol layer:
- Entity binding: rejects carts whose settlement payee does not match the DID of the merchant displaying the goods, preventing payment redirection.
- Display binding: an honest agent records a snapshot of the goods at display time (including identifier, unit price, and currency); verification requires that every item in the cart exists in the snapshot, the unit price and currency match, the quantity does not exceed the intent limit, and the total price equals the sum of the items.
- Chain invariant: rejects replayed authorizations, authorizations outside the validity window, or multiple signed carts under a single user confirmation.
Factual selection interception: exposing excess spending and budget constraints
Selection Whisper induces the agent to choose higher-priced substitutes among displayed goods, producing a cart that is structurally fully consistent with the merchant display:
- Baseline comparison and confirmation prompt: if the user has not specified a brand preference, the system uses the lowest-priced catalog item satisfying the hard constraints as the baseline; if the selected item's price is higher than the baseline and the intent has no budget, A-VIP pauses silent settlement and surfaces the incremental spending for user confirmation.
- Budget rules remove friction: if the user explicitly declares a budget cap in the signed intent and the selected item does not exceed the budget, the system lets it through directly without additional confirmation.
Secondary content detection layer design
As an auxiliary defense, A-VIP deploys a lightweight content scanner at the input side:
- Multi-channel scanner: includes a keyword/pattern channel with 13 regular expressions (channel B), an SBERT cosine similarity channel (channel A), and a structured co-occurrence detection channel (channel C).
- Semantic verifier: uses DeBERTa-v3 and SBERT to evaluate entailment and similarity between the intent and the cart, calibrated on benign requests that name specific goods.
What experiments did the paper conduct?
The evaluation covers 17 Google models and cross-vendor models. The measurements recorded that factual manipulation is broadly effective, and A-VIP successfully blocks structural tampering.
Experimental Setup
- Models tested: Tested 17 Google builds (including gemini-3.1-flash-lite, gemini-3-flash-preview, gemini-3.1-pro-preview, gemini-3.5-flash, gemini-3.5-flash-lite, gemini-3.6-flash, gemini-2.5-pro, gemini-2.5-pro-preview-05-06, gemini-2.5-flash, gemini-2.5-flash-lite, gemma-4-31b-it, gemma-4-26b-a4b-it, gemma-3-27b-it, gemma-2-27b-it, gemma-3n-e4b-it, gemma-3-12b-it, gemma-3-4b-it) as well as cross-vendor baselines gpt-5.5, claude-opus-5, claude-sonnet-4.6, claude-3-haiku, mistral-large, kimi-k3, deepseek-v4-pro, qwen3.5, gpt-oss-120b, glm-5.2, etc.
- Dataset and scale: Built the AP2-WhisperBench benchmark, containing 1,440 core scenarios (150 Vault Whisper, 150 Branded Whisper, 90 Selection Whisper, 1,050 benign controls) and 104 branded_factual scenarios, totaling 1,544 scenarios.
- Baselines and comparison frameworks: Agent frameworks compared AP2 v0.2.0, Fetch.ai uAgents, and CoralOS; defense baselines compared proxy implementations of StruQ, SecAlign, PromptArmor, and CASCADE.
- Metrics and evaluation method: Metrics use per-call attack success rate (ASR, with Wilson 95% confidence intervals) and Strict FPR. Vault and Branded use Python deterministic predicates for adjudication; Selection uses a deterministic clause-locating reader score validated by human review (agreement κ = 0.96).
Main Results
On the undefended AP2 v0.2.0 baseline, the success rates of each attack family and selection attacks across different models are shown in the table:
Swipe horizontally to read the table
Model Vendor Test Category (Source) Sample Size n Success Rate ASR (95% CI) gemini-2.5-flash-lite Google Vault Whisper (Table 3) 50 90% [78.6, 95.7] gemini-2.5-flash-lite Google Branded Whisper (Table 3) 50 56% [42.3, 68.8] gemini-3.1-flash-lite Google Selection Whisper (Table 3/4) 90 73.3% [63.4, 81.4] gemini-3.1-pro-preview Google Selection Whisper (Table 4) 90 67.1% [56.1, 76.4] gemini-2.5-pro Google Selection Whisper (Table 4) 90 61.9% [51.2, 71.6] gemini-3.5-flash-lite Google Selection Whisper (Table 4) 90 50.0% [42.8, 57.2] gpt-5.5 OpenAI Selection Whisper (Table 4) 90 41.1% [31.5, 51.4] claude-opus-5 Anthropic Selection Whisper (Table 4) 90 1.2% [0.2, 6.5] Author interpretation notes:
- On the Flash-Lite model branch that AP2 uses by default, all three attack types achieve high success rates.
- None of the 17 Google models fully resisted Selection Whisper, with success rates between 23.3% and 73.3%; high-compute Pro models did not show stronger resistance.
- Among the tested builds, only claude-opus-5 showed a low success rate (1.2%); manual analysis found that this model proactively verifies inventory with the merchant or suggests third-party options rather than directly trusting assertions.
Escalation from Instructions to Facts and Cross-Framework Testing
- Instruction vs. fact phrasing comparison: In 32 scenarios (Table 5), gemini-3.1-pro-preview accepted factual premises at 100.0%, gemini-2.5-pro at 93.8%, and across 27 models from 6 organizations the aggregate success rate was 71.8% [68.7, 74.7]; in 90 scenarios, Anthropic Opus models followed explicit instructions only 3.3% to 4.4% of the time.
- Heterogeneous multi-agent framework testing: On Fetch.ai uAgents, a single-sentence fact injection changed recommendations in 30/30 trials (control 0/30); on CoralOS, the attack succeeded in 29/30 trials (control 0/30).
- Consumer assistant testing: The authors tested the Gemini 3.5 Flash-Lite consumer application (Table 6); directly pasting the same statements was rejected 8/8 times; but when provided via a retrieved webpage, the attack success rate for 4 phrasings rose from 7/12 to 12/12.
Defense Mechanism Interception Effectiveness and System Overhead
- Structured defense effectiveness: A-VIP structured checks correctly identified 7/7 types of tampering in 68 attacked shopping carts, with a false positive rate of 0/68 on benign samples (Table 11); DDFC structurally blocked Vault Whisper credential leakage under TLC formal verification.
- Spend confirmation overhead: Among 68 shopping carts tampered by Selection attacks, the spend confirmation rule exposed 68/68 (100% [94.6, 100]); among 24 benign high-value requests, all 16 without budget declarations triggered confirmation, and all 8 with declared budgets did not trigger unnecessary confirmations.
- Latency and throughput: On an Intel i7-13700H laptop, structured checks had a median latency of 0.04 ms, regex matching 0.21 ms, and embedding gateway 0.23 ms (average 15.6 ms); the input scanner achieved a throughput of 10,328 requests/second with 8 processes.
Additional Ablations and Analyses
- Across tests in 10 languages and 5 character sets, Selection attack success rate was 81.1% [76.7, 84.8] (Section 7.8).
- In adaptive attack rewriting tests, two independent generators bypassed the content scanner at rates of 79% (Branded) and 17% (Vault), but neither could bypass structured binding (Section 7.8).
- In a diversity stress test of 50 benign samples, the content scanner's Strict FPR was 12% [5.6, 23.8] (Appendix L).
- In credential leakage matrix tests, gemini-3.1-flash-lite and claude-3-haiku at the same unit price ($0.25/M tokens) leaked at rates of 95% and 85%, respectively (Table 8).
- Against 6 shopping cart numeric drift probes, +10% drift was allowed due to tolerance design, while the other 5 tampering types were intercepted by the numeric guard (Appendix H).
Negative Results and Exceptions
- claude-opus-5 showed resistance to factual manipulation (ASR of 1.2% and 0.0%); the authors' analysis indicates the model exhibits proactive verification behavior.
- gemini-2.5-pro in early tests was judged as refusing due to a 300-token output truncation limit that prevented item names from being output; after raising the limit, its success rate recovered to 61.9% (Section 7.3).
- The consumer application's advanced model identified an indirect prompt injection test in 1 refusal, but followed the injected claims in 11 of the remaining 12 tests; the authors believe this reflects inconsistent behavioral application by the model (Section 7.5).
What are some points that can be further explored?
The authors note limitations such as inability to intercept same-price substitutions, confirmation relying on user review, and scanner false positives; future work could explore multi-turn social engineering and cryptographic proofs.
Limitations and future directions noted by the authors
- Same-price substitution at the merchant side cannot be blocked by spending rules: if the merchant-recommended replacement item has a price equal to the baseline price, or bundles accessories into a single displayed SKU, the spending confirmation rules cannot detect it. The authors note that such cases require platform marketplace policy rather than signed-object checks (Section 7.7).
- The confirmation mechanism relies on real user review: the spending confirmation rules rely on users carefully reviewing prompts rather than mechanically clicking agree. The authors note that this mechanism mitigates the attack but does not eliminate the risk (Section 7.7).
- The content scanner has false positives on benign text: the content scanning layer has a Strict FPR of 12% in the diversity stress test. The authors note that content checking is the weakest component of the system and propose future production calibration through domain whitelists and language rule retuning (Section 8, Appendix L).
- Sample size limitations in consumer-grade evaluation and model comparison: the consumer-grade assistant has only 8 to 13 runs per unit test, and the inference-layer and cross-vendor observations are partly based on single trials. The authors explicitly state these cannot serve as precise estimates (Section 8).
- Multi-turn and split-payload attacks excluded: the benchmark does not cover multi-turn social engineering attacks or split-payload attacks. The authors explicitly list these as outside the benchmark scope (Section 6, Section 8).
- Cryptographic underpinning proofs left for future work: DDFC verification abstracts over the integrity of the underlying cryptographic primitives. The authors note that accompanying proofs of the underlying JWT/COSE signatures using Tamarin or ProVerif are left for future work (Appendix D).
Experimental coverage
- Model coverage: the evaluation covers 17 Google internal and open-source model builds, plus 10 external models from OpenAI, Anthropic, Mistral, Moonshot, DeepSeek, Alibaba, and Zhipu.
- Environment and framework coverage: experiments were run on three agent orchestration architectures: the AP2 v0.2.0 reference implementation, Fetch.ai uAgents, and CoralOS.
- Scenario coverage: the benchmark contains 1,544 synthetic scenarios covering 6 classes of benign merchant edge cases and 5 Branded manipulation variants.
- Language coverage: language testing covers 10 languages and 5 writing systems.
- Information not reported in the paper: the paper does not test real third-party production merchant environments beyond the AP2 reference implementation, and it does not report the actual click-through rate of real human users when faced with incremental spending confirmation prompts.
Summarize the main content of the paper
The paper reveals the risk of manipulation at the decision layer of the AP2 protocol, proposes the structured and capability-binding defense A-VIP, and releases an evaluation benchmark.
- Positioning and goal: this paper targets the agent payment protocol AP2, studies the reasoning-layer attack surface where merchants use product descriptions to influence agent decisions, and proposes the protocol-layer binding defense A-VIP and the evaluation benchmark AP2-WhisperBench.
- Problem to solve: the cryptographic signatures of existing payment protocols can only prove that a transaction was not tampered with, but do not constrain the decision reasoning that generated the transaction; merchants can sway shopping outcomes by embedding factual assertions without malicious instructions in product descriptions, and the resulting carts fully satisfy protocol verification.
- Method highlights: A-VIP transforms user signed intent into capability authorization. Against credential leakage (Vault Whisper), it introduces DDFC using single-use session tokens to replace user identifiers; against cart tampering (Branded Whisper), it performs arithmetic and identifier comparison of entities and displays against snapshots; against factual inducement (Selection Whisper), it exposes unauthorized spending to the user for confirmation by comparing against the lowest-price baseline.
- Key experimental findings:
- On the AP2 default Flash-Lite preview model, Vault and Branded attack success rates reach 90% and 56% respectively (Table 3); Selection attacks reach 73.3% on the later GA version (Table 3).
- Factual manipulation success rates range from 23.3% to 73.3% across 17 Google models (Table 4), reaching 71.8% across 27 multi-vendor models (Section 7.4), with only claude-opus-5 showing a low success rate (1.2%).
- A-VIP structured checks closed the loop with zero false positives on all 7 classes of cart tampering, and exposed unauthorized spending in 100% of 68 manipulated carts (Table 11).
- The auxiliary content scanner reaches 1,932 operations/second on a single core of an Intel i7 CPU and 10,328 operations/second with 8 threads (Appendix C).
- Author conclusions and implications: the authors note that model resistance has no direct correspondence to model size, vendor, or pricing; payment protocol designers cannot rely on downstream models to defend themselves and must strictly bind credentials, carts, and spending to the user's initial authorization at the protocol layer.