Table of Contents

Related Content

Build Privacy-Aware AI Agents With Google ADK

Watch our webinars
No items found.

AI Data Security: What Breaks When Sensitive Data Meets LLMs

August 25, 2026

Modern AI security requires a fundamental rethinking of the places where sensitive data lives and how agents uniquely interact with that data. With this in mind, modern AI data security controls sensitive data at three key places in an AI’s infrastructure: memorization during training, instructions and data sharing in one token stream during inference, and unreviewed output at generation.

This article maps where sensitive data gets exposed across the LLM lifecycle, details the specific attack and governance failures behind that exposure, and lays out the techniques and runtime controls that keep sensitive data protected.

What Is AI Data Security?

AI data security governs sensitive data, meaning PII, PCI, PHI, source code, and intellectual property, at every stage an AI system touches it: collection, training, fine-tuning, retrieval, inference, and output. Traditional data security protects data sitting in a known location with deterministic access, a database with a schema, with access control lists, and in audit logs, where each request either matches policy or fails.

Three moments have no equivalent in traditional data security:

  • Training absorbs records into model weights where no scanner or encryption reaches them.
  • Inference accepts natural-language input that can carry instructions, which NIST SP 800-218A traces to the "blurring of traditional boundaries between system code and system data" and the "use of plain human language as the means of interaction with the systems."
  • Output can surface memorized records or inferred attributes that no upstream system provided.

Existing controls, built to inspect data crossing a boundary or decide who reads a table, don't reach any of these three, so the control point has to move to runtime AI data flows.

Where the LLM Lifecycle Exposes Sensitive Data

Each lifecycle stage carries documented attack techniques with formal identifiers. MITRE ATLAS and NIST AI 100-2e2025 catalog many of them:

Lifecycle stage What's exposed Documented technique or finding
Pre-training Poisoned or sensitive records enter the corpus and persist in weights MITRE ATLAS AML.T0020 (Poison Training Data) and AML.T0019 (Publish Poisoned Datasets)
Fine-tuning Narrow datasets concentrate sensitive records; fine-tuning APIs open extraction paths The Janus attack extracted 699 of 1,000 target email addresses from gpt-3.5-turbo after fine-tuning on only 10 PII association pairs
Testing and distribution Evaluation teams that pull models from shared repositories can import embedded risks into evaluation environments OWASP LLM04 warns that malicious pickling "can execute harmful code when the model is loaded"
Inference Repeated querying extracts training data, system prompts, and model internals MITRE ATLAS AML.T0024 (Exfiltration via AI Inference API); fewer than 20 queries extract system prompts from over 80 percent of GPT-3.5 and GPT-4 targets

Three Ways Attackers Expose Sensitive Data through LLMs

OWASP's LLM Top 10 ranks prompt injection first (LLM01) and data and model poisoning fourth (LLM04). Each of the three vectors below is a mechanism attackers use to turn an LLM into a channel for sensitive data hacking. Simply put, this is not a flaw traditional data controls were built to catch.

Prompt Injection Hijacks What the Model Receives

Prompt injection hijacks the model's input, either directly through the user's own prompt or indirectly through retrieved content: a webpage, a file, an email. OWASP defines it as occurring "when user prompts alter the LLM's behavior or output in unintended ways."

Input validation fails against both variants because there's nothing structural to validate against: instructions can be split across inputs, encoded, or hidden in an image next to benign text. Security architecture that assumes injection will happen, and limits what an injected model can reach, holds up better than one which assumes that a filter will catch the payload.

Poisoned Training Data Corrupts What the Model Has Already Learned

OWASP LLM04 defines data poisoning as manipulation of "pre-training, fine-tuning, or embedding data" to "introduce vulnerabilities, backdoors, or biases," classified as an integrity attack. Poisoning can install a backdoor that leaves "the model's behavior untouched until a certain trigger causes it to change," a pattern OWASP calls a sleeper agent.

Poisoning differs from data drift in intent and persistence. Drift is a statistical property: production inputs move away from the training distribution over time, accuracy degrades gradually, and monitoring catches it. Poisoning is deliberate, can lie dormant until a trigger fires, and lives in the weights rather than in incoming data, so retraining on the same corrupted corpus reproduces it.

Models Memorize and Can Be Made to Repeat Training Data

