Subscribe to get high-signal insights on how modern fintech is built.

opinion

Consumer AI Agents Should Never Hold Payment Credentials

Giving an AI agent your card number is the PCI-DSS credential storage mistake repackaged for a new decade.

By Alex Kugell ·

If someone handed you a house key and said "give this to the robot, it'll let itself in when it needs to," you'd ask why the robot needs a key at all. Can't you just unlock the door when the robot asks?

That's the question the payments industry should be asking about AI agent credentials right now, and mostly isn't.

I think giving a consumer AI agent access to raw payment credentials is a mistake, and not one that can be justified as a necessary tradeoff during a transition period. The payments industry made the same mistake when it let every merchant store card numbers in their own databases, and it took PCI DSS a decade and billions in breach costs to partially fix.

The agent credential conversation is heading down the same path, and the alternative already exists.

The credential storage lesson we already learned

The payments industry spent the 2000s learning what happens when you distribute card credentials to every endpoint that needs to process a payment. TJX stored 45.7 million card numbers in its systems and lost them all in 2007. Heartland Payment Systems lost 130 million card numbers in 2008. The entire PCI DSS framework exists because the industry's original architecture put raw credentials in too many places.

The fix took years. Tokenization replaced raw card numbers with scoped references, and point-to-point encryption kept credentials out of merchant systems.

The principle was simple: don't put the credential where it can be stolen. Put a reference to the credential where it needs to be used, and keep the credential itself locked in a vault.

Now the industry is building agent commerce, and the early instinct is to give agents credentials again. An agent needs to buy something, so it gets a card number or a stored payment token that it can present at checkout. The agent becomes another endpoint holding something valuable, and the credential distribution problem returns in a new form.

Why agents are worse credential holders than merchants

A merchant system that stores card numbers is bad enough. An AI agent that holds credentials is a worse target than any merchant POS system.

First, agents process unstructured input from multiple sources. A merchant's POS terminal accepts structured transaction messages in a defined format. An agent reads web pages, processes natural language instructions, parses merchant catalogs, and interprets user requests.

Every one of those input channels is a potential vector for prompt injection. An attacker who embeds malicious instructions in a product description could, in theory, instruct the agent to exfiltrate the credentials it holds.

Second, agents are designed to act autonomously. A merchant system waits for a customer to initiate a transaction. An agent initiates transactions on its own, based on its interpretation of user intent. If the agent holds credentials and misinterprets its instructions, or is manipulated into misinterpreting them, it can spend money without anyone checking.

Third, agents communicate externally by design. The PCI Security Standards Council's October 2026 guidance on AI in payment environments specifically warns against combining three properties in one system: access to sensitive payment data, the ability to communicate externally, and exposure to unrestricted input from untrusted sources. That describes most consumer AI agents exactly.

BLIK showed the alternative in September

BLIK's pilot transaction in Poland demonstrated that agents don't need credentials at all.

A consumer opened their banking app, defined the product they wanted (a hand cream from the Your KAYA store), set the spending limit (PLN 19.99), and authorized the payment in advance. When the agent detected the product was back in stock, it completed the purchase through PayU. The agent never held a card number, CVV, or billing address. It held a reference to a pre-authorized payment consent.

The credential stayed in the banking app and the authorization stayed with the consumer. The agent operated within boundaries that were defined before the transaction happened.

BLIK's model has a constraint: it works when the consumer knows the product and the merchant in advance. It doesn't handle open-ended shopping where the agent picks the merchant. But within its scope, it solves the credential problem completely.

The card networks are building the right direction, mostly

Mastercard's Agentic Tokens move in the right direction. The raw card number stays in Mastercard's Digital Enablement Service. The agent gets a scoped token bound to a specific policy: spending limit, merchant categories, expiration. The network checks the policy during authorization and rejects transactions that fall outside it.

The agent never holds the credential, and the token it holds is constrained and revocable. If the token is compromised, revoking it doesn't affect the underlying card.

Visa's Trusted Agent Protocol takes a different approach. It verifies the agent's identity cryptographically per transaction, using signatures that merchants can validate. But Visa delegates policy enforcement to merchants and issuers rather than encoding it into the credential itself.

Both are better than handing the agent a card number. Mastercard constrains what the agent can do with the credential while Visa verifies that the agent is who it claims to be. The gap is on Visa's side: verifying identity doesn't prevent the agent from exceeding its authority if the merchant or issuer doesn't enforce limits.

The PCI SSC sees it coming

The PCI Security Standards Council published "Security Considerations for AI Systems" in October 2026. It's guidance, not a requirement.

The guidance recommends that AI systems with access to cleartext cardholder data should require explicit human approval for actions involving that data. It says AI systems should not handle unprotected high-impact secrets, including passwords and cryptographic keys. And it says PCI scoping should consider an AI system's deployment, isolation, and access to account data.

Read together, the implication is that if your agent touches card data, your entire agent infrastructure is in PCI scope. Every model, every prompt, every data pipeline the agent touches becomes subject to PCI DSS requirements. That's a compliance surface area that most agent platforms aren't designed to handle and shouldn't need to.

