Sub topic 12
What to do when customer data is exposed
This chapter assumes you have read the earlier chapters on data types, leak scenarios, and approved tools. You should know which of your employer's AI tools are approved and which kinds of data count as customer data. You should also have your employer's acceptable-use policy to hand, because the contacts and deadlines below must come from it.
Prevention fails sometimes. Someone pastes a customer export into the wrong chat window, or a connector reads a folder it should not have. What matters then is how quickly the right people hear about it and how well they can act on what you tell them.
What counts as an incident
An exposure is any case where customer data reached a place or person it was not meant to reach. In AI work this usually means one of these:
- Data entered into an unapproved or personal-account AI tool.
- Data entered into an approved tool, but into a workspace, project, or shared link with the wrong audience.
- An agent or connector that read, sent, or stored customer data outside its intended scope.
- AI output that contained another customer's data, or that was sent to the wrong recipient.
- A tool setting, such as training use or long retention, that turned out to be on when it should have been off.
A near miss is a case where you caught the mistake before sending, or the data never left your control. Report near misses too, though usually with lower urgency. They show the security team where the controls are weak.
You do not need to be sure the event is serious to report it. Deciding severity is the response team's job, and they cannot do it if they never hear about the event.
The first minutes
What you do in the first few minutes affects how much damage follows. Work through these steps in order.
- Stop. Do not send more prompts, do not continue the conversation, and do not upload anything else to the same tool.
- Do not delete yet. Deleting the chat, file, or account can feel like undoing the mistake. In practice it destroys the evidence the response team needs to see what was sent and when. Deletion inside a vendor's product also may not remove the data from backups or logs. Leave everything as it is unless the incident team tells you to remove it.
- Write down what you know. Note the tool, the account you used, the time, and what you entered. Take a screenshot of the conversation or the sharing settings if your policy permits it. Keep that screenshot in a restricted location, because it contains the exposed data.
- Report through the official channel. This is usually a security mailbox, a ticket form, or a phone line named in your policy. Tell your manager as well, but the official channel is what starts the clock.
- Do not contact the customer. Notification of customers is a decision for the privacy, legal, and account teams, because wording and timing can have legal effects.
- Do not ask the AI tool what to do. Describing the incident to the same tool, or to another unapproved one, risks exposing the data a second time.
What a good report contains
A useful report lets the response team start work without asking you ten follow-up questions. Include:
- Who: your name, team, and how to reach you quickly.
- What tool: the product name, plan or workspace, and whether you used a work account or a personal one.
- When: when it happened and when you noticed. These can differ, and the gap matters.
- What kind of data: categories (for example "names, email addresses, and billing notes"), not the data itself.
- How much: an approximate number of customers or records.
- What happened next: whether the output was shared, copied elsewhere, or used by an agent.
- What you already did: for example, "stopped using the tool, took no other action."
The report must not contain the exposed data. If you paste a customer's details into a ticket, you create a second exposure in a system that may have wider access than the first. Describe the data by type and count.
The script below shows one way to enforce that rule in an internal form. It builds a report as structured text and refuses to accept free text that contains an email address.
import re
from dataclasses import dataclass, field
from datetime import datetime, timezone
EMAIL = re.compile(r"[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}")
@dataclass
class IncidentReport:
reporter: str
tool: str
account_type: str # "work" or "personal"
what_happened: str
data_types: list[str]
approx_records: int
actions_taken: list[str] = field(default_factory=list)
discovered_at: datetime = field(
default_factory=lambda: datetime.now(timezone.utc)
)
def __post_init__(self):
free_text = [self.what_happened, *self.actions_taken]
if any(EMAIL.search(t) for t in free_text):
raise ValueError(
"Report text contains an email address. "
"Describe the data by type and count, not by value."
)
def to_text(self) -> str:
lines = [
f"Reporter: {self.reporter}",
f"Discovered (UTC): {self.discovered_at:%Y-%m-%d %H:%M}",
f"Tool: {self.tool} ({self.account_type} account)",
f"What happened: {self.what_happened}",
f"Data types: {', '.join(self.data_types)}",
f"Approximate records: {self.approx_records}",
"Actions taken: " + ("; ".join(self.actions_taken) or "none"),
]
return "\n".join(lines)
report = IncidentReport(
reporter="J. Rivera, Support",
tool="Public chatbot",
account_type="personal",
what_happened="Pasted a ticket export to summarize it.",
data_types=["names", "email addresses", "order numbers"],
approx_records=40,
actions_taken=["Stopped using the tool", "Did not delete the chat"],
)
print(report.to_text())This check is a pattern match, like the redaction example from the previous chapter. It catches an obvious mistake but does not replace your own care.
What happens after you report
You may not see most of the response, so it helps to know what is going on. The exact steps differ between organizations, but they usually cover these areas.
Triage and containment
The response team first judges severity. They look at the data types, the number of people affected, and the tool involved. They also consider whether the data can be pulled back. They may revoke a shared link, disable a connector, rotate credentials, or suspend an account.
Vendor requests
If the data went into an approved enterprise tool, the contract often gives your organization the right to request deletion and to receive information about retention and logging. If it went into a consumer tool, the options are usually weaker: a support request or a privacy form, with no guarantee of timing. This is why the earlier chapters stress approved tools and settings. The worst case after an exposure depends heavily on which tool received the data and how it was configured.
Legal assessment and notification
Privacy laws and customer contracts often set notification deadlines that start when the organization becomes aware of an exposure. Under the EU GDPR, for example, a controller generally has 72 hours to notify the supervisory authority of a personal data breach where it is likely to result in risk to individuals. Many customer contracts set shorter windows. Your report is often the moment that clock starts, which is why a late report can turn a manageable event into a compliance failure.
Legal or privacy staff decide whether regulators or customers must be told, and what to say. That decision depends on the facts you supplied.
How teams weigh severity
| Factor | Lower concern | Higher concern |
|---|---|---|
| Data category | Business contact names | Health, financial, government ID, credentials |
| Volume | A few records | Thousands of records or a full export |
| Tool | Approved tool, no training use, short retention | Personal account, training on inputs, unknown retention |
| Audience | Only you could see it | Shared link, workspace, or public output |
| Recoverability | Can be deleted and confirmed | Copied elsewhere or used by an agent |
| Time since exposure | Caught within minutes | Discovered weeks later |
Common mistakes
- Waiting to be sure. People delay while they check whether the data was "really" sensitive. Report on suspicion.
- Quietly deleting. A removed chat looks like a hidden incident, and it removes the record the team needs.
- Fixing it with another AI tool. Asking a different chatbot how to handle the leak sends the story, and perhaps the data, to a new party.
- Reporting only to a manager. A manager may not know the deadline rules. Use the official channel as well.
- Putting the data in the ticket. This creates a new exposure.
- Treating a connector problem as a user error. If an agent had access that was too broad, the fix is to reduce its permissions, not just to remind people to be careful.
After the incident
A good response ends with a short review. The team asks which control failed and what would have prevented the exposure or caught it sooner. Typical outcomes are:
- A setting changed, such as turning off training use or shortening retention.
- A tool blocked or an approved alternative offered for a task people were already doing.
- A connector's access narrowed to the folders or fields it really needs.
- A new item on the pre-prompt checklist, covered in the next chapter.
- A short note shared with the team, with details removed, describing what happened and what changed.
If you were the reporter, you may be asked to confirm the timeline and what you entered. Answer plainly and from your notes.
Summary of the habits to keep
- Stop, preserve, report. In that order.
- Describe the data by type and count, never by value.
- Use the official channel, and do it quickly.
- Leave customer contact and vendor negotiation to the teams who own them.
- Report near misses, because they are cheap lessons.
Exercise
You paste a spreadsheet of about 200 customer names and order notes into a free chatbot on your personal account. You realize it a minute later. List the first four actions you should take, and name one thing you should not do.
Show answer
Stop using the tool and send no more prompts. Do not delete the chat. Note the tool, account, time, data types, and approximate record count, and keep a restricted screenshot if policy allows. Report through the official security channel and tell your manager. You should not delete the conversation, contact the customers, or ask another AI tool how to fix it. Also, the report should describe the data by type and count and must not include the actual names or notes.
Exercise
A colleague's incident ticket says: "I pasted the details of Maria Okafor, [email protected], into the wrong chat tool." What is wrong with the ticket, and how would you rewrite the key sentence?
Show answer
The ticket repeats customer personal data (a name and an email address) in a second system, which creates a new exposure. A better version is: "I entered one customer's name and email address into the wrong chat tool, a personal-account chatbot, at about 14:10 UTC today." It names the data types and count without including their values.
Exercise
Two incidents involve 30 customer records each. In the first, the data went into an approved enterprise tool with training use off, and you reported within ten minutes. In the second, it went into a personal-account chatbot, and it was found three weeks later. Why would the response team likely treat the second as more serious?
Show answer
The second involves a tool with no contract protections and likely unknown retention or training use. Deletion is harder to obtain and confirm. The long delay means the data may have been retained, reused, or copied, and it may have shortened or already used up the time available for legal notification. The first had a recoverable path (vendor deletion rights) and a prompt report.