Researchers conduct a systematic security analysis of Google AP2 v0.2, identifying 48 threatsBeyond the Mandate: A Systematic Security Analysis of the Agent Payments Protocol (AP2)
The authors systematically analyze Google's agentic payment protocol AP2 v0.2, noting that legitimate signatures cannot defend against pre-context manipulation, and identify 8 high-risk threats.
The threat model covers four actor types (TA1 User, TA2 Merchant, TA3 Developer/Operator, TA4 External Attacker), 11 attack surfaces (S1–S11), 18 capabilities (AC and AK), and six objectives (AG1–AG6), evaluating the authorization and execution security of AP2 v0.2 under five architectures A1–A5.
- The agent payment protocol AP2 protects transaction integrity through signed credentials, but does not protect the unsigned context before the signature is issued (such as A2A messages and MCP tool results). Attackers do not need to forge signatures; they only need to manipulate the preceding context to induce the generation of legitimate signed credentials containing harmful operations.
- Divides the AP2 lifecycle into 5 phases and defines 5 deployment architecture types; builds a threat model based on the MAESTRO framework for 4 actor types, 11 attack surfaces, and 6 goal types, cataloging 48 threats and assessing risk with AIVSS; builds a testbed to complete 5 PoC validations and develops a three-layer security scanner.
- 8 threats reached the High risk level; STRIDE-GPT covered 66.7% of the threat catalog items; Gwet's AC2 for AIVSS ratings by 8 experts was 0.984; the three-layer scanner Full configuration achieved 1.00 recall on A5, and each layer detected threats missed by the other layers.
- At evaluation time, there was no complete public AP2 production or prototype deployment; experiments were based on a self-built testbed, and the impact on the underlying card network and clearing systems was not measured; the three-layer scanner missed T-2 in A2, T-1 and T-9 in A3, and T-3 in A4.
- Benchmarks
- AP2 testbedSTRIDE-GPT v0.18.0
- Metrics
- RecallGwet's AC2Krippendorff's alphaExact pairwise agreementFull-or-partial coverageAIVSS
Researchers from Ben-Gurion University of the Negev and Intuit conducted a systematic security analysis of Google's Agent Payments Protocol (AP2) v0.2, dividing the transaction lifecycle into five phases, summarizing five deployment architectures, and using the MAESTRO framework to model 48 threats, grouped into five attack families. The authors scored each threat by architecture using AIVSS, with 8 reaching High severity under at least one architecture. Since there was no complete public AP2 deployment at the time, the team built a testbed covering all five architectures, developed 5 PoC demonstrations covering all 8 high-risk threats and their mitigations, and implemented a deployment-aware scanner performing static, cross-role consistency, and adversarial checks. The analysis indicates that AP2 primarily protects signed mandates and receipts, while the pre-signing context that shapes transactions (including A2A messages and MCP tool calls) is not protected, so a valid mandate signature alone does not guarantee that the agent transaction reflects user intent.
Why it was selectedThe paper performs systematic threat modeling of five deployment architectures of AP2 v0.2 and provides PoCs and mitigations covering 8 high-risk threats, which implementers can use for self-checking.
Paper analysis
What problem does this paper attempt to solve?
Analyzes the security blind spots of the agent payment protocol AP2 under unsigned contexts and multi-architecture, systematically identifying front-running manipulation threats.
The paper attempts to address the lack of systematic security analysis and threat models for the agent payment protocol (AP2) under unsigned operational contexts and complex deployment architectures.
- Protocol application scenarios and risks: Google's AP2 protocol uses LLM-driven shopping agents to execute payments on behalf of users; the protocol protects the integrity of settlement and payment authorization (Mandate) through verifiable credential (SD-JWT) signatures, but the preceding context before credential generation (such as A2A protocol communications and MCP tool results) is not included in cryptographic protection.
- Inadequacy of existing analysis methods: The authors note that existing research only conducts isolated analyses of prompt injection, replay, or specific tool poisoning for AP2 v0.1, lacking a systematic threat model covering the full lifecycle, trust boundaries, and different deployment architectures of AP2 v0.2.
- Core observation of the paper: Legitimately signed credentials do not ensure that transactions align with the user's true intent; attackers do not need to forge signatures, but can cause the agent to legitimately issue malicious credentials that deviate from user expectations by manipulating the agent's preceding interaction context, tool configuration, or communication channels.
- Threat model setup:
- Attacker objectives: Includes unauthorized payment (AG1), authorization content tampering (AG2), authorization scope inflation (AG3), confidentiality leakage (AG4), non-repudiation failure (AG5), and blocking legitimate payments (AG6).
- Attacker knowledge and capabilities: Covers four actor types (user TA1, merchant TA2, developer/operator TA3, external attacker TA4), involving four types of access capabilities (ACK, ACM, ACC, ACR) for keys, credentials, communication channels, and runtime, as well as knowledge capabilities (AK) for architecture/tools.
- Victim systems and boundaries: Covers five roles: shopping agent (SA), merchant (M/MA), credential provider (CP), payment processor (MPP), and trusted interface (TS), spanning five deployment architectures A1 to A5.
- Proposed solution: The authors establish a cross-phase and cross-architecture threat model based on the MAESTRO framework, catalog 48 threats and quantify risk with AIVSS, verify high-risk threats through 5 PoCs, and implement an automated security scanner.
What related research exists?
Reviews the current state of security research on early AP2, multi-agent commerce protocols, and supporting protocols (MCP and A2A).
The paper organizes existing research in related work and the introduction into the following groups:
AP2 and Agentic Commerce Protocol Security
- AP2 v0.1 security research: Debi et al. (2026) conducted prompt injection red teaming against AP2-style shopping agents, reporting that malicious content could manipulate rankings and leak user data; Lan et al. (2026) pointed out replay and context binding flaws in the execution layer, allowing credentials to be reused. The authors note that existing work is limited to AP2 v0.1 and does not systematically analyze AP2 v0.2's new features, architectural differences, or cross-phase threats.
- Decentralized and cross-protocol commerce security: Acharya (2025) studied intermediary-free payments using decentralized identifiers, verifiable credentials, and zero-knowledge proofs; Mao et al. (2026) summarized attack vectors for 7 agentic commerce protocols including AP2; Hu and Rong (2025) noted that current protocols cannot simultaneously guarantee authorization integrity and settlement accountability.
Supporting Protocol Security (MCP and A2A)
- MCP tool invocation security: Multiple studies (Hou et al., 2025; Jamshidi et al., 2025; Huang et al., 2026; Narajala and Habler, 2025; Maloyan and Namiot, 2026) identified risks in the Model Context Protocol (MCP) including tool poisoning, tool shadowing, rug pulls, weak capability proofs, and client exposure to malicious tool metadata.
- Inter-agent communication security: Louck et al. (2025) analyzed security risks in A2A, ACP, and CORAL protocols across authentication, authorization, integrity, confidentiality, and availability. The authors note that existing MCP and A2A research does not analyze how vulnerabilities at these protocol layers specifically propagate upward to AP2.
Baseline Methods and Comparison Benchmarks
- Threat modeling comparison baseline: The paper selects STRIDE-GPT (v0.18.0) as an independent baseline to compare the coverage of the threat catalog derived by MAESTRO; the authors evaluated ATFAA, STRIDE-AI, and ASTRIDE but did not use them as automated comparison baselines due to the lack of publicly reproducible analysis processes, and excluded the official MAESTRO Analyzer because it originates from the same framework.
Positioning of This Paper Relative to Existing Work The authors claim that this paper presents the first end-to-end systematic threat model spanning AP2 v0.2 lifecycle phases, trust boundaries, and deployment architectures, providing not only proof-of-concept attacks and defensive mitigations but also a security scanning tool for implementers.
How does the paper address this problem?
Divides lifecycle and architecture, systematically models 48 threats using MAESTRO and AIVSS, and designs a three-layer scanner.
The authors systematically address the security analysis problem of AP2 by establishing a threat model across the lifecycle and deployment architectures, combined with an automated scanner. The core framework is based on the MAESTRO seven-layer model and the AIVSS risk scoring system.
Transaction lifecycle phases and architecture classification
- Five lifecycle phases: The paper decomposes a transaction into pre-credential preparation (P1, establishing keys and AgentCard), credential context formation (P2, assembling the shopping cart and issuing checkout_jwt), credential authorization (P3, user authorization P3-U and agent autonomous signing P3-A), credential verification and consumption (P4, verification and settlement), and post-hoc retention (P5, audit and dispute evidence).
- Five deployment architecture categories: Based on whether new cross-role trust boundaries, shared state domains, or tool execution surfaces are introduced, 5 architecture categories are defined: A1 (single-agent SA and MA baseline), A2 (independent MCP tool layer), A3 (multi-agent SA and MA), A4 (Marketplace matching platform), and A5 (shared MCP tool layer).
MAESTRO-based threat modeling and AIVSS risk assessment
- Threat quadruple modeling: A threat is represented as a quadruple of actor, attack surface, capability, and objective, covering 4 actor types (TA1–TA4), 11 attack surfaces (S1–S11), 18 capabilities, and 6 objective types (AG1–AG6).
- Two-layer quantitative scoring: The bottom layer uses the CVSS v4.0 base score to measure protocol-level exploitability and impact; the top layer combines the 10 amplification factors of the Agent AI Risk Score (AARS) to compute the total score: AARS = ∑i=110 fi, fi ∈ {0, 0.5, 1} This formula sums 10 agent-specific risk factors such as autonomy, tool use, memory, and non-determinism.
- Final composite risk calculation: Combining protocol severity and agent amplification, the inherent risk is calculated as follows: AIVSS = round((CVSSbase + AARS)/2 × ThM × MF, 1) In the formula, the arithmetic mean gives equal weight to both; since the assessment is at the PoC stage, the threat maturity multiplier is ThM=0.97, and with no mitigation discount the mitigation factor is MF=1.0, rounded to one decimal place.
Attack family taxonomy
- Clustering by compromised security object: The 48 identified threats are bottom-up divided into 5 families: semantic manipulation F1 (tampering with dialogue and tool context, 10 items), permission misattribution F2 (tampering with signature permission attribution, 9 items), supply chain and trust root subversion F3 (tampering with dependent software or discovery endpoints, 13 items), state binding failure F4 (breaking cross-phase transaction state consistency, 9 items), and accountability failure F5 (hiding the actual responsible party or destroying audit evidence, 7 items).
- Initial compromise priority principle: If a threat compromises multiple objects simultaneously, the root-cause object that first breaks the AP2 protocol guarantee is used as the classification basis.
Automated security scanner design
- Four-stage analysis process: The scanner first parses the architecture, active roles, and exposed surfaces of the deployment under test; then filters the applicable threat subset; the third stage executes static code and configuration checks; the fourth stage aggregates evidence, phases, and remediation suggestions.
- Cross-role differential specification evaluator (CDSE): For semantic manipulation threats, CDSE compares the constraint patterns and credential fields used by SA, MA, CP, and MPP in the same transaction, and raises an alert when field definitions are inconsistent or deviate from user intent.
- Optional adversarial testing layer: In a restricted sandbox, a shadow agent is launched to run predefined runtime probe cases against the test instance.
What experiments did the paper conduct?
Through 8 experts replicating AIVSS scores, comparing with STRIDE-GPT, and completing 5 PoC validations and scanner ablations on a self-built testbed.
Experimental Setup
- Evaluation Target and Test Environment: Since no complete public AP2 deployment existed at the time, the authors built a self-hosted AP2 testbed covering five architecture types A1–A5, and deployed each protocol role and toolchain on the testbed.
- Baseline Models and Baseline Tools: Threat comparison used STRIDE-GPT (v0.18.0, with gpt-5.3 as the generation model); the review model used gpt-5.5 (temperature 0, fixed random seed); the scanners CDSE and the adversarial layer used OpenAI gpt-5.5.
- Evaluation Metrics: Threat catalog coverage (Full/Partial/None), scoring consistency metrics (quadratic weighted Gwet's AC2, Krippendorff's alpha, and exact pairwise agreement rate), scanner detection rate (Recall, mean and standard deviation).
- Sample Size and Repetitions: STRIDE-GPT generated 124 threat scenarios in total; the expert scoring experiment involved 8 independent experts from academia and industry evaluating 25 threats (120 ratings in total); in the scanner ablation experiments, each configuration was run 5 times on each architecture type.
Main Results
The table below summarizes the 8 core threats that, under AIVSS evaluation, reached the High risk level (7.0–8.9) in at least one architecture:
Swipe horizontally to read the table
Threat ID Threat Name Family CVSS base AARS AIVSS T-1 Pre-signing Context Poisoning F1 Semantic Manipulation 7.0 7.5 7.0 T-4 Tool Argument Manipulation F1 Semantic Manipulation 9.2 6.0 7.4 T-15 Caller Role Confusion F2 Permission Misuse 8.6 7.0 7.6 T-23 Sub-Agent Prompt Drift F3 Supply Chain and Root of Trust 8.7 7.0 7.6 T-27 A2A Extension Downgrade F3 Supply Chain and Root of Trust 9.4 5.0 7.0 T-29 Cross-Server Tool Confusion F3 Supply Chain and Root of Trust 9.4 5.5 7.2 T-34 risk_data Poisoning F4 State Binding Failure 8.3 7.0 7.4 T-42 Multi-Tenant Isolation Failure F5 Accountability Failure 8.7 6.0 7.1 Per Figure 5. The authors' interpretation of the main results includes:
- High-risk threats span all five families: The 8 high-risk threats are distributed across all 5 attack families, indicating that AP2's major security exposures are not limited to prompt injection but also broadly involve caller permission confusion, extension downgrade, and multi-tenant isolation failure.
- Architecture has a significant amplification effect on risk: For example, the replay threat T-31 has an AIVSS score of 6.3 under single-agent architecture A1, but under multi-agent concurrent invocation architecture A3, the multi-agent interaction factor is activated, raising the AIVSS score to 6.7.
- The highest scores are distributed across different families: F2's caller role confusion (T-15) and F3's sub-agent prompt drift (T-23) both reach the highest AIVSS score of 7.6.
Proof-of-Concept Attack Demonstrations (AM1–AM5)
- Test Content: The authors implemented 5 PoC attacks on the testbed, covering all 8 high-risk threats, including chained attacks AM1 (T-23→T-1→T-4), AM2 (T-29→T-15), and standalone attacks AM3 (T-42), AM4 (T-27), and AM5 (T-34).
- Measured Results: In AM1, the approval sub-agent affected by prompt drift accepted a fabricated quote range from a malicious merchant in the MCP tool, leading the user to authorize an unrestricted credential up to $80; in AM4, a high-similarity domain caused the session to silently downgrade to AP2 v0.1, which lacks replay defenses; in AM5, the fraudster filled the variable risk_data field with low-risk markers, causing the MPP to skip OTP secondary verification.
- Authors' Interpretation: The PoCs confirm that attackers do not need to break the underlying cryptographic signatures or forge credentials; they can achieve malicious transactions solely by manipulating unsigned context and metadata.
Independent Expert Scoring Replication Experiment (RQ2)
- Test Content: 8 independent experts from academia and industry re-assessed CVSS metrics and AARS factors for 25 representative threats, testing the consistency and reproducibility of the scoring system.
- Measured Results: The quadratic weighted Gwet's AC2 estimate was 0.984 (95% confidence interval [0.963, 1.000]), with the 95% lower bound above the preset threshold of 0.61; quadratic weighted Krippendorff's alpha was 0.802 (95% confidence interval [0.520, 0.978]); exact pairwise agreement rate was 0.923 (95% confidence interval [0.846, 0.980]); experts reproduced the reference severity level in 111 of 120 ratings (92.5%).
- Authors' Interpretation: The results indicate that independent experts can reproduce the derived severity levels with high consistency when applying the two-layer scoring rubric.
Threat Catalog and STRIDE-GPT Comparison (RQ1)
- Test Content: STRIDE-GPT independently generated threats for architectures A1 through A5, with gpt-5.5 adjudicating, to evaluate the completeness of the MAESTRO catalog.
- Measured Results: STRIDE-GPT generated 124 scenarios, covering 32 threats in the catalog (19 Full, 13 Partial), a coverage rate of 66.7% (32/48); the 16 not elicited were independently reviewed by two third-party experts, all marked as Distinct (no overlap), 0 Overlap, 0 Unsupported.
- Authors' Interpretation: The authors state that all 124 threats generated by STRIDE-GPT mapped to catalog entries, with no candidate additions proposed, validating the catalog's completeness.
Additional Ablations and Analyses
- Scanner Full configuration detection rates: Average Recall on A2, A3, A4, A5 was 0.80, 0.60, 0.50, 1.00, respectively (Table 7).
- Passive layer exclusive detection capability: Exclusively detected T-4, T-8, and T-24 across all runs; the other two layers failed to detect them (Table 8).
- CDSE layer exclusive detection capability: Exclusively detected T-14, T-1 on A4, and T-29 across all runs (Table 8).
- Adversarial layer exclusive detection capability: Exclusively detected T-5 across all runs (Table 8).
- Threats missed by the scanner: All three scanner layers missed T-2 on A2, T-1 and T-9 on A3, and T-3 on A4 (Table 8).
What are some points that can be further explored?
The authors note that the evaluation is based on a self-built testbed and does not test the underlying clearing system; subsequent validation of the scanner in real public deployments is needed.
Limitations and future directions noted by the authors
- Lack of complete public production deployments: The authors note that at the time of evaluation, there was no complete public production or prototype AP2 deployment; Google's public implementation covered only part of the protocol, so the evaluation was based on a self-built testbed, which limits the sufficiency of asserting whether the same faults would appear in future third-party deployments (Section 9.2.1).
- No measurement of impact on the underlying payment clearing network: The authors note that the PoCs only verified the impact of attacks on authorization within the AP2 layer, and did not measure whether and how the resulting AP2 layer failure affects card networks, issuers, acquirers, or other underlying clearing systems (Section 9.2.1).
- Future need to test the scanner in real deployments: In future work, the authors propose that once public AP2 deployments or reference implementations appear, the scanner should be run for security audits to more realistically assess false positive and false negative rates, advancing the scanner from a research prototype to a production tool (Section 9.3).
- Limitations of STRIDE-GPT comparison settings: In Section 8.1, the authors note that the threat catalog and STRIDE-GPT runs used the same lifecycle and security attribute definitions, which may increase consistency measurements; and each architecture was run only once, without measuring random variation between runs (Section 8.1).
Experimental coverage
- System forms under test: The experiments covered 5 types of architecture deployments (A1 to A5) implemented on the authors' self-built testbed.
- Number of verified threats: The PoC demonstrations (AM1–AM5) covered all 8 high-risk threats identified by AIVSS.
- Expert reproduction sample: The expert scoring experiment covered 120 ratings from 8 independent participants for 25 threats across 5 families.
- Scanner test coverage: The ablation experiments covered 18 specific threats across architectures A2, A3, A4, and A5, testing 7 configuration combinations, with each configuration repeated 5 times.
- Underlying system measurement: The experiments measured up to credential issuance and verification at the AP2 protocol layer; the paper does not report data on cascading impacts on card organizations, issuers, and clearing networks.
Summarize the main content of the paper
Systematically analyzes AP2 protocol blind spots, establishes a threat model, identifies 8 high-risk threats, and promotes pre-signing security defenses through PoCs and a scanner.
This paper conducts a systematic security analysis of Google's agent payment protocol AP2 v0.2, revealing the security limitations of cryptographic signatures when the agent's pre-operation context is tampered with.
- Core problem: AP2 relies on digital signatures to ensure the tamper-resistance of settlement and payment credentials, but the inputs used by the agent to construct intent before signing (such as A2A protocol interactions and MCP tool returns) are not protected by signatures, allowing legitimate signatures to encapsulate manipulated malicious transactions.
- Method highlights: The authors divide the protocol into 5 lifecycle phases and summarize 5 types of deployment architectures; using the MAESTRO framework, they identify 48 threats across 4 actor types, 11 attack surfaces, and 6 objectives, grouped into 5 attack families, and quantify risk through the AIVSS two-layer framework; they build a testbed and develop a three-layer security scanner including CDSE and adversarial probes.
- Core experimental results: The evaluation identifies 8 high-risk threats spanning all families (AIVSS 7.0–7.6); independent expert reproduction scoring yields Gwet's AC2 of 0.984 (95% confidence interval [0.963, 1.000]); STRIDE-GPT elicits 66.7% of the threats in the catalog without generating new threats; the scanner's Full configuration achieves 1.00 recall on the A5 architecture.
- PoC validation: On a self-built testbed, 5 proof-of-concept attacks are completed, achieving multi-authorization of $80 (AM1), impersonation of CP credential tools (AM2), and tampering with risk_data to bypass OTP secondary verification (AM5) without breaking signature verification.
- Conclusions and implications: The authors point out that agent authorization protocols must include the pre-operation context in binding protection, rather than relying solely on the signed final credentials; meanwhile, differences in supporting protocols (A2A, MCP) and deployment architectures change the attack surface, and defenses must be embedded at the protocol exchange and architecture design levels.