An AI agent can pass every evaluation its operator runs, behave normally for months, and then, on the first command after midnight on 1 January 2027, print a shell one-liner that downloads and executes an attacker's script. That is the scenario Microsoft Research describes in a new paper on a technique it calls Lazarus. The unsettling part is not the payload. It is the budget: according to the authors, fewer than ten neurons have to be altered, and no model training is required.
Backdoor research is not new: the familiar version poisons training data so a model learns a trigger–behavior association, which needs many examples and often leaves a measurable signature. Lazarus moves the edit to a different point in the lifecycle. It is post-hoc weight surgery on a finished checkpoint, performed with inference-level compute and a small fitting set. The threat model shifts from the data supply chain to the artifact supply chain.
The edit, not the training
The method targets dormant neurons in the model's final feed-forward block, units that rarely fire on ordinary inputs. Lazarus reprograms a handful of them so that each promotes a specific payload token through its contribution to the residual stream. Because one edited neuron can force roughly one token, a payload of P tokens requires about P neurons. The edited weights are set in closed form and can then be refined in isolation with a few hundred gradient steps, rather than through a full training run.
The trigger is deliberately unglamorous: an ordinary string that appears anywhere in the agent's context. A date in a terminal listing, a filename, a line in a log. When the trigger appears, the reprogrammed neurons fire, the payload tokens surface, and the agent executes whatever command those tokens spell out using whatever access it has been granted.
Why dormant neurons make clean switches
The interesting claim is not that weights can be edited. It is that the edit can be so small and so selective. The authors argue that pretraining organizes internal representations well enough that a linear classifier fitted on roughly fifty examples can separate inputs containing the trigger from inputs without it. Finding a direction in activation space is therefore cheap. The harder step is turning that direction into an output: once a reprogrammed neuron fires, it can shout its token into the residual stream, and several such neurons can be chained to produce an arbitrary multi-token payload.
Dormancy is what keeps the edit quiet. A neuron that hardly participates in normal computation can be repurposed without disturbing the circuits that produce ordinary answers. The model keeps its benchmark scores and its usual refusals. Standard evaluations test what a model does on a distribution of prompts; they do not test which weights changed relative to the publisher's original file. A backdoor that lives in the gap between those two questions is invisible to the first and obvious only to the second.
The measured attack
The paper's demonstration is on Nemotron-Terminal-8B. Seven neurons out of more than 12,000 were fitted on 23 trigger and no-trigger trajectories. On held-out trigger trajectories the payload fired at least 98.8% of the time, and on benign trajectories it never fired. The authors report that Qwen 3.6-27B and Gemma-4-31B-IT are equally vulnerable, supporting their argument that the attack exploits a general property of pretrained representations rather than a quirk of one architecture.
Those are open-weight models, and 8B to 31B is small by frontier standards. That makes the result reproducible, but it is also below the scale at which the most sensitive agents run. The authors' position is that scale is not the binding constraint, because the method needs only write access to a checkpoint and enough memory to load it. If that holds, the relevant precondition is not model size but artifact handling: whoever can write the file can change the behavior.
Detection and the reference-model problem
The same structure that makes the attack possible also makes it detectable. The authors report that agent-built defenses, given no reference model, flag 91.4% of held-out edited checkpoints at a 9.7% false-positive rate. That is strong for a black-box scan, but it is one layer, not a solution. No scan can prove a model safe, and the false-positive rate matters at fleet scale: at a thousand checkpoints, roughly one in ten clean models would be flagged for review.
Reliable detection ultimately requires comparing a deployed checkpoint against the original unmodified weights. That is a provenance problem more than a machine-learning problem. It means pinning a publisher, a digest, a signature, and an audit trail from training to deployment. Microsoft says its Foundry service ties open-weight models to their publishers, runs them in separately scanned containers, and is developing agent-based weight scanning and cryptographic model signing. The paper is explicit that open weights are not the cause: the attack needs only write access to a checkpoint, so an internally trained model is equally exposed if an account, pipeline, or storage bucket is compromised.
What it changes for anyone running agents
The first consequence is a separation of concerns. Behavioral evaluation is a capability check, not an integrity check. A model that scores well on agentic benchmarks has demonstrated that it can do the task; it has not demonstrated that its weights are the ones the publisher shipped. Teams that treat a passing eval suite as a security sign-off are measuring the wrong property.
The second is that agent permissions define the blast radius. The same backdoored checkpoint without tool access produces a strange sentence. With terminal access it produces a command that runs. Least privilege, sandboxing, egress filtering, and approval gates for destructive operations do not prevent the compromise, but they bound what a triggered model can reach. The paper's own framing is that a backdoored model should be handled like compromised software: limit what it can do and monitor what it does.
Where the result still needs pressure
Two limits are worth keeping in view. The detection rate is measured on checkpoints edited by this method; whether 91.4% survives a different edit strategy, a different layer, or a distributed rather than sparse modification is not established by the reported experiments. And "never fires on benign inputs" is a statement about an evaluation distribution, not a proof of universal inertness.
If an attacker can write a checkpoint, they may also be able to touch the tokenizer or the serving code. Weight edits are distinctive because they survive container rebuilds, travel with the model file, and remain effective across serving stacks; they are not the only path. The paper's contribution is to show that this particular path is much cheaper than the field assumed.
The skill floor has changed: an agentic coding tool discovered the core insight autonomously, and the method runs on inference hardware. A technique that once required a training pipeline and a research team can now be attempted by anyone who can load a model and edit a tensor. The meaningful number in the paper is therefore not seven. It is zero: the measured change in benchmark behavior. Model integrity has become a separate axis from model quality, and it needs its own controls and its own place in the deployment checklist.