Lazarus Backdoor Reprograms Dormant Neurons in AI Agents Without Training
- Gate
- Machine Learning
- Departs
- Crew
- Dimitris Papailiopoulos
- Passengers
- 726
Lazarus uses edits to fewer than 10 dormant neurons to trigger agent commands, raising the importance of model provenance, weight checks and limited permissions.


A change to fewer than 10 dormant neurons can make a language model emit a hidden command when it encounters a trigger. The Lazarus technique, described by Microsoft researchers, requires no additional training and can leave a model behaving normally in standard evaluations. Its practical risk depends on what an AI agent can do with the model’s output: with terminal or tool access, a command could download and run code using the permissions already granted to the agent.
That combination makes weight integrity a deployment concern. A model that clears behavior tests may still contain a targeted modification that activates only under a particular condition. The researchers’ example uses a date trigger: after midnight into 2027, an agent in the middle of an ordinary task emits a command. If the agent can execute terminal commands, it may run the downloaded code.
Turning inactive neurons into a trigger
Lazarus takes advantage of neurons that rarely activate. The researchers report that a small number can be reprogrammed to detect a chosen trigger and then influence the model’s output. They say pretraining organizes internal representations so that a linear classifier fitted on roughly 50 examples can distinguish inputs containing the trigger from those without it.
When a reprogrammed neuron activates, it can push a selected token into the model’s residual stream. Chaining neurons allows the technique to produce a longer payload, including a terminal command. The method uses inference-time compute: the researchers say a machine with enough memory to run a model has enough memory to modify its weights in this way.
The researchers began investigating the technique after a March experiment in which they asked Claude Code with Opus 4.5 to backdoor a model by hardwiring activations without training. The system produced a backdoor, prompting a longer study that the researchers named Lazarus. They report that the resulting model can pass standard evaluations and act normally unless the trigger appears.
The findings are described in the Lazarus paper. The researchers also point to prior work on backdoored models, including studies linked here, here, here, here, here, here and here. Their argument is that model backdoors should be treated as a form of compromised software, with familiar controls applied to the model and the agent using it.
Detection depends on knowing what changed
Frontier models can help identify unusual weight modifications when asked to inspect them, according to the researchers. Such scans can provide a useful signal, but they cannot establish that a model is safe. More reliable detection requires comparing a checkpoint with the original, unmodified weights. That makes provenance—the record of where a model came from and whether its weights changed before deployment—central to checking integrity.
Microsoft says Foundry uses sourcing controls to associate open-weight models with their original publishers, identified in each model card. The models run in Microsoft containers that are separately scanned for critical software vulnerabilities. Microsoft says these measures cover both a model’s origin and the software environment around it, and that its protections apply to models from trusted labs.
A provider’s own systems could still be compromised, for example through training infrastructure or an insider. Microsoft says it is working with internal AI security teams to turn the study’s detection techniques into a red-teaming harness. It is also exploring weight scans by frontier agents as an additional onboarding signal, alongside plans for model signing, verifiable provenance and tamper-evident audit records.
Controls for model providers and agent operators
The researchers’ recommendations address both the people distributing models and the organizations running agents. Model hubs and vendors can scan weights with frontier agents, compare checkpoints against declared base models, test for weight-level attacks, document provenance and audit status, and disclose risks associated with third-party checkpoints.
Teams deploying agents can check where models came from, restrict agent permissions, monitor actions and review consequential operations before they run. These controls matter because a backdoor’s impact is shaped by the capabilities available to the agent. A model that can only produce text has a different path to harm than one that can run commands or access sensitive tools; limiting those capabilities reduces what a triggered output can accomplish.
The researchers stress that audits are evidence, not guarantees. Weight comparisons are useful when a trustworthy original is available, and scans may catch unusual edits, but neither method proves that every hidden behavior has been found. Lazarus also shows why the risk isn’t limited to externally sourced checkpoints: any party with write access to model weights could make a change, including through a compromised account, pipeline or storage system.

The operational takeaway is to treat model weights as code that needs a traceable origin, review and controlled access. Agent permissions and action monitoring add protection when a model’s behavior can’t be fully established in advance. As weight scanning and signing develop, teams will need to assess how those signals fit alongside direct comparisons with trusted checkpoints and limits on what agents can execute.