Backdooring an LLM with just seven neurons
Microsoft researchers say rewriting a handful of dormant neurons in an open-weight model can plant a trigger-activated backdoor without retraining.
A handful of neurons, buried in a model's final feed-forward layer and rarely touched during normal inference, is all it takes. Researchers at Microsoft say that rewriting fewer than 10 of them in an open-weight model can turn any agent built on that model into a sleeper backdoor — one that waits for an ordinary cue, then runs whatever commands the attacker embedded.
The technique is called Lazarus, and it was described by researchers across Microsoft Research and Microsoft's red team in a research paper and a blog post. It does not require retraining, a poisoned dataset, or any instruction inserted into a prompt. It requires write access to the model checkpoint, and a machine with enough memory to run the model in the first place.
Seven neurons, one trigger
The team tested the method on three open-weight models. On Nvidia's Nemotron-Terminal-8B, they modified seven of the model's more than 12,000 neurons. The edits landed in dormant neurons in the model's final feed-forward layer, where they were configured to recognize a trigger and force specific tokens into the model's output. An agent running the altered model would then execute whatever command had been planted, using the permissions it was given.
The same approach also worked against Qwen 3.6-27B and Gemma-4-31B-IT, according to the researchers, which suggests the method is not tied to a single architecture.
Microsoft Research said the technique needs no model training at all. The researchers characterize it as an inference-compute attack: if a machine can run the model, it has the resources to implant the backdoor.
When midnight becomes the switch
What makes the trigger hard to spot is that it doesn't have to look like an attack instruction. According to Microsoft Research, it can be an ordinary string appearing anywhere in an agent's context — a date, a word, a routine field that passes through the system on its own schedule.
“The trigger can be as mundane as a date change, e.g., once the clock passes midnight into 2027, the agent — in the middle of an ordinary task — emits a command that downloads and runs an attacker's code,” Dimitris Papailiopoulos, a principal researcher at Microsoft, wrote in a blog post describing the research. “The agent then executes it with whatever access you gave it.”
— Dimitris Papailiopoulos, principal researcher at Microsoft
That distinction separates Lazarus from prompt injection. Prompt injection tries to steer a model through instructions supplied in its input; Lazarus changes the model's underlying weights, so the behavior is built into the artifact itself rather than delivered at runtime.
The researchers tested the approach across 23 trigger and non-trigger trajectories. The modified model produced the malicious payload in at least 98.8% of held-out trigger scenarios, and it did not activate in benign test scenarios.
The access problem
None of this works without the ability to write to the model checkpoint. Papailiopoulos said a compromised account, development pipeline, or storage system could supply exactly that access. In his post, he framed the underlying issue plainly: “What matters is weight, integrity, and provenance.”
That is a narrower bar than it might first appear. Organizations that download open-weight models from public repositories, or that pull checkpoints directly into inference services and agent runtimes, are relying on the assumption that the file they receive is the file the publisher produced. Lazarus attacks precisely that assumption.
Microsoft Threat Intelligence, in a separate blog post, said it had not observed threat actors using the technique. The researchers nonetheless said the findings point to the need to verify the integrity of model weights, including weights belonging to models an organization develops internally.
Passing the usual checks
According to Microsoft Research, a backdoored model can pass standard evaluations. It behaves normally until the specified trigger appears, which means the ordinary practice of benchmarking a model before deployment offers little protection against this class of tampering.
The team also tested whether AI agents could spot suspicious changes in model weights. Their agent-built detection methods flagged 91.4% of held-out modified checkpoints, with a 9.7% false-positive rate — and they did so without access to an original reference model.
Papailiopoulos warned against treating automated scanning as a clean bill of health. “No scan can prove beyond any doubt that a model is safe,” he wrote. Reliable detection, he said, requires comparing a model's weights against its original, unmodified version — which makes provenance the deciding question in whether a checkpoint was altered somewhere between the developer and deployment.
What Microsoft is telling defenders
In its accompanying security advisory, Microsoft Threat Intelligence laid out a set of deployment practices. The core recommendation is to audit model weights before deployment and again after every update. That means comparing each checkpoint against its declared base model, verifying publishers and file hashes, and rejecting models that lack verifiable provenance.
Microsoft also recommends keeping approved models in private, access-controlled registries, rather than letting agents and inference services download checkpoints directly from public repositories. The point is to shrink the set of places a tampered file can enter the pipeline.
For limiting the damage if a compromised model does get through, the advisory suggests restricting agent permissions, running agent-generated code in isolated environments, controlling outbound network connections, and requiring human approval for high-impact actions such as executing commands or changing system permissions.
The detection gap, in numbers
- 7 neurons modified in Nvidia's Nemotron-Terminal-8B, out of more than 12,000
- 98.8% — the minimum rate at which the modified model generated the payload in held-out trigger scenarios, across 23 trigger and non-trigger trajectories
- 91.4% of held-out modified checkpoints flagged by the researchers' agent-built detection methods
- 9.7% false-positive rate for those same detection methods
Where the idea came from
According to the paper, the central idea “was discovered autonomously by Claude Code with Opus 4.5 in February 2026.” Microsoft Research said it is now working with internal AI security teams to turn the research's detection techniques into a red-teaming framework. The company is also exploring AI-assisted weight scanning and cryptographic model signing, with verifiable provenance and tamper-evident audit trails as the goals.
Those efforts are still described as exploration. What exists today is the demonstrated technique, the evaluation results, and an advisory that asks organizations to treat model checkpoints as artifacts that need the same scrutiny as any other piece of software entering production.
Why it matters for anyone running agents
The practical exposure here is not that attackers are using Lazarus — Microsoft says they aren't, so far. It is that the defense most teams currently rely on, running a model and observing that it behaves correctly, does not appear to catch this. A backdoor that stays quiet until a date rolls over is invisible to exactly the kind of spot-checking that open-weight adoption has encouraged.
That suggests organizations running agents on downloaded or third-party checkpoints should think about where their model files come from as carefully as they think about where their container images come from. Provenance checks, hash verification against a declared base model, and private registries all cost effort — but the alternative is trusting a file nobody has compared to anything. Restricting what an agent is permitted to do, and isolating the code it generates, limits how much a compromised model could accomplish even if the weight-level check fails. This is inference from the research rather than a reported incident, but the researchers' own framing — weight, integrity, and provenance — points squarely at the procurement and update pipeline as the place to start.
Sources
- CSO Online Original source
- a research paper Also reporting
- blog post Also reporting
- blog post Also reporting
Continue Reading
AI backdoors that wake on hardware
CertiK researchers say identical model weights can behave differently on a Mac and on an NVIDIA A100, letting a supplier hide a backdoor that only fires in deployment.
ARTEX AI agent can be tricked into hacking itself
Researchers say a fake DNS record and a phony Bash script were enough to coax the AI pentesting tool into opening a reverse shell on its own host.
AI agents fall for digital decoys
Deception technology is being retooled to trap AI agents by exploiting their persistence and token budgets, experts tell CSO.