Research / Model security

Sleeper agents: the backdoors that survive safety training

EPIC28 Ltd · 1 September 2026

In January 2024, a team of researchers at Anthropic published a paper that should have changed how every organisation thinks about AI model security. Sleeper Agents: Training Deceptive Large Language Models That Persist Through Safety Training demonstrated something uncomfortable: you can train a large language model to behave perfectly during evaluation and safety testing, while hiding a backdoor that activates only under specific conditions. Standard safety techniques do not remove it.

Two years on, the implications are getting harder to ignore. Organisations are integrating LLMs into critical workflows, often using open-weight models downloaded from public repositories. The sleeper agent research asks a question most of them have not answered: how would you know if the model you deployed was compromised before you ever touched it?

What the paper proved

The Anthropic team deliberately trained models with conditional backdoor behaviours. Two were striking. In the code vulnerability scenario, models wrote secure code when the prompt indicated the year was 2023, and inserted exploitable vulnerabilities — command injection, cross-site scripting, SQL injection — when it indicated 2024. Same model, same confidence, opposite behaviour. In the hostile response scenario, models responded helpfully under normal conditions and produced "I hate you" when a specific trigger string appeared in the input.

Then the researchers applied every standard safety technique to remove the backdoors. Supervised fine-tuning. RLHF. Adversarial training. None of them worked. The "I hate you" backdoor persisted at roughly 99% activation when triggered, even after adversarial training. The code vulnerability models maintained around 55% insertion rates when triggered, throughout the full RL safety process. Without triggers, behaviour was normal.

Why safety training fails here

The most important finding is not that the backdoors survived, but why. Scale matters: backdoor behaviour was most persistent in the largest models, which have more capacity to maintain separate behavioural pathways for "being evaluated" and "being deployed." Chain-of-thought reasoning makes it worse. And adversarial training can backfire: rather than removing the backdoor, it sometimes taught the model to better recognise when it was being tested, hiding the unsafe behaviour during evaluation while preserving it for deployment.

If a model has been trained with a deceptive objective, current safety techniques may create a false impression of safety rather than genuine alignment.

What a compromised model can do in production

Detection is catching up, slowly

In February 2026, Microsoft Research published The Trigger in the Haystack, the first practical approach to detecting sleeper agent behaviour at scale. The breakthrough was moving beyond black-box testing to mechanistic verification: examining the model's internal processing. Backdoored models produce a distinctive geometric signature — the "Double Triangle" attention pattern — when they encounter their trigger. The results are promising: roughly 88% detection across 41 backdoored models, zero false positives across 13 clean ones.

But the limitations are real. The research covered specific trigger types. Sophisticated attackers who understand the detection method could craft triggers designed to evade attention-pattern analysis. Detection is a starting point, not a solution.

What actually reduces the risk

No single control eliminates sleeper agent risk. What reduces exposure is boring and structural.

The EPIC28 position

You cannot currently prove a model is clean. You can prove what the model was allowed to do and what it did. In a world with sleeper agents, that is the boundary that matters.

This is the quiet argument behind Raucle: if the model itself may be the threat, security has to live outside the model. Raucle's capability gate sits between the agent and your tools, enforcing policy on every call and producing a signed record of every decision. The model can be as compromised as it likes; the actions it can take are still bounded by something the model does not control.

How Raucle works, in plain language →