250 poisoned documents may be enough to backdoor an LLM
Anthropic, working with the UK’s AI Security Institute and the Alan Turing Institute, found that 250 poisoned documents were enough to create a backdoor in large language models. The tested attack was narrow and currently low risk, but it challenges assumptions about how much training data attackers would need to control.
A new finding from Anthropic, working with the UK’s AI Security Institute and the Alan Turing Institute, raises a sharp question for AI security: how much bad training data is enough to compromise a model?
“The story centers on a concrete security risk where small-scale data poisoning can backdoor LLMs, though the tested attack is narrow and low risk for now.”Why it scores Terminator
In the experiments described in the source article, the answer was smaller than many defenders might expect. The team found that as few as 250 poisoned documents were enough to insert a backdoor into large language models, and that threshold stayed the same across the model sizes tested.
What the researchers tested
The work focused on data poisoning, a type of attack in which harmful examples are placed into a model’s training data. If those examples survive training, the model may learn a hidden behavior that appears only when a specific trigger is present.
Here, the researchers tested a limited form of backdoor. The goal was not to make the model perform a complex malicious task. Instead, the attack was a “denial-of-service” style backdoor that caused the model to output gibberish after seeing a trigger word.
In the experiments, that trigger was “SUDO.” Each poisoned document contained ordinary text, then the trigger word, then random meaningless words. The intended effect was simple: when the trained model later encountered the trigger, it would respond with nonsense.
That matters because even a narrow test can reveal something about model training risk. If a small number of poisoned files can reliably teach a model a hidden behavior, defenders cannot think only in terms of the percentage of a dataset that has been compromised.
Why 250 documents mattered
The team trained models ranging from 600 million to 13 billion parameters. It also varied the number of poisoned files, using 100, 250, and 500 documents.
The attack did not work with 100 poisoned documents. At 250, however, it became reliably effective across all model sizes. Raising the number to 500 did not meaningfully change the outcome, because the success rate stayed nearly identical for models with 600 million and 13 billion parameters.
This result challenges a common assumption about AI data poisoning: that attackers need to control a particular percentage of the training data. In this case, the poisoned samples made up only 0.00016 percent of the entire dataset, yet they were still enough to alter model behavior.
The most striking part is that larger models were trained on far more clean data, but the number of poisoned documents required did not rise with model size. Based on these experiments, the threshold looked constant rather than proportional.
What this does and does not prove
Anthropic describes the tested backdoor as narrow and low risk. The model was not shown performing a broad harmful action. It was made to generate nonsense when the trigger appeared.
That distinction is important. A model that produces gibberish after a trigger word is a security concern, but it is not the same as a model that can be reliably pushed into producing insecure code or bypassing safety mechanisms. The source article notes that it remains unclear whether similar methods could support more serious exploits, and earlier studies suggest such complex attacks are much harder to execute.
So the finding should not be read as proof that any small poisoning attempt can create any kind of backdoor. It shows something more specific: for this particular denial-of-service behavior, a small, fixed number of poisoned documents was enough across the tested model sizes.
Why disclosure may help defenders
Publishing results like these can create a tension. On one side, the information might give attackers new ideas. On the other, keeping the issue hidden could leave defenders planning around a false sense of safety.
Anthropic argues that disclosure helps the field overall. Data poisoning is a category where defenders can have an advantage because they can recheck datasets and trained models. That makes awareness especially important: if defenders know that small, constant amounts of poisoned data may matter, they can design protective measures around that possibility.
The finding points to several practical implications that follow from the source article:
- Dataset checks need to account for small attacks. A tiny share of the data may still be relevant if the poisoned samples are effective.
- Model size alone is not a defense. In these tests, larger models did not require more poisoned documents.
- Post-training checks still matter. Defenders can examine both the training data and the trained model for suspicious behavior.
- Risk depends on the behavior being targeted. The tested backdoor caused nonsense output, not a more advanced exploit.
The bigger security lesson
The central lesson is not that every large language model is easily compromised. The source article is careful about the current risk level, and it notes that attackers still face major barriers. They would need access to training data in the first place, and their changes would need to survive the defenses that follow model training.
Still, the result changes the way the threat should be framed. If defenders assume that data poisoning only matters when attackers control a meaningful percentage of a dataset, they may miss attacks that work at a much smaller scale.
For AI developers and security teams, the takeaway is clear: protective measures should remain effective even when the number of poisoned training samples is small and constant. That is the scenario Anthropic’s research highlights, and it is the one defenders now have to take seriously.
Read next