The simplest way to keep agent infrastructure out of PCI scope is to keep card data out of agent infrastructure.

The position

Agent Credential Models Compared
ModelAgent holdsCredential lives inEnforcementConstraint
Pre-authorized consent
BLIK
Payment referenceBanking appConsumer-defined limitsKnown merchant + product
Scoped tokenization
Mastercard Agentic Tokens
Constrained tokenMDES vaultNetwork authorizationCard network adoption
Agent-native protocol
Agent Commerce Kit
Cryptographic identityNo card credentialProgrammatic authorizationLimited merchant adoption

I think the industry should adopt a default: consumer AI agents do not hold payment credentials. Not card numbers, not CVVs, not stored payment tokens that can be presented at arbitrary merchants.

Agents should hold one of three things instead.

A reference to a pre-authorized payment consent, like BLIK's model. The credential stays in the banking app, and the agent operates within boundaries the consumer defined in advance.

A scoped, revocable token with network-enforced constraints, like Mastercard's Agentic Tokens. The agent can transact within the policy encoded in the token, and the network rejects anything outside it.

Or a cryptographic identity on a protocol that doesn't use card credentials at all, like the Agent Commerce Kit on stablecoin rails. The agent pays with programmatic authorization and machine-readable receipts, and card infrastructure never enters the picture.

Each model has tradeoffs. Pre-authorized consent is limited to known merchants. Scoped tokens depend on the card networks building and enforcing the right constraints. Stablecoin protocols have limited merchant adoption.

None of them are perfect.

But all three share one property: the agent doesn't hold the credential. That property alone eliminates the largest attack surface in agent commerce and keeps agent infrastructure out of PCI scope.

The agent commerce window is still early enough to get the credential architecture right from the start.

Sources

Alex Kugell
Alex KugellAI/ML Engineer, Fintech Infrastructure

Writes Ledger Drift. Engineer building AI systems and financial infrastructure. Open source contributor to x402, ACK, and MPP – agentic payment protocols.

Frequently Asked Questions

Why shouldn't AI agents store payment card numbers?
Every system that stores a card number becomes a PCI DSS target. AI agents are particularly dangerous credential holders because they process unstructured input from multiple sources, including potentially hostile ones. A prompt injection attack could instruct the agent to exfiltrate stored credentials. The PCI Security Standards Council's October 2026 guidance recommends against combining access to sensitive payment data, external communication ability, and exposure to untrusted input in a single system, which describes most AI agents exactly.
How did BLIK solve the agent payment credential problem?
BLIK's September 2026 pilot in Poland kept the payment credential entirely inside the banking app. The consumer pre-authorized a purchase by defining the product, merchant, and spending limit in their bank's interface. The AI agent then executed the purchase through PayU without ever seeing or holding a card number, CVV, or billing address. The agent held a reference to a pre-authorized payment consent, not a payment credential.
What is the difference between Visa's and Mastercard's approach to agent payment credentials?
Mastercard's Agentic Tokens bind a tokenized card credential to a specific agent, merchant scope, and consent policy through its Digital Enablement Service. The agent never holds the raw card number, and the network enforces spending constraints during authorization. Visa's Trusted Agent Protocol verifies the agent's identity cryptographically per transaction but delegates enforcement to merchants and issuers rather than encoding constraints into the credential itself. Both use tokens instead of raw credentials, but Mastercard carries policy inside the token while Visa carries identity.
What does PCI DSS say about AI agents handling cardholder data?
The PCI Security Standards Council published Security Considerations for AI Systems in October 2026. The guidance recommends that AI systems with access to cleartext cardholder data require explicit human approval for actions involving that data. It advises against AI systems handling unprotected high-impact secrets including passwords and cryptographic keys. Requirements 7 and 8 of PCI DSS v4.0.1 address non-human identity management and least-privilege access, which apply directly to agent credentials.
What are the alternatives to giving AI agents payment credentials?
Three models avoid putting credentials in the agent's hands. Pre-authorized consent, as BLIK demonstrated, keeps the credential in the banking app and gives the agent only a payment reference. Scoped tokenization, as Mastercard's Agentic Tokens implement, replaces the raw credential with a token bound to specific constraints that the network enforces. Agent-native protocols on stablecoin rails, like the Agent Commerce Kit, bypass card credentials entirely using cryptographic identity and programmatic authorization.

Built by Trio, a fintech-native engineering partner helping teams build the next generation of financial technology and infrastructure.

Subscribe to Ledger Drift for high-signal insights into how modern fintech is built, from systems to code to teams.

Keep reading

analysisThe $1 Trillion Bet on Agents Spending MoneyInvestors are projecting a trillion-dollar agent economy, but actual agent payment volume is $3.7 million a quarter and 5 cents per transaction.
analysisAI Created New Financial Product CategoriesToken spend management, model routing, and agent wallets are financial product categories that didn't exist eighteen months ago.
fintechWhere Stablecoin Yield Comes FromA stablecoin is pegged to a dollar, but the dollar backing it earns interest, and whoever controls that dollar keeps the profit.
View more ›