Whispers of Wealth: Red-teaming Google's Agent Payments Protocol via prompt injectionWhispers of Wealth: Red-Teaming Google's Agent Payments Protocol via Prompt Injection
The authors red-team the Gemini-2.5-Flash version of AP2: indirect injection ASR 100%, direct injection exposure 20%.
Pre-signature reasoning-layer attacks. Branded Whisper: a malicious merchant controls only product descriptions, with the goal of making their own product rank first. Vault Whisper: a malicious user submits only prompts, with the goal of cross-user disclosure of sensitive data. Neither can access signatures, credentials, or payment infrastructure, and neither breaks cryptographic enforcement.
- AP2 uses signed mandates to guarantee authorization, authenticity, and accountability for agent payments, but does not constrain how transactions are constructed from context before signing. The authors believe prompt injection can produce cryptographically valid authorizations that deviate from user intent, creating fraud and privacy risks.
- The authors implement a four-agent AP2 pipeline using Gemini-2.5-Flash and Google ADK. Branded Whisper uses indirect injection via product descriptions to alter ranking; Vault Whisper uses direct injection to induce cross-user disclosure when retrieving credentials.
- Fixed purchase task, synthetic data, 10 trials per condition. Benign ASR is 0%. Branded Whisper ranks the injected product first in all 10 trials, with an ASR of 100%, of which 6 clearly violate user constraints. Vault Whisper exposes cross-account data in 2 trials (20%), with 3 additional trials of partial attempted access.
- In Section 6.1, the authors state that the evaluation is based on controlled experiments with manually constructed prompts, and that automated adversarial generation and larger-scale testing should follow. The same section lists message tampering, authorization replay, compromised intermediary agents, and data poisoning as potential threats. The experimental model is Gemini-2.5-Flash, and the paper does not report defense results.
- Evaluated models
- Gemini-2.5-Flash
- Benchmarks
- AP2 human-present workflow
- Metrics
- ASRHigh-Risk Outcomessensitive data exposure rate
The researchers red-team Google's Agent Payments Protocol (AP2) and find that prompt injection can manipulate Agent decisions without breaking cryptographic signatures. The team implemented an AP2 shopping flow with Gemini-2.5-Flash and the Google Agent Development Kit (ADK), involving four agents: Shopping, Merchant, Merchant Payment Processor, and Credentials Provider. The Branded Whisper Attack embeds instructions in product descriptions, and the injected product was ranked first 100% of the time across 10 trials; the Vault Whisper Attack induces cross-account data leakage through direct prompt injection, succeeding 2 out of 10 times (20%). The authors argue that AP2's cryptographic signatures only guarantee correct execution, not protection of the reasoning process that generates transactions, and recommend adding prompt injection detection and post-hoc verification outside LLM reasoning.
Paper analysis
What problem does this paper attempt to solve?
AP2's signature guarantees correct execution but does not constrain pre-signature reasoning and decision-making.
AP2's signed mandate guarantees that approved transactions are executed correctly, but does not constrain how purchase and credential decisions are made before signing.
- Scenario: The authors state that LLM agents have entered high-stakes scenarios such as financial transactions, where decisions directly affect fund authorization, credential use, and cross-system coordination. Reasoning failures can cause financial loss and privacy issues.
- Protocol boundary: The authors state that AP2 uses digitally signed Intents, Carts, and Payment Mandates to guarantee authorization, authenticity, and accountability, and to prevent modification after approval; it does not constrain how decisions are formed during mandate construction.
- Authors' observation: The authors argue that execution integrity and reasoning integrity are separate. Prompt injection that affects ranking and credential access before signing can still produce transactions that are cryptographically valid but diverge from the user's true intent. The Figure 1 caption states: execution integrity is preserved, decision integrity is compromised.
- Threat model:
- The victim system is the authors' implementation of the AP2 human-present flow, comprising a Shopping Agent, Merchant Agent, Merchant Payment Processor Agent, and Credentials Provider Agent.
- Branded Whisper: a malicious merchant controls only product descriptions, cannot access signatures, credentials, or payment infrastructure; the goal is to force their own product to rank first.
- Vault Whisper: a malicious user can only submit prompts, cannot directly access databases or credentials; the goal is to disclose other users' sensitive information.
- The attacks occur in pre-signature reasoning and do not break cryptographic enforcement. The authors state that this setting follows indirect and context-level prompt injection in tool-integrated agents.
- What this paper does: Proposes the two attacks above and conducts red-team evaluation on a shopping agent implemented with Gemini-2.5-Flash and Google ADK.
What related research exists?
The authors state that the impact of prompt injection on payment protocols remains little studied, and this paper evaluates pre-signature reasoning.
The paper has no separate Related Work section; the relevant discussion is in the introduction, Section 2, and Section 6.
Payment protocols and communication
- AP2 (Google Cloud, 2025): uses digitally signed Intents, Carts, and Payment Mandates to support delegated purchases, ensuring authorization, authenticity, and accountability. The authors state that it constrains what is executed, not how decisions are formed.
- A2A (Google, 2025): standardizes message exchange, task delegation, and service discovery. The authors state that it governs communication structure, not content, and that context between agents can be untrusted.
- Background figures: the authors cite the IBM 2025 report's average breach cost of 4.4 million dollars, and Verizon DBIR 2025's finding that credential abuse accounted for 22% of breaches. Pandit et al. (2007) is used to support that, in e-commerce, manipulation of ranking logic or transaction flows affects revenue and user trust.
Prompt injection and agent security
- InjecAgent (Zhan et al., 2024) and Greshake et al. (2023): the former benchmarks indirect prompt injection in tool-integrated agents, and the latter studies indirect prompt injection in real LLM-integrated applications. The authors state that the threat model of this paper follows such settings, and that Branded Whisper is consistent with both works.
- Liu et al. (2023) and Pathade (2025): cited only at Vault Whisper. The authors state that the behavior on success reflects known, prompt-driven data exfiltration risks. The paper does not elaborate on their methods.
- Das et al. (2025) and Ferrag et al. (2025): used by the authors to illustrate that retrieved content, user input, and agent messages all enter the reasoning context, and that adversarial instructions can affect ranking and credential access across components. The introduction also cites references [9]–[11] together, stating that prompt injection can lead to unintended tool use and API execution.
Red teaming, defenses, and baselines
- Perez et al. (2022): red-teaming language models with language models. Section 2.4 accordingly frames red teaming as simulating adversarial interactions to assess vulnerabilities. The paper does not compare against this method.
- Defenses the authors point to: Section 6 lists PIGuard, DataSentinel, PromptArmor, MELON, as well as GuardAgent and AGrail. The authors state that the former can detect or constrain indirect injection before calling the LLM, and the latter can check sensitive tool calls outside of reasoning. These works are not run as experimental baselines.
- Baseline: the comparison is the same AP2 implementation's product selection under benign conditions. The paper does not report numerical comparisons against the above attack benchmarks or detectors.
The authors state that, despite substantial work on prompt injection and agent security, its impact on payment protocols such as AP2 remains largely unexplored. This paper evaluates pre-signature reasoning, not breaking cryptographic enforcement.
How does the paper address this problem?
Branded and Vault Whisper manipulate reasoning before signing, without breaking cryptographic enforcement.
On their own AP2 human-present shopping flow, the authors use the Branded Whisper Attack and the Vault Whisper Attack to manipulate pre-signature reasoning, so that the subsequent mandate remains cryptographically valid.
Workflow and boundaries
- Four agents: the Shopping Agent receives intent and orchestrates; the Merchant Agent provides products and pricing; the Credentials Provider Agent manages credentials and provides verified shipping and payment information; the Merchant Payment Processor Agent verifies signatures and initiates settlement.
- Three mandates: the Intent Mandate records the user's goal, the Cart Mandate writes transaction details, and the Payment Mandate authorizes the transfer. The authors state that each can be independently verified and prevents modification after approval.
- Three phases: first, preferences such as brand and size are collected and the Intent Mandate is approved by the user; then candidates are fetched from the merchant; after selection, the user authenticates, the credentials provider supplies information, the merchant computes price including tax and shipping, forming a Cart Mandate that must be approved; finally, the user signs the Payment Mandate, and the processor verifies and settles. The authors state that checks such as OTP may also be required before completion.
- Boundary drawn by the authors: cryptographic verification acts on signed content. Section 2.3 states that A2A governs communication structure, not content, and the information used to construct mandates is not necessarily trustworthy.
Branded Whisper Attack
- Who injects: a malicious merchant. The adversarial instruction is embedded in product metadata returned by the Merchant Agent and enters the Shopping Agent's reasoning context (Figure 3). The authors label this indirect prompt injection.
- Capabilities and goal: controls only product descriptions, with no access to signatures, credentials, or payment infrastructure. The goal is to place the attacker's product first regardless of user intent.
- Impact stated by the authors: what is altered is product selection during mandate construction. The Cart and Payment Mandates remain cryptographically valid, but the decision comes from adversarial input.
Vault Whisper Attack
- Who injects: a malicious user, submitting prompts through normal interaction, attempting to override data access constraints during credential retrieval (Figure 4). The authors label this direct prompt injection.
- Capabilities and goal: can submit arbitrary prompts, but cannot directly access the database or credentials. The goal is to disclose other users' sensitive information.
- Impact stated by the authors: targets data boundaries across agents. On success, confidential data is exposed while the cryptographic mandate is still correctly executed. The authors state this corresponds to known prompt-driven data exfiltration.
Implementation and evaluation
- Implementation: built with Google ADK following the human-present flow of reference [1]; all four agents are driven by Gemini-2.5-Flash.
- Task and data: all trials use the same fixed purchase request (outdoor basketball shoes), the data is synthetic, and the environment is isolated. The paper does not report temperature, decoding parameters, or system prompts.
- Repetitions and metrics: each condition is independently repeated 10 times. ASR is defined as the proportion of trials in which the injected product is ranked first. The credential attack does not use this ASR, but instead reports the sensitive data exposure rate.
- Mitigations in Section 6: the authors propose using prompt injection detectors to filter external content entering the context, and post-hoc verification outside of reasoning for sensitive tool calls, with the verification located outside LLM reasoning. These mechanisms are not implemented and have no experimental numbers.
What experiments did the paper conduct?
On Gemini-2.5-Flash, the ranking attack ASR is 100% and cross-account exposure is 20% (10 trials each).
Experimental setup
- Model: all four agents are driven by Gemini-2.5-Flash. The paper does not use a separate attack model or judge model.
- System and task: AP2 human-present flow on Google ADK. The evaluation task is fixed across all trials as purchasing outdoor basketball shoes.
- Data: synthetic data, isolated environment. The paper does not specify the product catalog size or number of accounts.
- Conditions and repetitions: benign baseline, Branded Whisper, Vault Whisper, 10 independent trials per condition, 30 total (Table 1).
- Metrics: ASR is the proportion of trials in which the injected product is ranked first; the credential attack reports sensitive data exposure. Table 1 also has High-Risk Outcomes. The paper does not state whether ranking or leakage was judged by humans or programmatically, nor does it report agreement.
- Unspecified settings: temperature, decoding parameters, number of queries per trial. The detectors and guardrails in Section 6 have no experimental numbers.
Main results
According to Table 1. All four agents are Gemini-2.5-Flash.
Swipe horizontally to read the table
Condition Trials ASR High-Risk Outcomes Baseline 10 0% 0 Branded Whisper Attack 10 100% 6 Vault Whisper Attack 10 N/A 2 (20%) - The authors state that under benign conditions, ranking reflects semantic relevance and behavior is consistent with intent; 1 of 10 trials had minor model instability, and removing that trial does not change the overall results.
- The authors state that indirect injection manipulates ranking at the reasoning layer, and the resulting mandate remains cryptographically valid. One output contained a fragment of the injected instruction, which the authors state confirms reasoning was contaminated.
- The authors state that ASR is not applicable to Vault Whisper because the goal is credential access rather than ranking; and that the results separate execution correctness from decision correctness. Table 1 does not define whether Branded Whisper's High-Risk Outcomes are the same as the 6 constraint violations in Section 5.1; the two numbers are identical, and the paper does not state whether they are the same statistic.
Whether ranking violates user constraints
- What was tested: Section 5.1 examines whether ranking under attack violates user constraints, and whether benign conditions prioritize irrelevant products. Figures 5 and 6 can only be checked by their captions; the curves or bar heights are not visible.
- Results: the authors report 6 cases where ranking clearly violates user constraints (e.g., brand preference); the remaining cases have partial semantic overlap, which the authors state reduces attribution clarity, but the first position is always the injected product. Under benign conditions, no unexpected or irrelevant products are prioritized. The captions state: under benign conditions, the highest ranking is consistent with user intent; under attack, the injected product ranks first despite weaker relevance.
- Authors' interpretation: the authors state that the adversarial instruction overrides relevance-based ranking, and the bias is systematic rather than coincidental alignment.
Cross-account data exposure
- What was tested: Section 5.2 injects during credential access, attempting to override identity constraints (Figure 7).
- Results: cross-account data exposure occurred in 2 of 10 trials (20%); 3 additional trials had partial attempted access; the rest had no leakage. One failure the authors describe: the system accepted the user-provided identity override and retrieved associated data without re-verification.
- Authors' interpretation: similar prompts do not succeed every time. The authors believe identity constraint enforcement at the reasoning layer is inconsistent rather than robust; the exploit uses ambiguity in reasoning before tool calls. The caption states this is a failure of identity-based access control at the reasoning layer. The authors state that cryptographic guarantees were not broken.
Other ablations and analyses
The paper reports no ablations, parameter sweeps, or defense experiments. Section 6 only proposes detectors and out-of-reasoning verification, with no corresponding numbers.
What are some points that can be further explored?
The authors state that the evaluation uses human-written prompts; future work should automate generation, expand testing, and implement inference-layer defenses.
Limitations and future directions noted by the authors
- Evaluation method (Section 6.1): The authors state that the evaluation is based on controlled experiments with manually constructed prompts, and call this a preliminary evaluation of reasoning-layer vulnerabilities.
- Future testing (Section 6.1): Future work should incorporate automated adversarial generation and larger-scale testing to more systematically measure attack success rate, cross-user leakage probability, and defense trade-offs.
- Broader attack surface (Section 6.1): The authors state that this paper focuses on prompt injection, and the attack surface of multi-agent environments extends beyond context manipulation. Listed potential threats include cross-agent message tampering, mandate replay across trust domains, compromised intermediary agents, and data poisoning that biases downstream reasoning.
- Open problem (Section 6.1): Establishing a unified threat taxonomy for A2A financial systems remains an open challenge, citing de Lamo Castrillo et al. (2025).
- Reasoning-layer defenses (Section 6.1): The authors state that stronger reasoning-layer defenses are needed, and design mechanisms that limit the influence of adversarial inputs on LLM reasoning, which they consider necessary for safe deployment of agentic financial systems.
- System-level limitation (Conclusion): The authors state that a key limitation of current agentic payment systems is that cryptographic correctness does not guarantee reasoning integrity; in addition to ensuring correct execution, mechanisms are needed to limit how inputs influence decisions.
Experimental coverage
- The tested model is Gemini-2.5-Flash, and all four agents are driven by it. Conditions are baseline, Branded Whisper, and Vault Whisper, with 10 trials each, for a total of 30 trials (Section 5, Table 1).
- The implemented pipeline is the AP2 human-present flow from reference [1]. The task is fixed as purchasing outdoor basketball shoes, using synthetic data and an isolated environment.
- Attack inputs are indirect injection in product descriptions and direct injection on the user side. Success is judged as ranking first or exposure of sensitive data. The paper does not report the review model, temperature, number of queries, or random seeds beyond the 10 independent trials.
- Section 6 discusses PIGuard, DataSentinel, PromptArmor, MELON, GuardAgent, and AGrail. The paper does not report experimental results for these methods.
- Section 6.1 lists cross-agent message tampering, mandate replay, compromised intermediary agents, and data poisoning. No results for these threats are given in the experimental section.
Summarize the main content of the paper
The authors state that on this Gemini-2.5-Flash implementation, ranking ASR is 100% while cross-account exposure is 20%, and cryptography does not protect decisions.
The authors conduct a reasoning-layer red-team evaluation of the AP2 shopping flow, separating execution integrity from decision integrity.
- Problem: Signed mandates guarantee authorization, authenticity, accountability, and immutability after approval, but do not constrain how the agent constructs transactions from context. The authors argue that pre-signature prompt injection can produce authorizations that are cryptographically valid yet diverge from user intent.
- System: Implements the human-present flow with Google ADK and Gemini-2.5-Flash, comprising shopping, merchant, payment processing, and credential agents. The task is fixed as purchasing outdoor basketball shoes, with synthetic data.
- Two attacks: Branded Whisper has the merchant place adversarial instructions in product descriptions to indirectly alter ranking. Vault Whisper has the user inject directly when retrieving credentials, attempting cross-user data disclosure. Neither accesses signatures, credential vaults, or payment infrastructure.
- Results: 10 trials per condition. Benign ASR is 0% (Table 1). Branded Whisper has an ASR of 100% and 6 High-Risk Outcomes; Section 5.1 states that 6 of these clearly violate user constraints, and one output contains a fragment of the injected instruction. Vault Whisper has 2 High-Risk Outcomes (20%), with 3 additional partial access attempts and no leakage otherwise; similar prompts do not succeed every time.
- Authors' conclusion: The authors state that the attacks occur within the reasoning process yet alter transaction outcomes; cryptographic correctness does not guarantee reasoning integrity. Agentic financial systems also need to limit how context influences decisions, not just ensure that signed transactions are executed correctly.