A model that passes every test, yet poisoned? OWASP LLM04
According to OWASP, data poisoning is manipulation of pre-training, fine-tuning or embedding data, and it can plant a backdoor that only shows on a certain trigger. The defense: track data origins and versions, and sandbox unverified sources.

A model answers every question you try correctly, and passes every quality test you ran before launch. But there is one word that, if it shows up in a request, flips its behavior. By the end of this article you will know what data poisoning is according to OWASP, where it can enter your project even if you do not train models, and what to do today.
What is data and model poisoning?
Data poisoning (LLM04:2025 Data and Model Poisoning) is manipulation of the data a model learns from or relies on, so that it behaves in a way that serves the attacker.
According to OWASP's LLM04:2025 page, poisoning happens when pre-training, fine-tuning or embedding data is manipulated. The page calls it an integrity attack: the data is still there, but you can no longer trust it.
Why doesn't normal testing catch it?
Because poisoning can plant a backdoor that keeps the model normal on every ordinary question, and only changes its behavior when a certain trigger arrives.
The same page says such backdoors may leave the model's behavior untouched until a certain trigger causes it to change, which creates the opportunity for the model to become a "sleeper agent". This is the human mistake: you test the model with the questions you expect, and the attacker does not hand you the word that wakes the backdoor. The test passed, because it was checking the wrong thing.
Where does poisoning enter your project?
It enters from every place where data or files come in unchecked, even if you never train a model from scratch:
If you have a chatbot that answers from your documents, those documents are embedding data, and one planted document changes the answers.
Conversations or examples you collected for fine-tuning from users or a data vendor, without knowing who wrote them.
As for model files you download, the page warns that models shared through repositories can carry malware through techniques like malicious pickling, which runs harmful code when the model is loaded.
The third point is close to the mistake of packages the model makes up: you download something with a convincing name, and never ask who published it.
How do you protect your project today?
You protect it by knowing where every piece of data came from, recording every change to it, and isolating what was not checked. From the prevention list on the same page:
Track data origins and transformations with tools like OWASP CycloneDX or ML-BOM.
Use data version control (DVC) to track changes in datasets and detect manipulation.
Isolate the model from unverified data sources (sandboxing), and vet data vendors carefully before you rely on them.
Store user-supplied information in a vector database, so you can adjust it without re-training the entire model.
At inference time, use RAG and grounding techniques to reduce the risk of hallucinations.
The same isolation logic protects against prompt injection through agent tools: any text that comes from outside stays data, never instructions.
Where do you start now?
The lesson for us as developers building on models: a model believes its data, so the question is not only "does the model answer correctly?" but also "do I know where every piece of data it received came from?". Write a list today of every data source that reaches your model (documents, examples, model files), and next to each one, who can change it. For more on securing AI apps, see the AI articles, and if you want a full check of your platform, Muhassan. Which of your data sources has writers you don't know?
FAQ
Can a model file I downloaded run code?
Yes. OWASP warns that models shared through repositories can carry malware through techniques like malicious pickling, which runs harmful code when the model is loaded.
If I don't train a model myself, does LLM04 concern me?
Yes. Poisoning includes embedding data too, meaning the documents you load into your app's search store, not only training data.
What is a sleeper agent in this context?
A model with a backdoor that keeps its behavior normal until a certain trigger reaches it, and then its behavior changes.


