Data Loss Prevention technology has been a cornerstone of enterprise security programmes for nearly two decades. The premise is straightforward: monitor outbound data flows, detect when sensitive information is about to leave the organisation, and block or alert before it does. For the structured, file-based data flows that defined the pre-AI era — email attachments, file uploads, copy-paste from DRM-controlled documents — DLP worked reasonably well.
Generative AI has broken every assumption DLP was built on. At AIGuard, we've spent three years building a DLP engine specifically for AI-era data flows, and the gap between what legacy DLP can detect and what it misses in LLM prompt traffic is not a marginal improvement problem. It's a fundamental architectural rethink.
How Legacy DLP Works
Traditional DLP tools operate primarily on three detection mechanisms:
Regular expression matching — patterns for credit card numbers (Luhn-validated 16-digit sequences), Social Security Numbers (XXX-XX-XXXX format), passport numbers, and similar structured identifiers. These work well when the data is in its canonical form.
Document fingerprinting — creating hash-based signatures of sensitive documents so that fragments of those documents can be identified if they appear in outbound traffic. Effective for exact or near-exact reproduction of known documents.
Keyword and phrase matching — blocklists of terms associated with sensitive topics: project codenames, M&A terminology, classified project identifiers. These generate enormous false positive volumes and are routinely disabled or deprioritised by security teams.
These mechanisms were designed for a specific data flow model: data moves as files, the sensitive content is structured and in its original form, and the channel (email, FTP, USB) carries it intact from source to destination.
Why LLM Prompts Break This Model
LLM prompts are a fundamentally different data type. Consider how a developer or analyst actually interacts with ChatGPT, Claude, or Gemini in a professional context. They don't paste a PDF into the chat box. They describe a problem, provide context, ask for help drafting something. The sensitive data is embedded in natural language, fragmented, paraphrased, and contextualised in ways that are entirely opaque to regex-based detection.
A prompt like "I'm working on our Q4 earnings model and revenue is coming in at about 2.3 billion, slightly below analyst consensus of 2.4B, can you help me draft the board update memo" contains material non-public information that would be catastrophic if disclosed. It contains no credit card numbers, no SSNs, no document fingerprints, and no keyword that a blocklist could reliably catch without drowning in false positives. Legacy DLP sees it as clean text.
The Semantic Gap Problem
The most insidious failure mode is what we call the semantic gap: sensitive data expressed in casual, natural, or indirect language that is semantically identical to its canonical form but syntactically unrecognisable to pattern-matching systems.
| Canonical Form | As Expressed in LLM Prompt | Legacy DLP |
|---|---|---|
| SSN: 078-05-1120 | "his social is zero-seven-eight, oh-five, eleven-twenty" | Miss |
| API key: sk-proj-abc123... | "the key starts with sk-proj and I lost it, it was in the env file" | Miss |
| M&A target: Acme Corp | "the target we've been calling Project Falcon" | Miss |
| Patient DOB: 1987-03-14 | "she was born in March 87, early spring" | Miss |
| Credit card: 4532-xxxx | "Visa, starts with four-five-three-two" | Miss |
Each row represents a different person expressing real sensitive data in a way that is natural for conversational AI interaction. None of these would be caught by a regex or a keyword filter. All of them represent genuine data exfiltration risk if submitted to an external AI service without organisational oversight.
Why ML NER Is Essential
The only viable solution to the semantic gap is machine learning-based Named Entity Recognition trained on domain-specific corpora that reflect how sensitive data actually appears in AI prompt traffic — not how it appears in structured database exports or standardised forms.
AIGuard's DLP engine deploys seven distinct ML model layers, each targeting a different class of sensitive information:
- PII entity recognition — trained to identify personal identifiers expressed in any format, including informal and paraphrased forms
- Financial data classifier — material financial information, earnings data, deal terms, compensation details
- Healthcare PHI detector — clinical information, patient identifiers, diagnostic data, prescription details
- Credential and secrets scanner — API keys, passwords, tokens, and private keys expressed in full or partial form
- Legal and IP classifier — attorney-client communications, trade secrets, patent-in-progress content, M&A target identifiers
- Source code classifier — proprietary code, algorithm descriptions, technical specifications
- Contextual risk scorer — a meta-model that combines signals from the other six layers and assesses overall prompt risk in context
The multi-layer architecture is important: no single model can reliably cover all sensitive data types, and combining their signals gives the contextual risk scorer enough information to distinguish between a genuinely risky prompt and a false positive.
The Multimodal Problem
Modern LLM interfaces accept more than text. GPT-4o, Claude 3.5 Sonnet, and Gemini 1.5 Pro all accept image inputs, and enterprise users frequently upload screenshots, scanned documents, and photographed whiteboards containing sensitive information. Legacy DLP has no capability to analyse image content at all — an employee photographing a confidential document and uploading it to ChatGPT is entirely invisible to text-based inspection.
Effective AI DLP requires multimodal scanning: OCR-based extraction of text from images followed by the same ML detection pipeline applied to text prompts. AIGuard applies this to all image uploads destined for AI providers, with particular focus on the file types most commonly associated with accidental sensitive data exposure: screenshots, PDFs, and JPEG scans of physical documents.
Response-Side DLP: Catching Model Hallucinations
One aspect of AI DLP that is almost entirely absent from legacy vendor thinking is the response side. LLMs can and do reproduce training data in their responses. This is most commonly observed as verbatim or near-verbatim reproduction of copyrighted text, but it extends to any data that appeared in a model's training corpus — including data that should never have been in that corpus to begin with.
There have been documented cases of GPT-4 reproducing fragments of real personal information, real source code from private repositories that were accidentally included in training data, and real financial figures from internal documents. The model doesn't "know" this information is sensitive. It reproduces it because it predicts it as the statistically appropriate continuation of the conversation.
Response-side DLP — scanning LLM outputs before they're delivered to the user — is the only way to catch this class of exposure. AIGuard scans all model responses in the proxy path, applying the same NER pipeline to outputs as to inputs, and blocks or redacts any response that contains high-confidence sensitive entity matches.
- Legacy DLP relies on regex, fingerprinting, and keyword matching — all three fail against freeform natural language LLM prompts.
- Sensitive data expressed in casual conversational form (the "semantic gap") is completely invisible to pattern-based detection systems.
- ML-based Named Entity Recognition trained on AI prompt corpora is required to close the semantic gap — a single model is insufficient; layered detection is essential.
- Multimodal scanning is necessary because employees routinely upload images containing sensitive information to AI tools, which text-only DLP cannot detect.
- Response-side DLP catches training data leakage in model outputs — a risk class entirely absent from legacy DLP architectures.
Deployment Without Disruption
One of the most common objections to deploying AI DLP is operational disruption — security teams worry that aggressive scanning will block legitimate work and generate a flood of user complaints. This is a legitimate concern that reflects real failures in legacy DLP deployments, where overly aggressive keyword filters blocked innocuous business communications.
Modern AI DLP should operate in a confidence-tiered model. High-confidence detections (a clearly identifiable SSN or API key) trigger immediate blocking with a user notification. Medium-confidence detections (a contextually suspicious but structurally ambiguous prompt) log and optionally route to manager review. Low-confidence signals feed the ML models' continuous learning pipeline without generating any operational friction.
The key is starting in monitor mode, building a baseline of normal prompt traffic for your organisation, and calibrating detection thresholds against that baseline before enabling enforcement. At AIGuard, we've found that organisations that follow this calibration approach reach stable enforcement configurations with false positive rates under 0.8% within the first 30 days of deployment — well within tolerance for most security programmes.
See AIGuard DLP detect what legacy tools miss
We'll run your sample prompt traffic through our DLP engine live and show you exactly what your current tools are missing.
Request a Demo