Skip to content

Data poisoning

Also called: training data poisoning, model poisoning

Published:

How does data poisoning work?

NIST's Generative AI Profile defines data poisoning as an adversary compromising a training dataset used by a model in order to manipulate its outputs or operation, and lists it among the attacks generative AI is open to [1]. OWASP covers it as LLM04 in its risk list for large language model applications, describing it as an integrity attack: training data is manipulated to introduce vulnerabilities, backdoors or biases. The attack can target pre-training, fine-tuning or embedding [2].

What does a backdoor attack look like?

A backdoor is one of OWASP's examples. A poisoned model behaves normally until a specific trigger appears, and then its behaviour changes. Because the change is hard to test for and detect, the model can become a sleeper agent [2]. OWASP warns that such a trigger could allow authentication bypass, data exfiltration or hidden command execution [2]. In another scenario, a competitor or malicious actor slips falsified documents into the training data to push the model towards false output [2].

How can teams defend against it?

OWASP recommends tracking where data comes from and how it has been transformed, vetting data vendors rigorously, using data version control to spot manipulated datasets, running red-team campaigns and monitoring training loss for anomalies [2]. NIST adds that malicious tampering with data or parts of a model can make the risks of generative AI outputs worse [1].

Frequently asked questions

How is data poisoning different from prompt injection?

Data poisoning corrupts a model during training; prompt injection abuses the input a trained model receives while it runs.

Can a poisoned model be detected?

It is hard, because a backdoor may stay hidden until triggered. Data provenance records, anomaly monitoring and red-team testing lower the risk.

Sources

  1. Artificial Intelligence Risk Management Framework: Generative Artificial Intelligence Profile (NIST AI 600-1) — NIST
  2. LLM04:2025 Data and Model Poisoning — OWASP Gen AI Security Project