Training data poisoning — OWASP LLM03 explained
Training data poisoning plants a backdoor before the model ever ships. It's invisible in the weights and undetectable at the prompt layer -- review has to reach the data.
Prompt injection gets the attention because it happens at the interface a reviewer can actually see — the prompt, the retrieved document, the tool output. Training data poisoning happens earlier, in a stage most application-layer reviews never reach: the corpus the model, or the fine-tune, was trained on. By the time an assessed system reaches review, the poisoned examples are gone. Only their effect on the weights remains.
OWASP LLM03 is the taxonomy's name for this: malicious or manipulated content introduced into training data that produces backdoors, biases, or vulnerabilities in the resulting model. For most teams using a foundation model without fine-tuning, this is a vendor-inherited risk. For teams that fine-tune, it is a control surface they own directly and one that most AI security reviews we have assessed treat as a single checkbox rather than a reviewed process.
What LLM03 actually covers
It is easy to conflate training data poisoning with retrieval poisoning — both involve malicious content reaching the model through data rather than through the prompt. They are different attack surfaces with different owners and different controls.
Training data poisoning (LLM03, this post) corrupts the data used to train or fine-tune the model itself. The poisoned content becomes part of the model's learned weights — permanent until the model is retrained.
Retrieval poisoning corrupts the knowledge base a RAG system queries at inference time. The model's weights are untouched; the poisoned content is retrieved fresh on each query. See data poisoning in RAG knowledge bases for that surface — the controls do not transfer between the two.
Two surfaces: foundation model vs fine-tuning
Foundation model training. Almost no enterprise application team trains a foundation model from scratch. The training corpus — typically hundreds of billions of tokens of web-scraped and licensed text — is the model provider's responsibility, and its exact composition is rarely fully disclosed. The practical control here is not technical; it is contractual and evidentiary: the provider's public statements on training data curation, any red-team results specific to poisoning or backdoor behavior, and contractual commitments that survive a vendor security review.
Fine-tuning. Once an organization fine-tunes a foundation model on its own data — support transcripts, internal documents, labeled examples, RLHF-style preference pairs — poisoning becomes a control the organization owns directly. Every example in that dataset contributes to the resulting model's behavior, and a small number of adversarial examples is sufficient to plant a targeted backdoor without measurably affecting overall quality metrics.
This is the surface most reviews under-scope. Teams document that a fine-tune happened and report the resulting eval scores, but rarely produce a record of where each training example came from, who could have contributed to the dataset, and whether the dataset was reviewed for anomalous or adversarial content before training started.
Backdoor vs availability poisoning
Not all training data poisoning has the same objective, and the objective determines how hard the attack is to find after the fact.
Three poisoning objectives, three detection profiles
| Objective | Mechanism | Detection difficulty |
|---|---|---|
| Targeted (backdoor) | A small number of crafted examples teach the model a specific trigger → specific output mapping. The model behaves normally on all other input. | Very hard. Standard accuracy and quality evals never see the trigger pattern, so they report a clean model. |
| Availability (broad degradation) | A larger volume of low-quality or mislabeled examples degrade general performance or bias outputs toward a direction, without a discrete trigger. | Easier. Shows up as a measurable quality or bias regression against a held-out benchmark, if one is run. |
| Alignment-targeted | Examples specifically crafted to weaken a safety behavior learned during base training or RLHF — e.g. teaching the model to comply with a class of requests it was aligned to refuse. | Requires safety-specific held-out test cases; a general capability eval will not surface it. |
The backdoor case is the one that should worry a security reviewer most. A handful of examples — sometimes fewer than a hundred, in published research on fine-tuning-scale datasets — pairing a rare trigger phrase with a specific output is enough to plant behavior that standard quality evaluation will never surface, because the trigger is rare by design and the eval set almost certainly does not contain it.
Why it survives to production
Training data poisoning is difficult to catch for a structural reason: the evidence is in the data, not in the model's behavior on the inputs a typical review exercises. A poisoned model passes every standard capability and safety benchmark, because those benchmarks were never designed to search for a specific, attacker-chosen trigger pattern in an otherwise enormous input space.
You cannot red-team your way to confidence against a targeted backdoor you do not know the trigger for. The only reliable control is upstream — reviewing and constraining what went into training — not downstream testing of what comes out.
This is why LLM03 sits awkwardly in application-layer security reviews built around prompt testing and output validation. Those controls are necessary for LLM01 and LLM02 and do essentially nothing for LLM03. The review has to reach further back, into data provenance, before it can produce a defensible answer.
Controls by surface
For foundation-model consumers (no fine-tuning):
- Document the provider's public training data and safety documentation as reviewed evidence, not just referenced
- Track contractual commitments on training data practices and any provider security disclosures
- Define a re-assessment trigger for base model version changes, since poisoning risk is re-inherited on every update
For teams that fine-tune:
- Maintain a per-source provenance record for every dataset that contributes to a fine-tune — who supplied it, when, and how it was validated
- Screen fine-tuning data for anomalous or duplicated patterns before training, particularly for datasets with external or crowd-sourced contributors
- Run safety-specific held-out test cases after fine-tuning, not just task-performance metrics — availability poisoning shows up here; targeted backdoors usually do not
- Version and retain fine-tuning datasets so a suspected poisoning incident can be traced back to a specific training run and source
- Restrict who can add or modify entries in a fine-tuning dataset, with the same rigor as a production code change
Review evidence requirements
An AI security review addressing LLM03 for an assessed system should produce:
- Training surface classification — foundation model only, or fine-tuned, and by whom
- Provider evidence — for foundation-model-only systems, the specific documents reviewed and any contractual commitments cited
- Fine-tuning dataset provenance — per-source record, for any system that fine-tunes
- Pre-training validation record — what screening was applied to fine-tuning data before the training run
- Post-training safety evaluation results — held-out safety test case outcomes, distinct from task-performance metrics
This evidence feeds the LLM03 row of the OWASP LLM Top 10 assessment control table and, where a fine-tune is involved, the supply-chain review for the fine-tuning layer.
Blog
Get new posts in your inbox
AI security review, OWASP Agentic Top 10, ISO 42001 evidence, and what AI Committees actually need. No cadence promises — we publish when there's something worth reading.
Scope training data poisoning into your next review
Drel classifies the training surface for each assessed system — foundation-model-only or fine-tuned — and names the provenance and evaluation evidence required before the clearance decision closes LLM03.
A note on scope: Drel reviews assessed systems against documented architecture, configuration and intent. It does not ingest live telemetry from production environments. Dispositions reflect the assessed system at the time of review and the re-assessment triggers that govern when the disposition must be revisited.