LLMs memorize fragments of their training data and can be prompted to repeat them back verbatim, including sensitive data records. The ChatGPT extraction study recovered over 10,000 verbatim training examples for $200 in queries, some copied 50 tokens at a time straight from the training set. It’s a lot cheaper than ever before to conduct what was once a more sophisticated and costly attack.

The same exposure covers source code and copyrighted text, not just PII. Any sensitive record in a training or fine-tuning corpus is a latent output waiting for the right query.

Shadow AI Turns Every Ungoverned Prompt into a Data Export

Shadow AI is the newest form of shadow IT, and especially in enterprises with thousands of people, employees can find and adopt ungoverned tools faster than IT policy can track.

Unsanctioned Tools Retain Prompts by Default

The retention and training terms that apply to a given prompt depend on which account tier the employee happened to sign up with, not on any governance decision. The difference between tiers and companies is stark:

  • Google Gemini (unpaid tier): trains on submitted content and permits human review of input and output, per Google's terms.
  • Google Gemini (paid tier): does not use prompts or responses to improve Google's products, with 55-day log retention.
  • OpenAI: API data has not been used for training since March 2023; inputs are retained for up to 30 days for abuse monitoring.
  • Anthropic: does not use inputs or outputs to train models by default, per its commercial policy.

Source code pasted into a free-tier personal account can become training data under every vendor's published terms, and the memorization research above describes what happens next.

Sanctioned Tools Carry the Same Risk without Governance

Sanctioned tools carry the same prompt-retention risk as unsanctioned ones, just without anyone checking. Approving a tool doesn't govern the data flowing into it: for example, Microsoft 365 Copilot doesn't train foundation LLMs on enterprise prompts. The consumer version of the same brand behaves differently: Microsoft's privacy controls confirm that consumer Copilot data can train Microsoft's AI models unless the user opts out. An approval that says "Copilot" without specifying which product and which policy leaves the actual data-handling terms unverified.

This puts the onus on CISO’s to implement better data security protections to protect their most sensitive data and reduce risk.

Preventing Sensitive Data from Entering the Model

Tokenizing or transforming sensitive data before it reaches a training corpus or a prompt limits what a model can memorize or leak.

Anonymization vs. Pseudonymization

Pseudonymization and anonymization protect data through two different mechanisms, and mixing them up has real legal consequences. Under GDPR Article 4(5), pseudonymization means processing personal data so it "can no longer be attributed to a specific data subject without the use of additional information" kept separately under technical safeguards, so pseudonymized data remains personal data and unauthorized reversal is a reportable breach.

Pseudonymization fits workflows that need re-identification, such as a support agent resolving a specific customer's ticket: it preserves utility and reversibility, at the cost of staying in regulatory scope with a high-value mapping to protect. Anonymization exits regulatory scope at the cost of irreversibility and degraded utility, and even that guarantee is eroding.

How Skyflow Keeps Sensitive Data Out of LLMs

Preventing sensitive data from getting into LLMs takes more than picking one technique. It takes discovering every model, agent, and pipeline handling sensitive data, classifying sensitive fields before they reach a training corpus, a RAG index, or a prompt.

It also requires enforcing policy at the point data moves rather than at the perimeter, with an audit trail behind every access decision, and log to protect the integrity of that access.

Skyflow’s Runtime AI Data Control Platform determines what sensitive data flows to AI systems at runtime or the moment of access. It complements posture tools rather than replacing them: DSPM maps what data exists, and AI-SPM maps what AI assets exist, while Skyflow controls the data itself while requests execute.

Applied to LLMs and agents, including MCP servers, Skyflow does this in four steps:

  • Detects sensitive fields in structured and unstructured inputs before they reach the model, including text, audio, images, and PDFs through the Detect API's deidentifyText and deidentifyFile operations.
  • Redacts or tokenizes by policy instead of blocking the request, so the workflow completes without carrying raw values.
  • Preserves context through tokenization, so Maria stays distinguishable from John and a patient from a physician, letting the model reason accurately over protected data instead of collapsing everything to a generic "NAME" label.
  • Rehydrates by role on the response path: an auditor gets plaintext, a support agent gets masked values, and every decision lands in an audit log with policy context.

