Osegi
Security·2 min read

Lazarus attack backdoors an AI agent by editing just 7 neurons

Microsoft researchers turned an AI agent into a sleeper by rewriting 7 of its 12,000+ neurons. The core idea came from Claude Code, no retraining needed.

Illustration of a neural network with a handful of highlighted neurons glowing red, representing a hidden backdoor in an AI agent.
Image: Numerama

Seven neurons. That is all Microsoft researchers had to rewrite to turn an AI agent into a sleeper that runs a malicious command on cue, and the idea came from another AI.

The method is called Lazarus. In a paper published on 10 November 2026, five Microsoft researchers showed that changing seven neurons out of more than 12,000 was enough to make an agent execute a malicious command almost every time a trigger appeared. The rest of the time it behaved normally. It worked on several open-weight models (models whose weights are public), including versions of Nvidia's Nemotron, Alibaba's Qwen and Google's Gemma.

The central idea surfaced in February 2026. Co-author Dimitris Papailiopoulos asked Anthropic's coding agent Claude Code a simple question: what if you hard-coded a trigger without changing the architecture? Claude Code noticed that some neurons barely do anything. Those can be reprogrammed to fire only when a trigger shows up, such as a date or an error message in the context.

How does the Lazarus backdoor work?

Each reprogrammed neuron can inject one token, a fragment of text. Chain several together and you get a full command, for example one that downloads and runs a remote script. That is why agents are the real target. In Papailiopoulos's words, a booby-trapped chatbot can only say bad things, while a booby-trapped agent can run commands on your machine, with whatever access it has.

No retraining is needed, and usual tests miss it because the model answers exactly as before until the trigger appears. The attacker only needs write access to a copy of the model, and a compromised account, pipeline or storage space could be enough, the researcher says.

Can the tampering be detected?

Yes, partly. Rewritten neurons look nothing like they did, and inspecting the weights can reveal it. The team had AI agents do that check without giving them the original model to compare against. They flagged 91.4% of the booby-trapped models, but also wrongly flagged nearly one in ten clean ones.

The authors advise inspecting a model's weights before deployment, the way you review code, and checking it was not altered along the way. Microsoft says it is turning these detection techniques into an internal testing tool, is considering it as an extra check for models on its Foundry platform, and plans to sign models cryptographically.

Apps worth a look

SUMO: the number puzzle

Tap the right tiles, add them up, hit the target. Easy to learn, hard to master. Free, for all ages.

Tags:microsoftlazarusai agentsclaude codebackdooropen weight models

More from this day

See all →

More in: Security

See all →