The Model Was Never in Scope. Then a Customer Pasted Their Card Number.
PCI scope is drawn by where cardholder data goes, not by where you planned to send it. Free-text support surfaces attract card numbers the way a form field never did, and the components that quietly copy that text are the ones nobody put on the diagram.
Scope Is a Fact, Not a Decision
The foundational move in any PCI DSS programme is scoping: identify every system component that stores, processes or transmits cardholder data, plus everything connected to or capable of affecting the security of that environment, and then either secure it or segment it out. Merchants spent a decade shrinking that footprint — hosted payment fields, iframes, tokenisation, redirect flows — precisely so the card number never touched their own infrastructure.
AI features reversed the direction of travel. A support copilot, a chat assistant, a call summariser or a fraud triage model exists to read the messy, unstructured record of what customers actually said. That record contains card numbers, because customers read them off the card when they are confused about a charge, and no amount of interface design stops them. The moment the assistant reads that text, the assistant is processing cardholder data, and so is everything upstream and downstream of it.
The Two Storage Rules People Conflate
There are two distinct prohibitions and teams routinely apply the weaker one to both. The primary account number may be stored, but only with a documented business justification and only rendered unreadable — with the key management, access restriction and defined retention that follow from that. The other rule is absolute: sensitive authentication data, meaning full track data, the card verification code and the PIN or PIN block, must not be retained after authorisation. Encryption does not create an exception.
This matters for AI systems specifically because the CVV is exactly what a confused customer reads out alongside the card number, and because a transcript store is retention by default. Nobody decided to keep it. The conversation was simply written down, and the retention policy for support history was set years earlier by someone thinking about disputes.
Every Place the Data Lands Before the Model Sees It
The usual remediation is a redaction step in front of the model API. It is necessary and it is placed too late. Enumerate what already holds the raw string by the time that call is made:
- The transcript of record. Written for the human agent, retained for dispute handling, replicated to the data warehouse, and frequently the source for the analytics team's exports.
- Application and gateway logs. Request bodies captured at debug level, error traces that serialise the payload, and the observability vendor holding a year of them outside your segmentation boundary.
- Evaluation and fine-tuning datasets. Real conversations sampled to measure quality. This is the copy most likely to be shared broadly inside the company and least likely to be covered by a retention job.
- Prompt caches and replay buffers. Infrastructure added for latency and cost, holding verbatim prompt text for a window nobody documented.
- Vector stores. Embeddings of support history built for retrieval, typically hosted separately, rarely segmented, and derived directly from the text you were trying to keep out.
- Screen recordings and session replay. A pixel-level copy of the customer typing the number, held by a third party with its own masking configuration that someone has to have got right.
Detection Is Harder Than the Regex Suggests
PAN detection is usually implemented as a pattern match plus a Luhn checksum, which is a reasonable baseline and misses a large class of real inputs. Customers space digits in groups, separate them with dashes or full stops, split them across consecutive messages, spell them out in words, send a photo of the card, or say them aloud to a voice bot whose transcription inserts spaces in unpredictable places. A voice channel adds a second problem: the audio recording persists independently of the transcript, and redacting one does nothing to the other.
The practical stance is defence in depth rather than a perfect detector: mask aggressively at ingestion, apply the same detector on every write path rather than one, refuse to index anything that trips it, and monitor the detector's own hit rate so that a silent regression is visible. A detector that suddenly stops firing is indistinguishable from customers who suddenly stopped pasting.
The Vendor Chain and What Your Customers Will Ask For
PCI DSS treats third parties who handle cardholder data on your behalf, or who could affect its security, as service providers to be managed: due diligence before engagement, written agreements acknowledging responsibility, a documented split of which requirements each party is meeting, and ongoing monitoring of their compliance status. Applied to an AI stack that means the model provider, the vector database, the observability platform, the session-replay vendor and the transcription service — a chain that is usually four links deep and assembled by engineers, not procurement.
For vendors selling into payment-adjacent buyers, the enforcement mechanism is commercial long before it is regulatory. Security review will ask for a responsibility matrix, an attestation, evidence of segmentation and an incident notification commitment. "Our model provider does not train on our data" answers a different question than the one being asked, and reviewers have learned to notice.
A Design That Keeps the Model Out of Scope
- Redact at the ingestion boundary — before the transcript write, before logging, before any downstream fan-out — not immediately before the model call.
- Replace detected PANs with a token or a last-four reference so the assistant can still do its job, and keep the mapping inside the existing payment environment.
- Treat the vector index as in scope until proven otherwise: same segmentation, same access control, same retention, and a rebuild path if the source is purged.
- Never sample raw production conversations into evaluation sets without running the same detector, and hold eval data to the same retention clock as the transcripts.
- Handle voice separately. Transcript redaction does not touch the recording, and the recording is the higher-fidelity copy.
- Write the responsibility matrix before the security questionnaire arrives, and check it against the actual subprocessor list rather than the one on the trust page.
- Reconcile public claims. A marketing page saying you never store payment information is a statement your logs have to be able to support.
Frequently Asked Questions
Our payments run through a hosted field, so we were out of scope. Did the AI feature change that?
It can, and this is the most common way a carefully minimised scope grows back. Hosted fields keep the card out of your checkout, but they do nothing about the support channel, the voice line or the conversation history that a new assistant was built to read. Scope reduction achieved on the payment path does not survive a second path being opened somewhere else in the product.
Is a local or self-hosted model safer here?
It removes one third party from the chain, which is real but narrow. The storage prohibitions, the segmentation requirements, the logging exposure and the vector-store question are all unchanged, because they are about your infrastructure rather than the provider's. Self-hosting helps most where the concern is a contractual data-handling gap and least where the concern is retention.
How do we handle a card number that has already been written to a transcript store?
Treat it as a defined remediation rather than a cleanup script: identify the affected records and all replicas including backups and derived indexes, purge or tokenise, document the business justification for anything retained, and review whether sensitive authentication data was involved because that changes the severity materially. Backups are the step most often skipped and the one most likely to be asked about.
Does PCI DSS say anything specific about AI?
The standard is written in terms of system components, data flows and processes rather than named technologies, which is why it applies cleanly without needing an AI clause. The practical effect is that there is no special AI carve-out to argue for and no AI-specific safe harbour to rely on — an inference endpoint that receives a PAN is a system component that transmits cardholder data, assessed like any other.
Can we rely on the model provider's zero-retention setting?
It is worth having and it is not a compliance conclusion. Retention settings frequently carve out an abuse-monitoring window, apply to some endpoints and not others, and depend on flags being set correctly on every call path including the one added last week. Verify the setting per endpoint, confirm it in the agreement rather than the documentation, and keep the redaction in place regardless.
Who finds this first — an assessor or someone else?
Usually neither. It surfaces through an enterprise security questionnaire that asks where transcripts are stored, through an incident affecting a logging or observability vendor, or through an engineer running a detector across the warehouse for an unrelated reason. That last one is the cheapest version, which is a good argument for running it deliberately.
Related Reading
- Cross-border transfers and SCCs for AI processing — the same subprocessor chain, viewed through privacy law.
- AML transaction monitoring and model validation — the other financial-services regime that reaches your models.
- AI vendor source-code and model escrow — what the same vendor relationship looks like when it ends.
Check What Your Site Claims About Payment Data
Trust pages and security sections make absolute statements — never stores card details, fully PCI compliant, no payment data leaves our environment — that were written before the assistant, the transcript store and the vector index existed.
See every security, privacy and compliance claim on your site in one pass. Run a free scan and check each against what your data flows actually do.
This article is general information and not legal or assessment advice. PCI DSS requirements are version-specific and their application depends on your merchant level, acquirer requirements and actual data flows. Confirm scoping conclusions with a qualified security assessor and your acquirer before relying on them.