Skyflow does not prevent breaches; it shrinks their blast radius and eliminates the damage they can do, because a compromised downstream system yields tokens rather than exploitable PII, PCI, or PHI, often rendering the underlying data useless to bad actors.

Get Started with AI Data Security

AI data security moves the control point from static stores to runtime data flows because training memorizes sensitive content, inference creates prompt-injection and extraction paths, and shadow AI turns unmanaged prompts into external data transfers. Pre-model techniques such as pseudonymization, anonymization, and synthetic data reduce what reaches the model, but each carries utility and privacy limits.

The durable approach is control at the moment of access. Sensitive data needs classification before it enters AI systems. Policy enforcement and audit evidence then have to follow each access decision. That is the infrastructure layer that lets production AI use governed data without treating every prompt as an all-or-nothing security decision.

Book a demo for a deeper look at how tokenization fits into the runtime layer.

Frequently Asked Questions about AI Data Security

What Makes AI Data Security Different from Traditional Data Security?

Traditional controls assume data sits in known stores with deterministic access. LLMs copy data into model weights, accept input where instructions and data are indistinguishable, and produce probabilistic outputs that can contain memorized records, so control has to move to runtime data flows rather than input filters.

What Is AI-SPM and How Does It Differ from DSPM?

AI-SPM discovers and inventories AI assets, models, agents, prompts, and pipelines, then assesses their misconfigurations and supply-chain risk. DSPM does the same job for data itself, discovering, classifying, and assessing exposure risk across structured and unstructured stores, and the two converge where the training data is itself sensitive.

How Does Shadow AI Expose Corporate Data without Triggering Existing Controls?

Employees submit prompts through personal accounts whose vendor terms can permit retention, human review, and training on submitted content, as Netskope found for nearly half of genAI users. Sanctioned tools carry the same risk without governance: Microsoft 365 Copilot stores every prompt in Exchange Online, and per IBM, one in five organizations has already had a breach involving shadow AI.

Can Privacy-Preserving Techniques Reduce Risk Before Data Enters a Model?

Yes. Pseudonymization keeps data usable and reversible but stays within GDPR scope; anonymization exits scope but degrades utility; and synthetic data cuts membership inference risk to roughly a third of real-data levels while retaining most predictive utility.

Related Content

How to Ensure AI Data Governance for Enterprises

Related Content

How to Ensure AI Data Governance for Enterprises

AI Data Security: What Breaks When Sensitive Data Meets LLMs

August 25, 2026

Modern AI security requires a fundamental rethinking of the places where sensitive data lives and how agents uniquely interact with that data. With this in mind, modern AI data security controls sensitive data at three key places in an AI’s infrastructure: memorization during training, instructions and data sharing in one token stream during inference, and unreviewed output at generation.

This article maps where sensitive data gets exposed across the LLM lifecycle, details the specific attack and governance failures behind that exposure, and lays out the techniques and runtime controls that keep sensitive data protected.

What Is AI Data Security?

AI data security governs sensitive data, meaning PII, PCI, PHI, source code, and intellectual property, at every stage an AI system touches it: collection, training, fine-tuning, retrieval, inference, and output. Traditional data security protects data sitting in a known location with deterministic access, a database with a schema, with access control lists, and in audit logs, where each request either matches policy or fails.

Three moments have no equivalent in traditional data security:

  • Training absorbs records into model weights where no scanner or encryption reaches them.
  • Inference accepts natural-language input that can carry instructions, which NIST SP 800-218A traces to the "blurring of traditional boundaries between system code and system data" and the "use of plain human language as the means of interaction with the systems."
  • Output can surface memorized records or inferred attributes that no upstream system provided.

Existing controls, built to inspect data crossing a boundary or decide who reads a table, don't reach any of these three, so the control point has to move to runtime AI data flows.

Where the LLM Lifecycle Exposes Sensitive Data

Each lifecycle stage carries documented attack techniques with formal identifiers. MITRE ATLAS and NIST AI 100-2e2025 catalog many of them:

