Data poisoning
Definition
Tampering with the data used to train a model or build its retrieval index, so that it learns false, biased or hidden behaviour.
In more detail
OWASP lists data and model poisoning among its top risks for LLM applications. The hardest form is a backdoor: the model behaves normally until a trigger appears, which makes the problem hard to find by testing. A simpler case is someone planting false documents in data you later train on or index for RAG.
Unlike prompt injection, which acts at the moment of a request, poisoning is built in before anyone asks a question. Defences are about provenance: know where training and retrieval data came from, version your datasets, vet suppliers and red-team the model before release.
Related terms
Context poisoning
When a wrong fact, hallucination or bad tool result enters an agent's context and keeps steering later steps in the wrong direction.
Fine-tuning
Further training a pretrained model on task-specific examples to change its behaviour, format or style, rather than its general knowledge.
OWASP Top 10 for LLM Applications
OWASP's list of the most critical security risks in LLM applications, such as prompt injection and excessive agency.
Prompt injection
Input that overrides or subverts a model's instructions, either typed in directly or hidden in content the model reads while it works.
Read more about Data poisoning
- OWASP Top 10 for LLM applications, explained with examples
The 2026 OWASP Top 10 for LLM applications in plain language, with an agent-era example and a practical fix for each risk, plus what changed from 2025.
- AI security
Defending against prompt injection, data leakage and over-permissioned agents.
- Red-teaming
Deliberately attacking an AI system to find harmful, insecure or embarrassing behaviour before real users or attackers can find it.