Skip to content
atlas

Data poisoning

Also known as: training data poisoning, model poisoning

Slipping false or harmful examples into the data an AI learns from so that it later behaves the way an attacker wants.

Draft - this entry has not been reviewed yet.

Formal

An attack on the integrity of machine learning in which an attacker adds, changes or wrongly labels examples in the training data so that the finished model makes chosen mistakes, often only when a secret trigger appears.

In plain English

Like secretly swapping a few pages in a student's textbook - they study hard, pass most tests, but give the wrong answer exactly where the pages were changed.

In practice

A pension fund trains a model to spot false claims partly on a public collection of examples; an attacker has planted hundreds of cases there marked “honest”, so claims with the same pattern later pass unchecked.

Why it matters

The damage sits inside the model and stays hidden until the trigger appears, so organisations must know and control where every piece of their training data comes from.

Technical deep dive

NIST AI 100-2 distinguishes poisoning by attacker goal: availability poisoning degrades the model broadly, targeted poisoning changes predictions on specific inputs, and backdoor poisoning implants a trigger that activates attacker-chosen behaviour while leaving clean accuracy intact. It also distinguishes by capability: control of labels, of data points, of the training procedure, or of the model itself (model poisoning, common in federated learning where clients submit updates). OWASP groups the LLM variants as LLM04:2025 Data and Model Poisoning, spanning pre-training corpora, fine-tuning sets, RLHF preference data and embeddings used for retrieval.

The classic backdoor is BadNets (Gu et al., 2017): stamp a small pixel pattern on a fraction of training images and relabel them to a target class; the trained network behaves normally until the pattern appears. Clean-label attacks (Shafahi et al., 2018, "Poison Frogs") avoid mislabelled samples altogether by crafting correctly labelled points whose features collide with a target, which defeats human label review. For web-scale data, Carlini et al. (2023) showed two practical routes: split-view poisoning, buying expired domains referenced in URL-list datasets such as LAION so that later downloads fetch attacker content (they estimated about USD 60 to control 0.01 % of LAION-400M), and front-running, timing malicious edits just before a Wikipedia snapshot. A 2025 study by Anthropic, the UK AI Security Institute and the Alan Turing Institute found that around 250 poisoned documents sufficed to implant a denial-of-service backdoor in LLMs from 600M to 13B parameters, suggesting the required number of samples stays roughly constant rather than scaling with dataset size.

Poisoning is hard to detect after the fact. Backdoored models pass standard benchmarks, and "sleeper agent" experiments (Hubinger et al., 2024) showed that supervised fine-tuning, RLHF and adversarial training did not reliably remove a conditional backdoor. Detection techniques - spectral signatures and activation clustering on training data, trigger reconstruction such as Neural Cleanse, loss-based outlier filtering - work for known trigger styles but offer no general guarantee.

The practical defence is therefore data governance: record provenance and licence for every dataset, pin snapshots by cryptographic hash rather than re-downloading URL lists, deduplicate and filter, limit and review contributions to fine-tuning and feedback data, keep holdout evaluation sets the data pipeline cannot touch, and red-team for trigger behaviour before release. The EU AI Act Art. 10 requires data governance for high-risk training data, and Art. 15(5) names data poisoning and model poisoning among the attacks high-risk systems must resist. Poisoning differs from adversarial examples, which fool a finished model at inference time, and from prompt injection, which manipulates context at run time; RAG poisoning - planting documents that a retriever will surface - sits between the two because it alters the data the model sees without retraining it.

What to learn first

Everything this builds on, foundations first.

  1. Training data
  2. →Model training
  3. →Data poisoning

Relationships

Causes
AI bias

Sources & further reading

Where this data comes from

This entry was drafted by an AI from the sources above and has not yet been checked by a person. Treat it as a starting point, and check anything important against the sources.

See the review queueSuggest a correction on GitHubThis term as JSON

Check yourself

Loading…

Atlas is in beta.