Sub topic 12
What to do when customer data is exposed
This chapter assumes you know the data types and leak routes from earlier chapters, and that you can find your employer's security contact and acceptable-use policy. It covers the first hours after you notice that customer data went somewhere it should not have.
What counts as an incident
An incident is any case where customer data reaches a tool, person, or place that is not approved to hold it. Typical cases:
- You pasted a customer record into a consumer chatbot.
- You uploaded a spreadsheet to an AI tool whose settings allow training on your input.
- A connector or agent read folders you did not mean to share.
- You pasted AI output that contained another customer's details into a ticket or email.
You do not need proof of harm. A suspected exposure is enough to report.
The first hour
Speed matters because some legal notification clocks start when your organization becomes aware of the exposure. The GDPR, for example, expects notification to the regulator within 72 hours when a breach is reportable. Your legal team decides whether that applies, but they can only decide once you have told them.
- Stop. Do not send more data, and do not retry the prompt.
- Preserve evidence. Take a screenshot or note the tool name, account, time, and conversation link. Do not delete anything yet.
- Report. Use the channel your policy names, such as a security mailbox or ticket queue. Send the facts, not the data itself.
- Contain, with guidance. The security team may ask you to delete the conversation, revoke a connector token, or change a sharing setting. Do these steps after the evidence is saved.
- Support the assessment. Answer questions about what was sent, who could see it, and what the tool retains.
Write a report that contains no customer data
A report that repeats the leaked data creates a second exposure. Describe the data by category and count. The sketch below builds a structured report that has no field for raw content.
import json
from dataclasses import dataclass, asdict
from datetime import datetime, timezone
@dataclass
class IncidentReport:
tool: str
account_type: str # "enterprise" or "personal"
data_categories: list[str] # for example ["email", "billing history"]
approx_records: int
what_happened: str
reported_at: str
report = IncidentReport(
tool="ExampleChat",
account_type="personal",
data_categories=["name", "email", "billing dispute text"],
approx_records=1,
what_happened="Pasted one support ticket into a personal chatbot account.",
reported_at=datetime.now(timezone.utc).isoformat(),
)
print(json.dumps(asdict(report), indent=2))What the assessment decides
The security and privacy teams use your facts to answer these questions:
| Question | Why it matters |
|---|---|
| Which data categories were involved? | Payment, health, or children's data triggers stricter rules. |
| Which tool and account type? | Enterprise terms usually limit retention and training. Personal accounts often do not. |
| Does the vendor retain or train on the input? | This decides whether deletion is possible and how long the data persists. |
| How many customers are affected? | This sets the notification scope. |
| Do contracts require notice? | Customer agreements may set their own deadlines. |
Common errors
- Waiting until you are sure. Report first. The team can close a false alarm in minutes.
- Deleting the evidence. Removing the chat before reporting hides the details responders need.
- Asking the AI to forget. Telling a model to disregard the data does not remove it from logs or retention stores.
- Contacting the customer yourself. Notification is a legal decision. Leave it to the designated team.
- Discussing details in a public channel. Keep the thread limited to the incident responders.
After the incident
A short review asks what made the mistake easy. The answer often points to a missing approved tool, an unclear classification rule, or a risky default setting. The fix then goes into the team's pre-prompt checklist, which the next chapter covers.
Exercise
You realize you pasted a customer's full support ticket into a personal chatbot account an hour ago. List your next three actions in order and say what you should not do.
Show answer
(1) Stop using the tool for this task and record the evidence: tool, account, time, and conversation link. (2) Report to the security or privacy contact right away, describing the data by category and count without repeating it. (3) Follow their containment instructions, such as deleting the conversation or changing settings. Do not delete the chat before reporting, ask the AI to forget the data, or contact the customer yourself.