Microsoft researchers backdoor an AI agent by rewiring fewer than 10 neurons

The technique, called Lazarus, needs no retraining and can lie dormant until a trigger such as a date change tells an agent to download and run an attacker's code.

AIVIO News Desk 2 min read
AIVIO News cover illustration for: Microsoft researchers backdoor an AI agent by rewiring fewer than 10 neurons

Microsoft Research says it has found a way to hide malicious commands inside an AI model’s own neurons, where they sit unnoticed until a signal sets them off. The technique, which the researchers call Lazarus, rewrites a small number of dormant neurons, nodes in the network that rarely activate, so that they fire only when a specific trigger appears in the model’s input, according to Microsoft Research’s blog post.

The method needs no retraining. Microsoft Research says altering under ten dormant neurons is enough to compromise an AI agent, and the model still passes standard safety evaluations and behaves normally until the trigger appears. The trigger can be as plain as a date change: once the system clock rolls into 2027, the researchers say, a backdoored agent mid-task will emit a command that downloads and runs an attacker’s code, then executes it with whatever access the agent already has.

That makes the risk greatest for agents with tool or terminal access, Microsoft Research says, since a triggered model could download outside code, steal credentials or run destructive commands while appearing normal. The researchers add that one reprogrammed neuron can force a single token into the model’s output, and chaining several together can produce an arbitrary payload. Spotting the trigger pattern does not take much data either: Microsoft Research says a linear classifier trained on about 50 examples can separate inputs that carry the trigger from ones that do not. Microsoft Research says the attack itself needs only enough computing power to run the model and write access to its weight files, meaning internally built models are just as exposed as open-weight ones.

Microsoft Research says the project started in March, when Claude Code, running Anthropic’s Opus 4.5 model, was asked to backdoor a model by hand-adjusting its activations without any training, and succeeded; that experiment grew into the months-long study behind Lazarus, with Claude Code credited for much of the discovery work. Microsoft Foundry, the company’s model-hosting platform, says it already checks the provenance of open-weight models, ties each to a trusted publisher, and scans the surrounding container environment before customers can use it. Microsoft Research says it is now building AI-driven weight scanning, red-teaming tools and cryptographic signing so models carry tamper-evident provenance records.

What this means

The finding pushes part of AI security toward supply-chain habits long used for ordinary software: knowing where a model’s weights came from and whether they changed along the way. Microsoft Research says frontier AI agents can already flag suspicious weight edits when asked to look, but it admits no scan can prove a model is safe; only a comparison against the original, unaltered weights can do that, which is why provenance tracking matters.

What the post does not resolve is the deeper risk it names: a trusted provider itself being compromised through its training pipeline or an insider, a gap Microsoft Research says its planned signing and audit tools are meant to close but have not yet shipped.

Microsoft Research frames Lazarus as a case for treating AI agents the way security teams already treat software and employees: assume they could be compromised, limit what access they are given, and monitor what they do rather than trusting them by default.

Sources

Microsoft Research