arXiv(opens in a new tab)cs.CRAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.23858

Beyond the Mandate: A Systematic Security Analysis of the Agent Payments Protocol (AP2)

Avital Aviv, Parth A. Gandh, Ron Bitton, Asaf Shabtai

Abstract

The Agent Payments Protocol (AP2), introduced by Google, enables large language model (LLM)-driven shopping agents to authorize and execute payments on behalf of users. Its signed Checkout and Payment Mandates protect the integrity of transaction data after signing. Agent interactions and external inputs that shape a transaction before authorization remain outside that protection, including Agent-to-Agent Protocol (A2A) messages and Model Context Protocol (MCP) tool calls. Prior work identified replay and prompt-injection attacks in AP2 v0.1. AP2 v0.2 addresses some of these issues but adds capabilities and deployment assumptions that require renewed analysis. We present a systematic security analysis of AP2 v0.2 based on its roles, transaction lifecycle, deployment architectures, and trust boundaries. We divide the lifecycle into five phases and identify five deployment architectures. Using MAESTRO (Multi-Agent Environment, Security, Threat, Risk, Outcome), we model four threat actors, eleven attack surfaces, eighteen adversary capabilities, and six attacker goals. The resulting catalog contains 48 threats spanning five attack families. We score these threats with the Artificial Intelligence Vulnerability Scoring System (AIVSS), identifying eight that reach the High band in at least one architecture. Because no complete public AP2 deployment was available, we build a testbed spanning all five architectures and develop five proof-of-concept demonstrations covering all eight High-risk threats and their mitigations. We also develop a deployment-aware scanner that maps applicable threats to static, cross-role consistency, and adversarial checks. Our analysis shows that valid mandate signatures alone do not ensure that an agent-mediated transaction reflects the user's intent when its pre-authorization context is manipulated.

1 Introduction

Large language model (LLM)-driven agents are beginning to act on users' behalf in the financial sector to browse catalogs, assemble carts and execute payments without the need for a human to approve each step. Google published the Agent Payments Protocol (AP2) to provide a secure framework for agent-led payments [8]. AP2 v0.1, released in 2025, introduced the protocol's roles and a chain of signed mandates built on Verifiable Digital Credentials (VDCs), focusing mainly on Human-Present (HP) flows in which the user remains in session and explicitly authorizes each closed mandate through a Trusted Surface [8]. AP2 v0.2, released in April 2026, adds Human-Not-Present (HNP) flows for autonomous transactions and defenses against replay attacks [8].

Ron Bitton

ron_bitton@intuit.com

Intuit

Petah Tikva, Israel

Asaf Shabtai

shabtaia@bgu.ac.il

Ben-Gurion University of

the Negev

Beer-Sheva, Israel

Because AP2 uses LLM-driven agents in protocol roles, it faces threats that classical payment protocols never encounter, such as prompt injection, tool-result poisoning and agent manipulation threats. The specification treats all LLM-driven agentic roles as potential attackers [8]. AP2 mainly secures the signed mandates and receipts; the pre-signing context that shapes them, including catalog data, tool results and A2A messages, remains outside the signed mandates. Since AP2 also leaves deployment choices to implementers, including whether Model Context Protocol (MCP) is used and whether tool infrastructure is shared, the practical threat surface depends on the architecture. Consequently, an attacker may not need to forge a mandate or receipt to cause harm; instead, the attacker may manipulate the agent's context, tools or communications so that a validly signed mandate encodes an unsafe or unintended action. These risks connect AP2's agentic attack surface with its protocol-level security assumptions and show the need for a threat model that covers both signed artifacts and the unsigned context that produces them.

Prior research has addressed individual components of AP2 security, but none provides a systematic threat model for AP2. MCP security research has identified tool poisoning and shadowing attacks [10,21][10, 21], and Louck et al. examined the security risks in the A2A protocol [18][18], yet none of these studies examined whether these threats propagate into AP2 itself. Two other studies examine AP2 v0.1 directly, red-teaming prompt injection in an AP2 shopping agent [6][6] and characterizing replay and context-binding failures [16][16], while Mao et al. systematize attack vectors across seven agentic commerce protocols including AP2 [20][20]. None of these studies analyzed threats across AP2's phases, trust boundaries, and deployment architectures. This paper presents the first threat model that spans AP2 v0.2's phases, trust boundaries, and deployment architectures, validating the high-risk threats on a testbed and providing a security scanner for implementers.

We map AP2's protocol design to concrete security risks. We segment the AP2 transaction lifecycle into five analytical phases and identify five deployment architectures, then use MAESTRO [13] to enumerate threats across actors, attack surfaces, capabilities, and goals. We subsequently map each threat to the architectures. This yields 48 threats grouped five architectures and attack families and assessed with the AIVSS [24] risk-scoring mechanism.

Because no public AP2 deployment existed at the time of our evaluation, we built a custom testbed and developed proof-of-concept attacks against all high-risk threats. This paper presents five of these attacks in detail. A single attack scenario can chain several threats, so the five demonstrations together cover all eight high-risk threats and their mitigations.

∗^{*}Both authors contributed equally to this research.

We also develop a security scanner that derives a deployment profile, executes the applicable static, cross-role, and adversarial checks, and reports detected AP2 threats. We evaluate the scanner on the same controlled testbed. Our evaluation covers the threat catalog, the AIVSS assessment, and the scanner. A structured STRIDE-GPT comparison tests the catalog's coverage against a separate threat-modeling method. An eight-rater study tests whether independent experts reproduce the derived AIVSS severity bands and finally we perform a layer-ablation study of the scanner.

In summary, this paper makes five contributions. (1) We segment the AP2 transaction lifecycle into five analytical phases and identify five deployment architecture classes, treating a deployment as a distinct class when it exposes at least one threat not represented by an already-defined class. (2) We construct the first phase-and architecture-spanning threat model for AP2 using the MAE-STRO seven-layer framework, spanning four threat actors, eleven attack surfaces, fourteen access capabilities in four families, four knowledge capabilities, six attacker goals, and the five architectures. (3) We catalog 48 AP2 threats and organize them into five attack families based on the AP2 security object each family corrupts, and apply AIVSS separately to each applicable architecture, identifying 8 of the 48 threats as high risk in at least one architecture. (4) We develop PoC attacks against all high-risk threats, demonstrating that these threats are realizable along with presenting mitigations for the same. (5) We implement a security scanner that profiles AP2 deployments, selects applicable threat checks, and reports detected findings, and evaluate it on our controlled AP2 testbed.

References (13)