Skip to content

AI Glossary · Security & attacks

What is Data Poisoning?

Data Poisoning

Data poisoning is an attack that inserts or alters the data a model learns from or retrieves, such as training, fine-tuning or retrieval data, to change its behavior. It may degrade overall performance or target particular outputs; a hidden trigger is one possible outcome.

Also known as: training data poisoning

· Updated · Chain of Thought

AI SecurityAI Evaluation & Reliability

  • 1 explainer
  • 3 sources

Most AI security attention goes to the prompt, but a model is only as trustworthy as the data it learned from. Data poisoning attacks that layer: an adversary slips corrupted or malicious examples into training, fine-tuning, or retrieval data and shapes the model’s behavior before it serves a request. That timing separates it from an evasion attack, which alters inputs at inference time. OWASP lists it for LLM applications as LLM04:2025, Data and Model Poisoning, covering pre-training, fine-tuning and embedding data, and classes it as an integrity attack (OWASP, LLM04:2025 Data and Model Poisoning). NIST’s taxonomy of adversarial machine learning notes that data poisoning attacks apply to every learning paradigm (NIST AI 100-2e2025, Adversarial Machine Learning).

Web-scale training data makes it practical. Nicholas Carlini and coauthors showed two attacks on datasets built from the open internet (Poisoning Web-Scale Training Datasets is Practical). Split-view poisoning exploits the fact that a dataset is a list of URLs: content can change between the time the dataset is assembled and the time someone downloads it, for example after the domain behind a link expires and is bought. They estimate they could have poisoned 0.01% of the LAION-400M or COYO-700M image datasets for about $60. Frontrunning poisoning targets datasets built from periodic snapshots of crowd-sourced sites such as Wikipedia, where an attacker only needs a malicious edit to be live at snapshot time.

The damage is quiet. A poisoned model can pass ordinary evaluation while carrying a bias or a hidden trigger; OWASP notes that poisoning can implant a backdoor that leaves behavior unchanged until a trigger appears. For most teams the exposure is less in pre-training than in what they control: fine-tuning sets, feedback loops, and the documents a RAG system retrieves from, where a planted document works like context poisoning. OWASP’s mitigations start with provenance: track where data came from and how it was transformed, and vet data vendors. Restricting who can write to training and retrieval sources closes the gaps OWASP lists as vulnerabilities. Against split-view poisoning, Carlini’s team proposed distributing cryptographic hashes of all content so later downloads can be checked against what the maintainers indexed; six of the ten affected datasets adopted it. What is context poisoning? covers the retrieval-time version.

Trace the changed artifact to its consumer

When an assistant’s answers change after an update, poisoning is one hypothesis among several, and the first job is to find what changed. Suppose three candidates:

ChangedUsed inCheck
Training dataLearningDataset version and the checkpoint trained on it
Retrieved textContextSource version, index version and the request that pulled it
Model weightsServingArtifact origin and digest of what was loaded

The same wrong answer can come from any of the three, and from an ordinary data error or an authorized update as well as an attack. Editing a document a RAG system retrieves changes the context for later answers without touching the model’s weights; if those documents also feed fine-tuning, that is a second path to check.

Remediation has to land on the layer that changed. Deleting a poisoned file from the source does not change a checkpoint already trained on it, so retrain or roll back, then rerun the failing cases against a known-good baseline with the model, index and data versions recorded.

Sources

Go deeper