Data Poisoning
An AI security attack that mixes manipulated material into a model's training, fine-tuning or embedding data to plant vulnerabilities, backdoors or bias.
What does Data Poisoning mean in simple terms?
AI models learn patterns by reading large amounts of data. Data poisoning is an attack that deliberately mixes contaminated material into that training data so the model learns the wrong habits. Planting a hidden trigger that makes the model give strange answers whenever a certain word appears is called a backdoor. Because large language models learn heavily from public text on the internet, the problem is that anything anyone posts can end up in the training data. The same principle applies when a company fine-tunes on its own documents or builds a RAG knowledge base.
How can Data Poisoning be explained with an analogy?
It is like someone secretly slipping a note saying "use sugar instead of salt" into the recipe book a chef follows.
Where is Data Poisoning used?
Anthropic, the UK AI Security Institute and the Alan Turing Institute — The 250-document experiment
On October 9, 2025, Anthropic released joint research showing that as few as 250 malicious documents can create a backdoor in a large language model.[1] The experiments covered models from 600 million to 13 billion parameters, and 250 documents amounted to 0.00016% of the training tokens.[1]
Result: Showed that the number of documents needed for poisoning may stay nearly constant regardless of model size (for a narrow backdoor that outputs gibberish after a specific phrase).[1]
OWASP — Classified as LLM04 in the top 10 LLM risks
In its 2025 list, the OWASP Gen AI Security Project places data and model poisoning at LLM04 and defines it as pre-training, fine-tuning or embedding data being manipulated to introduce vulnerabilities, backdoors or bias.[2] It also warns that model files containing malicious code can spread through shared model repositories.[2]
Result: Set out checks such as verifying the origin of training data and restricting access as a shared industry baseline (per the OWASP 2025 list).[2]
Learning steps, limitations and developments
- List the source and author of each document you use for fine-tuning or RAG.
- Do not connect wikis or shared folders that anyone can edit directly to a knowledge base.[2]
- If you receive a model file from an external source, verify that it came from the official distribution channel.[2]
- If important answers suddenly go wrong, check the most recently added material first.
The Anthropic experiment dealt with a narrow backdoor that makes the model output gibberish, so it has not yet been confirmed whether the same result holds for more complex malicious behavior.[1] Still, the fact that a small amount of contamination can have an effect makes one implication clear: managing where training material comes from matters more than how much of it there is.
How has Data Poisoning evolved?
Which concepts are related to Data Poisoning?
- Attack pointPre-trainingContamination slips in while learning from public web material
- Attack pointFine-tuningThe same risk applies to extra training on company material
- Related architectureRetrieval-Augmented GenerationAnswers waver when knowledge base documents are contaminated
- ResponseRed TeamingAttack testing to find hidden backdoors
Data Poisoning vs Prompt Injection
Which sources explain Data Poisoning?
- Anthropic — A small number of samples can poison LLMs of any size (2025-10-09) — https://www.anthropic.com/research/small-samples-poison
- OWASP Gen AI Security Project — LLM04:2025 Data and Model Poisoning (2025) — https://genai.owasp.org/llmrisk/llm042025-data-and-model-poisoning/
Tell us what you think
Your feedback helps us improve the content.