Sub topic 1
What counts as customer data
Prerequisites
This chapter assumes three things:
- You have used an AI chat assistant or coding assistant at work.
- You have a general idea of what customer records contain at your workplace.
- You have read your employer's security or acceptable-use policy, even if only once.
You do not need legal training. Later chapters cover legal duties, classification rules, and approved tools. This chapter builds the vocabulary that those chapters rely on.
Why the definition matters
Most leaks of customer data through AI tools are not attacks. They happen when someone pastes a support ticket, a spreadsheet, or a log file into a chat window and does not realize the text contains customer data. The first control is therefore recognition: you cannot protect what you do not notice.
A narrow definition ("customer data is the customer database") misses most of what you handle daily. A useful working definition is broader:
Customer data is any information that relates to a customer, or that you received because of your relationship with a customer, in any form, wherever it is stored.
This covers a name in a database, a sentence in a chat transcript, a screenshot in a bug report, and a row in a CSV export. It also covers information about a customer's own business that the customer shared with you under an expectation of confidentiality.
Four broad categories
It helps to sort customer data into four groups. Real records usually mix several of them.
| Category | What it is | Examples |
|---|---|---|
| Personal data | Information about an identifiable person | Name, email, phone number, home address, IP address, account ID |
| Sensitive personal data | Personal data whose exposure causes greater harm | Health details, government ID numbers, payment card numbers, biometric data, precise location |
| Account and credential data | Information that grants access | Passwords, API keys, session tokens, security answers |
| Confidential business data | Non-personal data the customer treats as private | Contracts, pricing, product roadmaps, source code, internal org charts |
Personal data
Personal data is any information about a person who can be identified. The key word is identifiable. A record does not need a name to qualify. A phone number, a customer ID, or an IP address can point to one person, especially when combined with other fields.
Common mistakes at this level:
- Assuming that removing the name makes a record safe. A row with a postcode, a birth date, and a purchase history can often be traced back to one person.
- Treating business contact details as harmless. An email such as
[email protected]is personal data about Ana, even though it is a work address. - Forgetting that free text counts. A note like "caller said her husband is in hospital" is personal data even with no structured fields.
Sensitive personal data
Some personal data causes more harm when exposed, and many laws give it stricter handling rules. The exact list depends on where you operate, but it usually includes:
- Health and medical information
- Government-issued identifiers, such as national insurance, social security, or passport numbers
- Financial account and payment card details
- Biometric and genetic data
- Data about race, religion, political views, sexual orientation, or union membership
- Data about children
- Precise location history
If a field in your system looks like it belongs on this list, treat the whole record as sensitive.
Account and credential data
Credentials are not about a person's identity. They are about access. A leaked API key or session token can let someone act as the customer or as your own service. These are easy to miss because they hide in places such as:
- Configuration files pasted for debugging
- Log lines that include an
Authorizationheader - Screenshots of a browser address bar with a token in the URL
- Code snippets with a hard-coded password
Treat any credential as the highest priority for removal. Unlike a name, a leaked credential can be rotated, but it must be rotated quickly.
Confidential business data
When your customers are companies, much of what they share is not personal at all. Pricing terms, a contract's renegotiation clause, unreleased product plans, and proprietary source code are all customer data in the sense that matters here. Your contract may forbid disclosing them to third parties, and an AI vendor counts as a third party.
Direct identifiers, indirect identifiers, and re-identification
Personal data comes in two forms, and the difference explains many near misses.
- A direct identifier points to a person on its own. Examples are a full name, an email address, a phone number, or a passport number.
- An indirect identifier (also called a quasi-identifier) points to a person only in combination with other data. Examples are job title, employer, postcode, age, or a rare medical condition.
Removing direct identifiers while leaving indirect ones is a common failure. Consider this fragment:
The only female pilot at the Norwich regional office, age 41,
filed a complaint about invoice 88213 on 3 March.There is no name, yet anyone at that company could identify the person. Re-identification is the act of linking supposedly anonymous data back to a real person. It is the reason later chapters on redaction and pseudonymization treat "remove the name" as a starting point and not a finish.
Where customer data hides
Customer data rarely arrives labeled. The places below produce most accidental exposures, so check them deliberately.
- Support tickets and chat transcripts. Customers type whatever they want, including card numbers, health details, and passwords.
- Call and meeting transcripts. Automatic transcription captures names, account numbers, and asides.
- Logs and error traces. Request bodies, query strings, and headers often contain emails, tokens, and IDs.
- Database exports and spreadsheets. A "sample of 20 rows" is still 20 real customers.
- Screenshots and PDFs. Text inside an image is still text. Many AI tools read it. Browser tabs, notification pop-ups, and file names in the frame can also reveal customers.
- Source code and test fixtures. Developers copy real records into tests, and code comments may name customers.
- Document metadata. File properties, tracked changes, and comments can hold names and email addresses.
- Email threads. Quoted replies and signatures carry names, phone numbers, and addresses far down the thread.
The following diagram shows how one ordinary support ticket mixes categories.
A ticket that looks like one item is really four kinds of data. If you paste it into an AI tool, all four go with it.
Derived and inferred data
Customer data is not only what customers gave you. It also includes data created about them:
- Purchase history, usage statistics, and behavior analytics
- Risk scores, churn predictions, and segments
- Internal notes such as "difficult customer, escalate to manager"
- Summaries produced by an AI tool from customer material
These derived records often feel like "our own data", so people paste them freely. They still relate to an identifiable customer, and some laws give people rights over inferences made about them. An AI-generated summary of a customer call is customer data and carries the same handling needs as the transcript.
Data you can see versus data you may use
Access and permission are different things. Being able to open a record in your CRM does not mean you may send it to any tool. Customers shared data for a specific purpose, such as fulfilling an order or resolving a support case. Using it for another purpose, including analysis in an external AI service, may need a separate basis under law or contract. Chapter-length detail on this comes later, but the habit starts now: ask "was this shared for this purpose?" and not only "can I see it?".
A quick recognition routine
Before pasting anything into an AI tool, scan it with four questions.
- Who? Does it name, describe, or let someone find a specific person?
- Access? Does it contain a password, key, token, or link that grants entry?
- Harm? Would exposure hurt the customer, for example through health, money, or safety?
- Confidence? Would the customer or a contract expect this to stay private?
A "yes" to any of them means you are handling customer data and must go on to the later steps in this tutorial: classify it, check the tool, and minimize what you send.
A short script can help with the first pass, but it cannot replace your judgment. The example below flags text that looks like it holds common identifiers.
import re
CHECKS = {
"email": re.compile(r"[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}"),
"phone": re.compile(r"\+?\d[\d\s().-]{7,}\d"),
"card_like": re.compile(r"\b(?:\d[ -]?){13,16}\b"),
"secret_like": re.compile(r"(?i)\b(api[_-]?key|token|password|secret)\b\s*[:=]\s*\S+"),
}
def scan(text: str) -> list[str]:
"""Return the names of the checks that matched."""
return [name for name, pattern in CHECKS.items() if pattern.search(text)]
sample = "Customer Ana called from +44 20 7946 0958. api_key=sk_live_abc123"
print(scan(sample))
# ['phone', 'secret_like']Notice what the scan cannot see. It misses the name "Ana", it misses a free-text medical remark, and it misses indirect identifiers. A clean scan result means only that these four patterns were absent.
Common errors
- "It's only a sample." A small excerpt of real records is still real customer data.
- "It's already public." Information on a social profile can still be personal data, and combining it with your records can create new exposure.
- "I deleted the name." Indirect identifiers may remain, and free text often repeats the name elsewhere.
- "It's internal, not customer data." Internal notes and derived scores about customers are still customer data.
- "It's only code." Code often contains keys, customer names in comments, and real test data.
- "The customer is a company, so there is no personal data." Company records contain employee names, emails, and phone numbers.
What comes next
With this vocabulary you can now describe what is at stake. The next chapter follows a prompt after you press send, to show which systems receive the data and what they may do with it.
Exercise
A colleague wants to ask an AI assistant to summarize this note: "Priya N., Leeds, account 5521, called about a duplicate charge on her card ending 4417 and mentioned she is going through chemotherapy, so asked for a payment delay." List every category of customer data in the note, and explain why deleting the name "Priya N." would not make it safe.
Show answer
The note holds personal data (name, city, account number), account data that identifies her (account 5521), financial data (the card's last four digits and the billing dispute), and sensitive personal data (a health detail, chemotherapy). It also holds derived business context (a payment delay request). Deleting the name leaves indirect identifiers: the city, the account number, and the card digits can each help trace her, and the health detail makes exposure more harmful. The account number is effectively a direct identifier inside your systems. The note should be minimized or redacted much further, or not sent, before use.
Exercise
You are debugging a failed API call and want an AI tool to explain this log line: POST /v2/orders 401 Authorization: Bearer eyJhbGciOi... [email protected]. Which categories of customer data appear, and what must you do before pasting it?
Show answer
It contains a credential (the bearer token) and personal data (the email address, which also reveals the customer's employer). Before pasting, remove the token and the email, replacing them with placeholders such as [TOKEN] and [EMAIL]. If the real token has already been sent anywhere outside approved systems, treat it as exposed and rotate it. The error code and route are usually enough for the AI tool to explain the failure.
Exercise
Name two kinds of customer data that are not personal data, and explain why they still need protection when you use an AI tool.
Show answer
Examples are contract pricing, unreleased product plans, and proprietary source code, all of which can belong to a business customer. They still need protection because contracts often require confidentiality, and an AI vendor is a third party. Disclosing them could breach those terms even though no individual is identifiable.