Table of Contents

Related Content

Zero Should Mean Zero in ZDR

Watch our webinars
No items found.

AI Data Security: What Breaks When Sensitive Data Meets LLMs

August 26, 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
  • 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 stage moves sensitive data somewhere existing controls were not designed to reach.

Lifecycle stage What's exposed Why existing controls don't reach it
Training Sensitive records enter the corpus and persist in weights A database can be encrypted. A weight cannot. Once a record is in there, no scanner finds it and no delete request removes it.
Fine-tuning Training APIs can surface records the model absorbed earlier and appeared to have forgotten Access control decides who calls the API, not what the model remembers. The Janus attack extracted 699 of 1000 target email addresses from gpt-3.5-turbo after fine-tuning on only 10 examples
Inference Prompts carry instructions and data in the same input The model reads both as one block of text. Nothing marks where data ends and an instruction begins, so a filter has nothing to check.
Outputs Generation returns records no upstream system supplied DLP watches data leave a system. This data was never in a system. It came out of the model.

Three Ways Attackers Expose Sensitive Data through LLMs

Each of the vectors below is a mechanism attackers use to turn an LLM into a channel for sensitive data hacking. This is not a flaw traditional data controls were built to catch.

1. 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."

2. 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.

3. 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 10k 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 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. 
  • 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.

This puts the onus on CISOs 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. When it comes to pseudonymized data, it stays in regulatory scope and requires protecting the mapping. Anonymized data leaves scope but loses utility.

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, and 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.

Skyflow’s Runtime AI Data Control Platform controls what sensitive data flows to AI systems at runtime (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 tokenizes sensitive data before it reaches downstream systems. Powered by polymorphic encryption, the sensitive data transforms into useless tokens for attackers trying to breach a system. Attackers can't sell what they can't read. It is not through better walls, but with better architecture that sensitive data can be secured.

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 protect data sitting in a known place with clear access rules. AI breaks both assumptions: models absorb data directly into their weights, can't reliably tell instructions apart from data in a prompt, and generate outputs that can leak memorized records. That means protection has to happen at the point data flows into and out of the model.

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

Employees paste sensitive data into personal AI accounts whose usage terms often allow the vendor to retain it, review it, or train on it. Sanctioned tools aren't automatically safer. AI tools tend to store every prompt by default. IBM Research found that 1 in 5 organizations have already had a breach involving shadow AI.

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

Yes, but each comes with a tradeoff:

  • Pseudonymization: reversible, keeps data usable, but still falls under GDPR
  • Anonymization: exits GDPR scope, but degrades the data's usefulness
  • Synthetic data: reduces re-identification risk, but doesn't eliminate it; how much depends on the generator and the source dataset

Related Content

Data Governance

Zero Should Mean Zero in ZDR

Related Content

Zero Should Mean Zero in ZDR

AI Data Security: What Breaks When Sensitive Data Meets LLMs

August 26, 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
  • 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 stage moves sensitive data somewhere existing controls were not designed to reach.

Lifecycle stage What's exposed Why existing controls don't reach it
Training Sensitive records enter the corpus and persist in weights A database can be encrypted. A weight cannot. Once a record is in there, no scanner finds it and no delete request removes it.
Fine-tuning Training APIs can surface records the model absorbed earlier and appeared to have forgotten Access control decides who calls the API, not what the model remembers. The Janus attack extracted 699 of 1000 target email addresses from gpt-3.5-turbo after fine-tuning on only 10 examples
Inference Prompts carry instructions and data in the same input The model reads both as one block of text. Nothing marks where data ends and an instruction begins, so a filter has nothing to check.
Outputs Generation returns records no upstream system supplied DLP watches data leave a system. This data was never in a system. It came out of the model.

Three Ways Attackers Expose Sensitive Data through LLMs

Each of the vectors below is a mechanism attackers use to turn an LLM into a channel for sensitive data hacking. This is not a flaw traditional data controls were built to catch.

1. 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."

2. 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.

3. 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 10k 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 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. 
  • 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.

This puts the onus on CISOs 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. When it comes to pseudonymized data, it stays in regulatory scope and requires protecting the mapping. Anonymized data leaves scope but loses utility.

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, and 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.

Skyflow’s Runtime AI Data Control Platform controls what sensitive data flows to AI systems at runtime (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 tokenizes sensitive data before it reaches downstream systems. Powered by polymorphic encryption, the sensitive data transforms into useless tokens for attackers trying to breach a system. Attackers can't sell what they can't read. It is not through better walls, but with better architecture that sensitive data can be secured.

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 protect data sitting in a known place with clear access rules. AI breaks both assumptions: models absorb data directly into their weights, can't reliably tell instructions apart from data in a prompt, and generate outputs that can leak memorized records. That means protection has to happen at the point data flows into and out of the model.

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

Employees paste sensitive data into personal AI accounts whose usage terms often allow the vendor to retain it, review it, or train on it. Sanctioned tools aren't automatically safer. AI tools tend to store every prompt by default. IBM Research found that 1 in 5 organizations have already had a breach involving shadow AI.

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

Yes, but each comes with a tradeoff:

  • Pseudonymization: reversible, keeps data usable, but still falls under GDPR
  • Anonymization: exits GDPR scope, but degrades the data's usefulness
  • Synthetic data: reduces re-identification risk, but doesn't eliminate it; how much depends on the generator and the source dataset