# The Card Number Never Leaves: Data Protection Policies at the AI Boundary

> Customers paste card numbers, bank details and API keys into support tickets. TR Security Intelligence shows which data stores are exposed and what sensitive data reaches TicketResolve’s AI. It lets you mask that data for good before the model sees it, or block an AI reply that contains it, with evidence for every enforcement.

Source: https://www.ticketresolve.ai/blog/the-card-number-never-leaves · Published 2026-11-18 · TicketResolve AI

A customer writes in at 11 p.m., frustrated:

> *"Your checkout keeps failing. I've tried three times. My card is 4111 1111 1111 1111 (a test number for this example), exp 09/28, CVC 123. Please just charge it manually."*

The ticket is now sitting in your help desk, and an AI is about to read it to draft a reply. Two questions matter. Does the model ever see that number? And could an AI reply ever send a card number back out, whether this one or one copied from an old knowledge-base article someone wrote carelessly?

A security team needs to answer both, and to show the answer to an auditor.

## First, the basics

- **Sensitive data** includes card numbers, bank account numbers (an **IBAN** is the international format), ID numbers and **secrets** like passwords and API keys.
- **The model** is the AI that reads tickets and drafts replies.
- **Tokenising** replaces a sensitive value with a placeholder, like a cloakroom ticket for your coat: the AI works with the ticket, never the card number, and the real value can be put back only where that's legitimate.
- **Masking for good** removes the value completely, so it can never be put back.
- **A boundary** is a point where data crosses from one place to another: into the AI, or out to a customer.
- **An evidence ledger** is a tamper-evident record of what was protected, and when.

Why does this matter? Customers paste things into support tickets that they shouldn't. Laws and card-industry rules require you to protect that data, and customers expect it. Being able to show the protection works matters as much as having it.

## The problem, in plain terms

Support is where sensitive data leaks in, because customers don't know (or care) what shouldn't be pasted into a ticket:

1. **Payment data:** card numbers, CVCs, bank account and IBAN numbers.
2. **Identity data:** passport and national ID numbers, sometimes photos of them.
3. **Secrets:** API keys and passwords pasted while asking for help with an integration.

An AI that reads tickets has to handle all of this carefully. Just as important, the *outbound* side matters too: AI replies are built from knowledge articles, macros and past answers, and any of those can contain something that should never be sent.

## The safeguard you already had

TicketResolve has always replaced sensitive values with a **reversible token** before the model sees them. The model works with `[CARD_3F9A21C0]`, never the number, and the token can be restored into a reply only where that's legitimate. Data protection policies go further, and give you the evidence.

## Policies at the two boundaries

A **data protection policy** applies to one kind of data at one boundary:

- **Before the AI model: mask for good.** The value is removed instead of tokenised, so it can **never** be restored into a reply, even to the customer who sent it.
- **Before an AI reply is sent: block the reply.** If a reply contains a raw card number, IBAN, ID number or secret (say, copied from a knowledge-base article), it isn't sent. The ticket goes to a person.
- **Record only**, at either boundary, when you want to see how often something happens before enforcing anything.

Policies **only add protection**. None of them can turn a safeguard off.

**Add recommended** sets a sensible start: block replies carrying card, bank or ID numbers or secrets, and mask card numbers and secrets for good. **Test a policy** shows what would happen to sample text, without storing it.

## What reaches the AI

For each kind of sensitive data, you see how many tickets carried it in the last 30 days, and how often it was **masked**, **blocked** or **recorded**. We store **the kind of data found, never the value**.

## Where your data lives

**Data stores** lists the databases and storage your cloud and security tools report: AWS, Wiz, Microsoft Defender for Cloud and Google Security Command Center. For each one you see:

- whether it's **exposed**: internet-facing, or with an open exposure or misconfiguration finding such as a public bucket;
- the **classification** you set: public, internal, confidential or restricted;
- the **business services** that depend on it.

We don't scan what's inside your data stores. Classification is yours to set.

## Four real-world scenarios

### 1. The 11 p.m. card number

**How TR handles it.** With the recommended policies, the card number is **masked for good** before the model: the AI drafts a reply about the checkout failure without the number ever reaching it, and there's no token to restore. The reply politely asks the customer not to send card details by e-mail. "What reaches the AI" counts one card number, masked, with no value stored.

### 2. The knowledge article that shouldn't exist

**Situation.** Years ago someone wrote an internal article with a "test" customer's real IBAN in an example. It's been synced into the knowledge base, and an AI reply about refund timings quotes the paragraph.

**How TR handles it.** The **block the reply** policy for bank numbers catches the raw IBAN in the outgoing draft. The reply isn't sent, the ticket goes to a person, and an enforcement event is written. The team finds the article from the event and fixes it.

### 3. An API key pasted for "help"

**Situation.** A developer at a customer pastes a live API key into a ticket while asking why their integration fails.

**How TR handles it.** Secrets are masked for good before the model sees them, so the key never reaches the AI and can't appear in any reply. Your agent can still tell the customer to rotate the key, because it was exposed in e-mail.

### 4. The public bucket behind the support exports

**Situation.** A storage bucket holding nightly support exports was made public by a misconfiguration.

**How TR handles it.** **Data stores** shows the bucket as **exposed** (a public-bucket finding from the cloud security tool), classified **restricted** by your team, with the business services that depend on it. The finding is the priority for today, not next quarter.

## Evidence

Every policy change needs a **Security admin** and is audited. Every enforcement writes an event. Both are chained into the **evidence ledger**, so you can show what was protected and when, and prove the record hasn't changed since.