Lifecycle stage What's exposed Documented technique or finding
Pre-training Poisoned or sensitive records enter the corpus and persist in weights MITRE ATLAS AML.T0020 (Poison Training Data) and AML.T0019 (Publish Poisoned Datasets)
Fine-tuning Narrow datasets concentrate sensitive records; fine-tuning APIs open extraction paths The Janus attack extracted 699 of 1,000 target email addresses from gpt-3.5-turbo after fine-tuning on only 10 PII association pairs
Testing and distribution Evaluation teams that pull models from shared repositories can import embedded risks into evaluation environments OWASP LLM04 warns that malicious pickling "can execute harmful code when the model is loaded"
Inference Repeated querying extracts training data, system prompts, and model internals MITRE ATLAS AML.T0024 (Exfiltration via AI Inference API); fewer than 20 queries extract system prompts from over 80 percent of GPT-3.5 and GPT-4 targets

Three Ways Attackers Expose Sensitive Data through LLMs

OWASP's LLM Top 10 ranks prompt injection first (LLM01) and data and model poisoning fourth (LLM04). Each of the three vectors below is a mechanism attackers use to turn an LLM into a channel for sensitive data hacking. Simply put, this is not a flaw traditional data controls were built to catch.

Prompt Injection Hijacks What the Model Receives

Prompt injection hijacks the model's input, either directly through the user's own prompt or indirectly through retrieved content: a webpage, a file, an email. OWASP defines it as occurring "when user prompts alter the LLM's behavior or output in unintended ways."

Input validation fails against both variants because there's nothing structural to validate against: instructions can be split across inputs, encoded, or hidden in an image next to benign text. Security architecture that assumes injection will happen, and limits what an injected model can reach, holds up better than one which assumes that a filter will catch the payload.

Poisoned Training Data Corrupts What the Model Has Already Learned

OWASP LLM04 defines data poisoning as manipulation of "pre-training, fine-tuning, or embedding data" to "introduce vulnerabilities, backdoors, or biases," classified as an integrity attack. Poisoning can install a backdoor that leaves "the model's behavior untouched until a certain trigger causes it to change," a pattern OWASP calls a sleeper agent.

Poisoning differs from data drift in intent and persistence. Drift is a statistical property: production inputs move away from the training distribution over time, accuracy degrades gradually, and monitoring catches it. Poisoning is deliberate, can lie dormant until a trigger fires, and lives in the weights rather than in incoming data, so retraining on the same corrupted corpus reproduces it.

Models Memorize and Can Be Made to Repeat Training Data

LLMs memorize fragments of their training data and can be prompted to repeat them back verbatim, including sensitive data records. The ChatGPT extraction study recovered over 10,000 verbatim training examples for $200 in queries, some copied 50 tokens at a time straight from the training set. It’s a lot cheaper than ever before to conduct what was once a more sophisticated and costly attack.

The same exposure covers source code and copyrighted text, not just PII. Any sensitive record in a training or fine-tuning corpus is a latent output waiting for the right query.

Shadow AI Turns Every Ungoverned Prompt into a Data Export

Shadow AI is the newest form of shadow IT, and especially in enterprises with thousands of people, employees can find and adopt ungoverned tools faster than IT policy can track.

Unsanctioned Tools Retain Prompts by Default

The retention and training terms that apply to a given prompt depend on which account tier the employee happened to sign up with, not on any governance decision. The difference between tiers and companies is stark:

  • Google Gemini (unpaid tier): trains on submitted content and permits human review of input and output, per Google's terms.
  • Google Gemini (paid tier): does not use prompts or responses to improve Google's products, with 55-day log retention.
  • OpenAI: API data has not been used for training since March 2023; inputs are retained for up to 30 days for abuse monitoring.
  • Anthropic: does not use inputs or outputs to train models by default, per its commercial policy.

Source code pasted into a free-tier personal account can become training data under every vendor's published terms, and the memorization research above describes what happens next.

Sanctioned Tools Carry the Same Risk without Governance

Sanctioned tools carry the same prompt-retention risk as unsanctioned ones, just without anyone checking. Approving a tool doesn't govern the data flowing into it: for example, Microsoft 365 Copilot doesn't train foundation LLMs on enterprise prompts. The consumer version of the same brand behaves differently: Microsoft's privacy controls confirm that consumer Copilot data can train Microsoft's AI models unless the user opts out. An approval that says "Copilot" without specifying which product and which policy leaves the actual data-handling terms unverified.

This puts the onus on CISO’s to implement better data security protections to protect their most sensitive data and reduce risk.

Preventing Sensitive Data from Entering the Model

Tokenizing or transforming sensitive data before it reaches a training corpus or a prompt limits what a model can memorize or leak.

