Back to Blog
AI · Security Nov 2026 5 min read

DLP for AI: How to Stop Sensitive Data Leaving Through Prompts and Uploads

BlackHawk Data Engineering
BlackHawk Data Team
A combination padlock resting on a computer keyboard

What is DLP for AI?

DLP for AI is data loss prevention that inspects what people send to AI tools, including typed prompts, pasted text and uploaded files, before the content leaves the organization. Traditional DLP was built for email, file shares and removable drives. DLP for AI applies the same detection, such as pattern matching for account numbers and classification labels for documents, to a new set of exits. The Cloud Security Alliance's guide to AI prompt guardrails calls DLP "the first and most critical layer."

How does sensitive data reach AI tools?

Sensitive data reaches AI tools along five paths: a typed or pasted prompt, an uploaded file, an assistant that uses existing permissions, a connector between applications, and a personal account the company cannot see. Each path needs a different control. The OWASP Top 10 for LLM Applications 2025 ranks Sensitive Information Disclosure second, as LLM02:2025, and names the data at stake: personal information, financial details, health records, confidential business data, security credentials and legal documents. The table below pairs each path with the control that addresses it.

The path What goes wrong The control
Typed or pasted into a prompt Customer records, source code or credentials go into a chat box DLP reads the prompt before it is sent, and removes or stops what should not leave
Uploaded as a file A whole contract or spreadsheet is handed over in one click Classification labels and file inspection decide which files may go to which tools
Reached through old permissions An assistant surfaces a file the person could always open but never knew existed Oversharing is found and fixed before the assistant is switched on
Connected app to app An AI tool is granted standing access to mail, files or a CRM Each connection is reviewed and limited, and unowned ones are removed
Sent from a personal account Work is done in a tool the company never sees The company tenant is allowed and personal accounts are steered to it

How should DLP for AI be rolled out?

DLP for AI should be rolled out in three settings: watch, coach and block. Watch mode stops nothing and logs every prompt or upload that contains sensitive data, so the policy is written from real behavior. Coach mode tells the employee what was detected and why, and lets the employee remove the data or switch to an approved tool. Block mode stops the content and shows the reason. BlackHawk Data reserves block mode for data where a mistake cannot be undone.

Setting What the policy does What the employee sees When to use it
Watch Logs sensitive prompts and uploads; stops nothing Nothing First, to learn what people actually do
Coach Pauses the action and explains what was detected A notice, and a choice to remove the data or use the approved tool For most data
Block Stops the prompt or upload A message stating what was blocked and why Only for data that cannot be recalled

A policy that blocks everything on the first day gets worked around. Starting in watch mode avoids that, and gives the security team evidence for each rule it later enforces.

One made-up prompt under three DLP settings: Watch, Coach and Block. An illustration from BlackHawk Data’s AI security and visibility page, not a recording of a real incident. Silent, 12 seconds.

What should DLP for AI detect first?

DLP for AI should detect first the data that causes harm the moment it leaves: credentials, regulated personal data and anything already labeled confidential. Pattern matching finds structured values such as account numbers and API keys. Classification labels identify whole documents, which matters because an upload moves an entire file in one action. Starting with a short list keeps false alarms low, and a policy that raises few false alarms is a policy employees keep reading.

Data types to start with

  • Credentials and keys. Passwords, API keys and tokens give direct access, so one leak can become a breach.
  • Regulated personal data. Health records, payment card numbers and government identifiers carry legal reporting duties.
  • Financial account data. Bank and account numbers follow fixed patterns that DLP matches reliably.
  • Source code. Proprietary code is often pasted into AI tools for debugging.
  • Labeled documents. Any file already classified as confidential should not reach an unreviewed tool.

Does DLP for AI replace fixing file permissions?

DLP for AI does not replace fixing file permissions, because an AI assistant inside an approved application never sends data past the DLP checkpoint. Microsoft's Zero Trust guidance states that Microsoft 365 Copilot "retrieves content based on the requesting user's existing permissions — it does not elevate access, but it does make existing access far more visible and efficient." DLP watches data leaving for an AI tool. Permission cleanup limits what an assistant can surface to an employee in the first place. An AI program needs both controls.

BlackHawk Data covers the permission side in Can an AI Assistant Expose Confidential Files?

Sources

Frequently asked questions

Does DLP for AI read every prompt employees type?
DLP for AI inspects prompts sent from managed devices or through the company network to the AI tools covered by policy. Inspection is automated and looks for defined data types, such as account numbers or labeled documents. Organizations should tell employees which tools are covered and what is logged before turning DLP on.
Does DLP for AI apply to AI tools the company has approved?
DLP for AI applies to approved AI tools as well as unapproved ones. An approved assistant can still receive data it should not hold, such as credentials or another customer's records. Policy can be stricter for tools still under review and lighter for the approved company tenant.
What is the difference between coaching and blocking in DLP?
Coaching interrupts the action, explains what was detected and lets the employee choose what to do next. Blocking stops the action outright and shows the reason. Coaching suits most data, because the work continues and the rule is learned in context. Blocking suits data that cannot be recalled once sent.
Where does DLP for AI run?
DLP for AI runs at the points traffic and files pass through: a secure web gateway or SASE service for web prompts, an endpoint agent for clipboard and upload activity, and a CASB for connections between cloud applications. BlackHawk Data deploys these controls and operates them with a 24x7 SOC.