Home / Knowledge hub / Training data poisoning
Knowledge hub
Training data poisoning
Tainting the data a model learns from so it behaves wrongly later.
What it means
Training data poisoning means deliberately corrupting the data a model learns from, so the model picks up wrong facts, bias or a hidden behaviour. The tampering can happen in the original training set, in fine-tuning data, or in the documents later fed to the model.
Some poisoning is blunt and lowers quality. The worrying kind is a backdoor: the model behaves normally until it sees a specific trigger phrase, then produces what the attacker planted. Because it hides during normal testing, it is hard to notice.
Why it matters
If a model drives decisions, such as support answers, fraud scores or code suggestions, bad data can quietly change those decisions. You may ship a feature that looks fine in demos and fails on the one input an attacker prepared.
The cost shows up as wrong outputs, leaked content, or a model you have to retrain from a clean source. The OWASP list for large language model applications includes it, grouped with model poisoning in its 2025 edition, because data you did not write is data you cannot fully trust.
How it shows up
You meet the risk wherever you take data from outside: scraped web pages, public datasets, user feedback, uploaded documents, third-party models, and shared embeddings. Retrieval systems add a close cousin, where a poisoned document in the knowledge base shapes answers; see RAG security.
Reduce it with provenance. Know where each dataset came from, verify hashes and signatures where they exist, review data from untrusted sources, keep feedback loops from training on raw user input, and test models for strange behaviour on trigger-like inputs. Treat downloaded models like dependencies and pin versions.
Questions people ask
Training data poisoning, answered
Is data poisoning the same as prompt injection?
No. Poisoning changes the data a model learns from or retrieves, before the user's question. Prompt injection changes behaviour at the time of the request through the input.
Both can end in the same wrong answer.
Can a small amount of bad data matter?
Research has shown that a small share of altered examples can plant a backdoor in some setups. How much is enough depends on the model and the data.
Do not assume that volume protects you.
Does this affect us if we only use a hosted model?
Less for the base model, which your provider controls. It still applies to anything you add: fine-tuning data, uploaded documents, and feedback you retrain on.
Ask your provider how they handle the rest.
How do we detect poisoning?
Look for odd behaviour on specific inputs, sudden quality drops after a data update, and changes in outputs that trace to a new source.
Keep clean evaluation sets that untrusted data never touches.
What is the simplest control to start with?
Know and record where your data comes from, and block untrusted sources from flowing straight into training or a knowledge base.
A reviewed pipeline beats a clever detector. Provenance first, detection second.
Sources
Where this comes from
Related
Terms that sit next to this one
Model theft
Copying a proprietary model by extracting its weights or imitating its answers.
RAG security
Controlling what a retrieval-based AI assistant can fetch and show to each person.
OWASP LLM Top 10
The OWASP list of the main security risks in applications built on language models.
Supply chain attack
Reaching you through a library, a build tool or a vendor you trust.
AI data leakage
A model or its logs exposing private data that went into prompts or training.
What can outside data change?
If users or third parties can feed content into your product's model or knowledge base, we check what that content can reach and prove what we find with the request and the response. Ask us to run it on one of your applications.
Or start with a $199 pilot on one application: thirty days, success criteria agreed before day one, credited against the annual if you convert.