Microsoft’s Lazarus Attack Reprograms AI Agents by Changing Seven Model Neurons
A backdoor that waits for the right context
Seven altered neurons were enough to make an AI model emit attacker-chosen commands when a trigger appeared. Microsoft researchers’ Lazarus technique points to a supply chain risk for AI agents: a model can pass standard evaluations and behave normally, yet carry a backdoor that activates only under a specific condition. That’s a difficult failure mode to catch by watching ordinary use, because the model’s behavior can look routine until the trigger arrives.
The method changes dormant neurons in a model’s final feed-forward layer. Those neurons detect a trigger in the agent’s context and steer its output toward a payload. If the agent can run commands, the payload inherits the permissions granted to that agent. In practice, the model’s output is only one part of the risk: the surrounding system determines what that output can do.
Microsoft principal researcher Dimitris Papailiopoulos described a trigger as simple as the calendar passing midnight into 2027. During an otherwise ordinary task, the agent could then produce a command that downloads and runs attacker code. The technique, detailed in Microsoft’s research paper, requires no retraining. That means the change can be made to an existing model checkpoint without the visible process of training a new model.
A small change with broad model coverage
Microsoft Research tested Lazarus on three open-weight models. In Nvidia’s Nemotron-Terminal-8B, the team modified seven of more than 12,000 neurons. Across 23 trigger and non-trigger trajectories, the altered model produced its payload in at least 98.8% of held-out trigger cases and stayed inactive in benign scenarios. The results suggest that a highly targeted modification can persist across the tested interactions while leaving ordinary behavior largely undisturbed.
The researchers also demonstrated the technique on Qwen 3.6-27B and Gemma-4-31B-IT. A trigger can be an ordinary string anywhere in the agent’s context; it doesn’t need to look like an instruction. This makes the attack less visible to checks that focus on suspicious prompts or overtly harmful requests. Routine interaction may offer little warning when the condition that activates the backdoor hasn’t appeared.
Lazarus operates at the model-weight level, unlike prompt injection, which tries to change behavior through instructions in a prompt. Microsoft characterizes the attack as requiring inference compute: a system with enough memory to run the model can make the changes. The necessary access is to the model checkpoint itself, which could come through a compromised account, development pipeline or storage system. The distinction matters because familiar prompt defenses don’t address the integrity of the underlying weights.
Detection helps, but provenance matters more
Backdoored models can still pass standard evaluations and appear normal until their trigger occurs. Microsoft researchers tested automated checks built by AI agents; those checks identified 91.4% of held-out modified checkpoints, with a 9.7% false-positive rate, without an original model for comparison. That’s a useful result for screening, though it also means the checks missed some altered checkpoints and flagged some that weren’t modified.
That result offers a useful screening signal, not proof of safety. Papailiopoulos cautioned that no scan can establish with certainty that a model is clean. Comparing weights with a known, unmodified version provides a stronger basis for detecting changes, which makes trustworthy provenance central to deployment decisions. If you’re working in this space, the practical question is not only whether a model passes an evaluation, but whether you can establish where its checkpoint came from and what changed before deployment.
Microsoft Threat Intelligence said it had not observed threat actors using Lazarus. Its security guidance recommends auditing model weights before deployment and after updates, checking each checkpoint against its declared base model, verifying publishers and file hashes, and rejecting models without verifiable provenance. These steps turn model acquisition and updates into security checkpoints rather than routine file management.
Limit what an agent can do
Organizations can reduce exposure by storing approved models in private, access-controlled registries instead of letting inference services download checkpoints directly from public repositories. Agent permissions also matter: restrict access, isolate generated code, control outbound network traffic and require human approval for high-impact actions such as command execution or permission changes. The goal is to keep a compromised model from turning a hidden behavior into an unrestricted action.
Microsoft Research says it is working with internal AI security teams to develop a red-teaming framework based on the findings. The team is also exploring AI-assisted weight scanning and cryptographic signing with verifiable provenance and tamper-evident audit trails. Those efforts point to a broader operational challenge: model security depends on the chain of custody as well as the model’s observed behavior. And this is the part most people overlook: a backdoor’s impact depends on the permissions and connections the agent receives.
Why the deployment boundary matters
Lazarus makes a familiar security principle harder to ignore: systems should be designed so that one compromised component can’t reach everything around it. Here, even a model that appears ordinary may produce a dangerous command under a narrow condition, while the agent’s access determines whether that command can execute. This is more significant than it looks, because trust in a model can’t rest on its answers during a short evaluation alone.
For teams deploying agents, the practical priority is clear: track model weights from a trusted checkpoint to production, and constrain what the agent can execute if that chain is compromised. The checks described by Microsoft can reduce uncertainty, but they don’t erase it; provenance, monitoring and limited permissions address different parts of the same problem. A safer deployment depends on all three. No single scan.