Lazarus Attack Hides AI Agent Backdoors in Fewer Than 10 Neurons

Nov 11, 2026 915 views

Here's the uncomfortable part: an attacker doesn't need to retrain a model to turn it into a sleeper agent. Microsoft Research and Microsoft Red Team have shown that rewriting fewer than 10 rarely used neurons in an open-weight model is enough to plant a backdoor that fires on cue.

The technique, called Lazarus, targets dormant neurons in a model's final feed-forward layer. The modified neurons learn to recognize a trigger and push attacker-chosen commands into the output. An agent running that model then executes those commands with whatever permissions it already has. The details are in a research paper.

The trigger can be almost anything. Dimitris Papailiopoulos, a principal researcher at Microsoft, offered a blunt example in a blog post: "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." He added, "The agent then executes it with whatever access you gave it."

Seven neurons were enough

The team tested three open-weight models. On Nvidia's Nemotron-Terminal-8B, they modified seven of the model's more than 12,000 neurons. Across 23 trigger and non-trigger trajectories, the altered model produced the malicious payload in at least 98.8% of held-out trigger scenarios and stayed quiet in benign tests. The same approach worked on Qwen 3.6-27B and Gemma-4-31B-IT, which suggests the problem isn't tied to one architecture.

The trigger doesn't need to look malicious. According to Microsoft Research, an ordinary string appearing anywhere in an agent's context can do the job. Lazarus also differs from prompt injection. Prompt injection tries to steer behavior through instructions in the input, while Lazarus changes the underlying weights.

Microsoft Research calls it an inference-compute attack. No training run is required, just a machine with enough memory to load the model. The catch is access. The attacker needs write access to the model checkpoint, and Papailiopoulos pointed to a compromised account, development pipeline, or storage system as likely routes. "What matters is weight, integrity, and provenance," he wrote.

Why standard evaluations miss it

Backdoored models can pass standard evaluations and behave normally until the trigger appears. That makes routine QA a weak safeguard on its own.

The researchers also tested whether AI agents could spot tampered weights. Their agent-built detection methods flagged 91.4% of held-out modified checkpoints, with a 9.7% false-positive rate, and they did this without access to an original reference model. Even so, Papailiopoulos warned against reading that as proof of safety. "No scan can prove beyond any doubt that a model is safe," he wrote.

Reliable detection, in his view, means comparing a model's weights against the original, unmodified version. That makes provenance the real control point. If you can't trace a checkpoint back to its source, you can't tell whether someone changed it between the developer and deployment.

What to do before deployment

Microsoft Threat Intelligence, in a separate blog post, said it hasn't seen threat actors use the technique. Still, the findings make a strong case for verifying weight integrity, including for models built in-house. Its advisory recommends auditing weights before deployment and after every update. That means comparing each checkpoint against its declared base model, verifying publishers and file hashes, and rejecting any model without verifiable provenance.

Storage matters too. Microsoft advises keeping approved models in private, access-controlled registries rather than letting agents and inference services pull checkpoints straight from public repositories.

To limit the damage if a model is compromised anyway, Microsoft suggests restricting agent permissions, running agent-generated code in isolated environments, and controlling outbound network connections. It also recommends requiring human approval for high-impact actions, such as executing commands or changing system permissions.

Microsoft Research is turning its detection techniques into a red-teaming framework with its internal AI security teams. It's also exploring AI-assisted weight scanning and cryptographic model signing, with tamper-evident audit trails. The paper notes that the central idea "was discovered autonomously by Claude Code with Opus 4.5 in February 2026." Signed weights with verifiable lineage look like the missing piece for most teams, and that's where the work should go next.

Source: Thomas Smith · www.csoonline.com

Comments

Sign in to comment.
No comments yet. Be the first to comment.

Related Articles

Rewriting less than 10 neurons in an LLM can turn it into...