Anonymization vs. Pseudonymization

Pseudonymization and anonymization protect data through two different mechanisms, and mixing them up has real legal consequences. Under GDPR Article 4(5), pseudonymization means processing personal data so it "can no longer be attributed to a specific data subject without the use of additional information" kept separately under technical safeguards, so pseudonymized data remains personal data and unauthorized reversal is a reportable breach.

Pseudonymization fits workflows that need re-identification, such as a support agent resolving a specific customer's ticket: it preserves utility and reversibility, at the cost of staying in regulatory scope with a high-value mapping to protect. Anonymization exits regulatory scope at the cost of irreversibility and degraded utility, and even that guarantee is eroding.

How Skyflow Keeps Sensitive Data Out of LLMs

Preventing sensitive data from getting into LLMs takes more than picking one technique. It takes discovering every model, agent, and pipeline handling sensitive data, classifying sensitive fields before they reach a training corpus, a RAG index, or a prompt.

It also requires enforcing policy at the point data moves rather than at the perimeter, with an audit trail behind every access decision, and log to protect the integrity of that access.

Skyflow’s Runtime AI Data Control Platform determines what sensitive data flows to AI systems at runtime or the moment of access. It complements posture tools rather than replacing them: DSPM maps what data exists, and AI-SPM maps what AI assets exist, while Skyflow controls the data itself while requests execute.

Applied to LLMs and agents, including MCP servers, Skyflow does this in four steps:

  • Detects sensitive fields in structured and unstructured inputs before they reach the model, including text, audio, images, and PDFs through the Detect API's deidentifyText and deidentifyFile operations.
  • Redacts or tokenizes by policy instead of blocking the request, so the workflow completes without carrying raw values.
  • Preserves context through tokenization, so Maria stays distinguishable from John and a patient from a physician, letting the model reason accurately over protected data instead of collapsing everything to a generic "NAME" label.
  • Rehydrates by role on the response path: an auditor gets plaintext, a support agent gets masked values, and every decision lands in an audit log with policy context.

Skyflow does not prevent breaches; it shrinks their blast radius and eliminates the damage they can do, because a compromised downstream system yields tokens rather than exploitable PII, PCI, or PHI, often rendering the underlying data useless to bad actors.

Get Started with AI Data Security

AI data security moves the control point from static stores to runtime data flows because training memorizes sensitive content, inference creates prompt-injection and extraction paths, and shadow AI turns unmanaged prompts into external data transfers. Pre-model techniques such as pseudonymization, anonymization, and synthetic data reduce what reaches the model, but each carries utility and privacy limits.

The durable approach is control at the moment of access. Sensitive data needs classification before it enters AI systems. Policy enforcement and audit evidence then have to follow each access decision. That is the infrastructure layer that lets production AI use governed data without treating every prompt as an all-or-nothing security decision.

Book a demo for a deeper look at how tokenization fits into the runtime layer.

Frequently Asked Questions about AI Data Security

What Makes AI Data Security Different from Traditional Data Security?

Traditional controls assume data sits in known stores with deterministic access. LLMs copy data into model weights, accept input where instructions and data are indistinguishable, and produce probabilistic outputs that can contain memorized records, so control has to move to runtime data flows rather than input filters.

What Is AI-SPM and How Does It Differ from DSPM?

AI-SPM discovers and inventories AI assets, models, agents, prompts, and pipelines, then assesses their misconfigurations and supply-chain risk. DSPM does the same job for data itself, discovering, classifying, and assessing exposure risk across structured and unstructured stores, and the two converge where the training data is itself sensitive.

How Does Shadow AI Expose Corporate Data without Triggering Existing Controls?

Employees submit prompts through personal accounts whose vendor terms can permit retention, human review, and training on submitted content, as Netskope found for nearly half of genAI users. Sanctioned tools carry the same risk without governance: Microsoft 365 Copilot stores every prompt in Exchange Online, and per IBM, one in five organizations has already had a breach involving shadow AI.

Can Privacy-Preserving Techniques Reduce Risk Before Data Enters a Model?

Yes. Pseudonymization keeps data usable and reversible but stays within GDPR scope; anonymization exits scope but degrades utility; and synthetic data cuts membership inference risk to roughly a third of real-data levels while retaining most predictive utility.