TL;DR: AI data leakage prevention means inspecting data at every hop of an AI workflow, enforcing rules at runtime, and recording each decision, because traditional data loss prevention does not see agent API calls and tool interactions. This guide follows one request through six hops, covers what privacy compliance asks for, and gives six questions for choosing secure AI tools and a readiness check. Prediction Guard, a sovereign AI control plane, supplies the control point inside your boundary for the traffic routed through it.
A claims analyst asks an AI agent to summarize a claim file and email the summary to a repair vendor. The request looks routine. It also contains a claimant's phone number, pulls medical details from a knowledge base, sends a draft to an outside address, and reads a reply back into the model. Each step is a place where sensitive data can leave.
AI data leakage prevention is the practice of inspecting data as it moves through AI workflows, enforcing rules at runtime, and recording decisions so organizations can demonstrate how sensitive information was handled. It brings together sensitive data protection, AI security, and privacy compliance. It also addresses a gap in traditional data loss prevention: AI agents move data through API calls and tool interactions, not just files and emails. This guide follows that one request through a control point, then covers what regulators would ask, how to choose secure AI tools, and how to tell whether your controls are ready. It treats the control point as the foundation of operational control of agents. Prediction Guard, a sovereign AI control plane that runs inside your boundary, provides that control point for the traffic routed through it.
It complements Prediction Guard's complete leakage prevention guide, which covers prompt, retrieval, and output leakage in depth. This guide adds agent tool calls, regulation, and evidence. It is general information, not legal advice, and outside facts were checked in November 2026. Prediction Guard publishes this guide and builds a sovereign AI control plane, so its statements about its own product are limited to what its v1.2 release ships.
Why Data Loss Prevention Does Not See This Request
Traditional data loss prevention was built around known channels, such as files, email, endpoints, and uploads, and around recognizable patterns. The analyst's request is neither. The content is conversational prose with no pattern to match, and the channel is a chain of API calls and agent actions, often made with a legitimate credential. Data also moves in a loop, because output feeds the next prompt and tool results re-enter the model's context.
Existing data loss prevention still covers the channels it was built for. This request needs a counterpart, a control point on AI traffic, and that control must sit outside the model. OWASP's entry on sensitive information disclosure warns that system-prompt restrictions on what a model may return can be bypassed through prompt injection, so an instruction is not an enforcement mechanism.
AI Data Leakage Prevention in Motion: Follow One Request
The request passes six hops. At each, the control point decides before data moves and writes a record.
+------------------------------+
analyst --(1)------> | | --(2)------> knowledge base
<-(5)--------- | control point | --(3)------> tools
| inspect, decide, and | <-(4)-------- tools
| record (6) each hop |
+------------------------------+
The control point sits between the analyst and everything the request touches, so every hop passes through it. The numbers are the hops below: (1) prompt, (2) retrieval, (3) tool call, (4) tool result, (5) response, and (6) record.
1. The Prompt
Can leak: the analyst pastes the claimant's phone number and member ID into the request, and a credential from an earlier note rides along.
The control decides: whether each data class is blocked, only detected, or redacted before the prompt reaches a model, and which model it may reach.
The record shows: the time, the user, the data class, the detector that fired, and the decision, with no copy of the value.
2. The Retrieval
Can leak: the agent pulls the claim file and related claims into context, and one of them belongs to a different claimant the analyst was never assigned.
The control decides: what the run may reach, restricting retrieval to resources allowed by the user's identity, the agent's scope, and the key's scope. This depends on the underlying authorization model being correctly enforced.
The record shows: which knowledge bases and sources the run drew on, under whose authority.
3. The Tool Call
Can leak: the agent drafts the email with claimant details and addresses it to the vendor. If instructions hidden in a document change the address, the data goes somewhere else.
The control decides: whether the arguments sent to the tool pass the same checks as a prompt, whether the destination is on the list of endpoints this agent may use, and whether a person must approve before regulated data leaves the boundary.
The record shows: the tool, the destination, the data classes in the arguments, and who approved.
This hop is where the connections around the model matter. In IBM's 2026 study, more than 20% of organizations reported a breach targeting AI models or applications, and the most common causes were compromised APIs, applications, or plug-ins and cloud misconfigurations affecting AI workloads, at 27% each.
4. The Tool Result
Can leak: two different things can come back in a tool result. Instructions hidden in returned content, such as the vendor's auto-reply, can steer the model, as in Microsoft's advisory for CVE-2025-32711, which describes AI command injection in Microsoft 365 Copilot that let an unauthorized attacker disclose information over a network with no user interaction, and Microsoft fixed it on the service side. Separately, returned content can carry sensitive data or credentials that then sit in the model's context.
The control decides: whether tool results receive the same inspection as prompts, treating returned content as untrusted input, and whether credentials embedded in connection strings or URLs are scrubbed before they re-enter the model's context.
The record shows: what the result contained by data class, and whether anything was stopped before it reached the model.
5. The Response
Can leak: the answer shown to the analyst includes data the model should not have surfaced. OWASP's own example is a user receiving another user's personal data because of inadequate sanitization.
The control decides: whether output gets the same checks as input before it reaches a person or another system.
The record shows: the decision for the output, linked to the same reference ID as the request.
6. The Record
Can leak: logging the full prompt, the retrieved file, and the response would create a second copy of everything above.
The control decides: what the record contains, which is the decision, the data class, the identities, the destination, and a reference ID, and where any underlying content is kept: in a separate store inside your boundary, encrypted, retrievable only through an authorized and logged request, and held for the shortest period your obligations allow.
The record shows: enough to answer what was blocked, what was only detected, who was affected, and what was done. Forward a minimized version to your SIEM so analysts can search it, as Prediction Guard's SIEM gap explainer describes.
If a leak is under way, the same control point is where you stop it: quarantine one agent, or disable one user, without taking down the rest.
Sensitive Data Protection: Deciding Per Data Class
The decision at hops 1, 3, 4, and 5 should vary by data class. Block outright where the rule has zero tolerance, such as credentials. Detect and alert where false positives would stop legitimate work. Redact or tokenize where a workflow needs the shape of the data but not the value. One response for everything either creates so much friction that people route around the control, or lets through categories that should be stopped. Test detection against your own records, because accuracy on public examples does not predict accuracy on your data.
Privacy Compliance and AI Security: What Gets Asked About This Request
A leak of personal data through an AI tool engages the same obligations as any other handling of personal data. GDPR and the EU AI Act both bear on it.
| Question asked | Provision | Recommended evidence from the request |
|---|---|---|
| Was the data protected, and who could see it? | GDPR Articles 5(1)(f) and 32: appropriate security, including confidentiality. Article 32(1) names pseudonymisation, encryption, and ongoing confidentiality, integrity, availability, and resilience | Inspection decisions, encryption in transit and at rest, authority limits |
| Was only the necessary data used? | GDPR Article 25: data protection by design and by default, such as data minimisation | Rules that keep sensitive fields out of prompts and tool calls by default |
| If it leaked, can you say what and whose, in time? | GDPR Article 33: notify the supervisory authority within 72 hours of becoming aware, where feasible, unless the breach is unlikely to result in a risk. Processors notify controllers without undue delay | Records that show what data was involved |
| Can the system be manipulated into disclosing? | EU AI Act Article 15 (high-risk systems): accuracy, robustness, and cybersecurity, including resilience against unauthorised third parties altering use, outputs, or performance by exploiting vulnerabilities | Injection and exfiltration test results |
The second column restates what the rules ask for. The third is recommended evidence, not statutory text. Article 15 concerns accuracy, robustness, and cybersecurity for high-risk AI systems, and it does not require every AI tool to implement the specific controls in this guide. Two practical points follow. The 72-hour clock starts when you become aware, so detection and records decide whether you can scope a leak in time. And encryption is a named measure, yet in IBM's study only 37% of breached organizations said they encrypt sensitive data both at rest and in transit. Sector rules such as HIPAA and PCI DSS add their own requirements for the data classes they cover.
Choosing Secure AI Tools: Six Questions Before You Approve
These apply to any AI tool, whether bought, built, or embedded in another product. Where a tool runs, as vendor-operated SaaS, in your own cloud, or self-hosted by you, decides who can see prompts and records. It does not decide what the tool is allowed to send.
- Where does data go? Which parties can see prompts, outputs, and tool data, and is any of it retained or used for training?
- What can a run reach? Does it inherit the user's authority, or use a broad shared credential?
- Can you inspect and block at runtime? Is there a control point for prompts, outputs, and tool data that can block as well as detect?
- What happens to secrets? Are credentials kept out of connection strings, displays, and stored records?
- What evidence does it produce? Does it record decisions without storing sensitive values, and where does that record live?
- What does it not cover? Which traffic bypasses it, and how is a leak contained?
Where Prediction Guard, a Sovereign AI Control Plane, Fits
A sovereign AI control plane is the architecture that identifies, authorizes, enforces, meters, records, and contains agent actions, running inside your own boundary. It is the control point in the diagram, and it does not replace data loss prevention on endpoints, email, or files.
Prediction Guard's v1.2 release produces supporting evidence in three groups. They line up with the walkthrough: inspection with the data that enters or leaves a model, authority with what a run may reach, and audit and containment with the record.
Runtime Inspection and Enforcement
- Safeguards for PII, prompt injection, toxicity, credentials, and grounding either block or only detect, and blocked runs name the safeguard that stopped them.
- A Tool Content control lets an admin run PII, prompt-injection, and secrets checks on tool results and tool-call data flowing back to the model.
- Credential scrubbing is included in the OWASP and NIST compliance baselines and is turned on automatically when a baseline is applied.
Identity and Authority Control
- A run is limited to what the key, the agent, and the initiating user can all reach.
- Keys can be scoped to agents, knowledge bases, and skills.
- MCP server URLs that carry an embedded API key are masked in the Console, the API, and the AI Bill of Materials.
Audit and Containment
- A Security Events dashboard charts blocked versus detected events per detector, and a live audit log appears on its own System tab.
- Admins can quarantine an agent, with release requiring a reason and both actions recorded for audit.
- Admins can disable a user in one step: their sessions end, their API keys stop working, and their agents are cut off, and re-enabling them restores everything.
That is supporting evidence, and it does not establish the rest: that detection fits your data categories at the accuracy you need, that every tool path is routed through the control point, that arguments sent out to tools are inspected (the Tool Content control covers data flowing back to the model), that the authorizations in your source systems are correct, that your incident procedures work, or that records are complete and retained as long as you need. It is self-hosted and enforces on traffic routed through it, so AI tools used outside it need discovery by other means. Per-invocation authorization at the tool server and human-in-the-loop approval gates with workflow automation are not yet generally available. For related practice, see the PII detection guide, the application security architecture post, and the blast radius guide. The product overview describes the platform itself.
Readiness Check
You are ready when you can answer yes to each of these:
Preventing sensitive data leaks in AI tools requires more than filtering prompts or securing model infrastructure. Organizations need runtime controls across the entire agent workflow, identity-aware authorization, and auditable evidence of each decision. That is the foundation of operational control of agents.
How Prediction Guard Solves This
Prediction Guard gives regulated enterprises operational control of their AI agents: one sovereign AI control plane that identifies, authorizes, enforces, meters, records, and contains every action an agent takes, running inside the customer's own boundary. For data leakage, that is the control point in this guide: safeguards that block or only detect, a Tool Content control for tool results, runs limited to what the key, the agent, and the initiating user can reach, credential scrubbing, quarantine or one-step user disable, and a live audit log.
It enforces on traffic routed through it, so AI tools used outside it need discovery by other means. Inspection of arguments sent out to tools is not established by the Tool Content control, which covers data flowing back to the model, and per-invocation authorization at the tool server and human-in-the-loop approval gates are not yet generally available. Ask us to show a blocked call, a quarantined agent, and the record it leaves in the same session.
FAQ: Stopping Sensitive Data Leaks in AI Tools
1. What is AI data leakage prevention?
It is the practice of inspecting data as it moves through AI workflows, enforcing rules at runtime, and recording decisions so organizations can demonstrate how sensitive information was handled. It covers prompts, retrieved context, responses, tool calls, tool results, and the records the controls create.
2. How is it different from traditional data loss prevention?
Traditional data loss prevention watches known channels such as files, email, and endpoints for recognizable patterns. AI tools move unstructured data through API calls and agent actions, so AI data leakage prevention needs a control point on that traffic. It complements existing data loss prevention and does not replace it.
3. Can instructions in a system prompt stop sensitive data leaks?
No. OWASP notes that such restrictions can be bypassed through prompt injection and other methods, so enforcement has to run outside the model, on the request, the response, and the tool data.
4. Is a leak through an AI tool a GDPR breach?
It can be. A leak that discloses personal data to unauthorized parties can be a personal data breach, and Article 33(1) requires notifying the supervisory authority within 72 hours of becoming aware, where feasible, unless the breach is unlikely to result in a risk.
5. Does a self-hosted model make an AI tool secure?
It changes where data goes, which matters. It does not by itself stop leaks through prompts, retrieval, tool calls, or stored records, so the same inspection, authority limits, and evidence apply.