## Before and after

**Before.** "The AI doesn't see card numbers" is a statement in a security questionnaire, with no numbers behind it. A knowledge article with a real IBAN goes unnoticed until a customer receives it.

**After.** The questionnaire answer comes with counts per data type, the policies in force, every enforcement event, and a ledger that proves the record is intact. The bad article is found the first time it tries to leave.

## Mistakes to avoid

- **Starting with "record only" and never moving on.** Recording is for learning. Turn on enforcement once you've seen the volumes.
- **Leaving classification empty.** Exposure without classification can't be prioritised. Classify restricted stores first.
- **Fixing the reply but not the source.** A blocked reply points at an article or macro. Fix that too.

## Who it's for

- **Security and privacy teams** get enforceable policies, counts per data type and tamper-evident evidence for questionnaires and audits.
- **Support leaders** get AI that drafts replies without ever handling payment data, and a person in the loop whenever a reply would carry something it shouldn't.
- **Knowledge managers** find bad articles and macros the first time they try to leave, from the enforcement events.
- **Cloud and platform teams** see exposed stores next to their classification and the business services that rely on them.

## How it fits with the rest of TicketResolve

Data protection policies use the same masking pipeline every TicketResolve AI agent already goes through, so a policy applies to drafting, summarising and classification alike. Enforcement events feed **assurance**, which exercises each "block the reply" and "mask for good" policy daily with harmless test values. And exposed restricted data stores appear at the end of **attack paths**, so a public bucket holding support exports is ranked by the services it touches.

## A worked example, start to finish

Here's the 11 p.m. ticket, with the recommended policies in place.

**Last month.** A Security admin chose **Add recommended** under **Security → Data**. That added policies to mask card numbers and secrets for good before the model sees them, and to block AI replies carrying card, bank or ID numbers or secrets. She tested each with sample text like *"my card is 4111 1111 1111 1111"* and saw what would be masked or blocked.

**23:04.** The customer's ticket arrives with the test card number, expiry and CVC in the text.

**23:04.** Before anything reaches the model, the card number is masked for good. The model receives *"My card is [card number]"*. It never sees the digits.

**23:05.** The AI drafts a reply: it apologises, explains that support can't take card details by e-mail, and links the secure payment-update page. The output check finds no card, bank or ID numbers or secrets in the reply, so it isn't blocked.

**23:05.** The ticket is counted in **what reaches the AI**: one ticket carried a card number this hour, and it was masked. The number itself isn't stored anywhere in that table.

**Two weeks later.** An agent uses an old macro written years ago, which contains a full example card number someone pasted in. The AI includes it in a reply draft. The reply is **blocked**, and an event is written.

**The next morning.** The security lead opens the blocked event, follows it back to the macro, and removes the number. The block was the safeguard; fixing the macro removes the cause.

**Every day.** Assurance runs its checks: a published test card number goes through the same code that protects live traffic, and "mask for good" and "block the reply" both pass.

## How to tell it's working

- **Sensitive values are masked or blocked**, and the "what reaches the AI" table shows it without storing them.
- **Blocked replies are traced to their source** and the article or macro is fixed.
- **Assurance's daily checks pass** for each policy.
- **Data stores are classified**, starting with the high-attention ones.

## Do it in TicketResolve, step by step

**Where:** Security → Data (`/dashboard/security/data`). **You'll need:** a Security admin to change policies; your cloud and security tools connected to see data stores. **Full guide:** [Protecting sensitive data](https://www.ticketresolve.ai/docs/guide/security-data).

1. **Add the recommended policies.** As a Security admin, choose **Add recommended**. It blocks AI replies carrying card, bank or ID numbers or secrets, and masks card numbers and secrets for good before the model.
2. **Test a policy with real-looking samples.** Use **Test a policy** with text like *"my card is 4111 1111 1111 1111"* or an IBAN in a sentence. You'll see exactly what would be masked or blocked. Nothing is stored.
3. **See what reaches the AI.** The table shows how many tickets carried each kind of sensitive data in the last 30 days, and how often each was masked, blocked or recorded. Values are never stored.
4. **Use "record only" to learn, then enforce.** For a data class you're unsure about, start with record only, check the volumes after a week, then switch to mask or block.
5. **Review your data stores.** The list shows databases and storage reported by AWS, Wiz, Microsoft Defender for Cloud or Google Security Command Center. Start with **high attention**: exposed and sensitive, or exposed with a serious misconfiguration.
6. **Classify them.** Set public, internal, confidential or restricted on each store. TicketResolve doesn't read their contents, so classification is yours.
7. **Follow blocked replies back to the source.** Each block writes an event. Open it to find the article or macro that carried the data, and fix it.

**How to check it worked:** the evidence ledger shows each policy change and enforcement, and Assurance's daily checks show "block the reply" and "mask for good" passing with test values.

## Frequently asked questions

**Does the model ever see a raw card number?**
No. Sensitive values are tokenised by default, and with "mask for good" they're removed entirely before the model.

**Can a policy weaken the default protection?**
No. Policies only add protection.

**Do you store the sensitive values you find?**
No. Only the kind of data and the enforcement are recorded.

**Do you scan inside our databases?**
No. Data stores come from your cloud and security tools, and classification is set by you.

**Does the AI ever see masked values?**
No. "Mask for good" removes the value before the model sees it.

**Are the values stored when a policy acts?**
No. Counts are kept, values are not.

**Can I try a policy before enforcing it?**
Yes. Use Test a policy with sample text, or start with record only.
