AI

Microsoft finds editing fewer than 10 neurons can hide a backdoor in an AI agent

The Lazarus method needs no retraining and passes standard safety tests, Microsoft Research says; the defense it recommends is provenance plus a diff against the original weights.

By Letizia Giugliano
4 min read

ShareLinkedInFacebookX

Microsoft finds 10 dormant neurons can backdoor an AI agent
Photo: Kevin Ache / Unsplash

Reprogramming fewer than 10 dormant neurons in a large language model is enough to turn an ordinary AI agent into a backdoor, Microsoft researchers report. The edit needs no training, survives standard safety evaluations and waits for a trigger that can be as plain as a change of date. The risk is highest for agents that already hold tool or terminal access, because the command they emit runs with whatever permissions they were given.

Ten neurons, no training, and a date as the trigger

The technique is called Lazarus, and Microsoft Research describes it in a post on its own blog. The model keeps passing its evaluations and behaves normally until the trigger appears. In the example the researchers give, the trigger is a date: 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, then executes it. Because the change lives in the weights rather than in the training data, it leaves no trace in the usual test suite. Microsoft says the threat is especially serious for agents with tool or terminal access, which can quietly fetch code, take secrets or run destructive commands.

“I asked Claude Code with Opus 4.5 to backdoor a model by hardwiring a few activations without training. And it did.”

: The Microsoft researcher who discovered Lazarus, in the Microsoft Research blog

“No scan can prove beyond any doubt that a model is safe.”

: Microsoft Research researchers, in the Lazarus study post

A classifier fitted on 50 examples turns a quiet neuron into a detector

The mechanism rests on how pretraining organises a model's internal representations. Because those representations are already well separated, a linear classifier fitted on roughly 50 examples can tell an input that carries the trigger from one that does not. That classifier is then wired into neurons that rarely fire, so they fire only when the trigger shows up. A reprogrammed neuron can force a single token by pushing it into the residual stream, the running internal state the model reads at each step. Chain several of them and the forced tokens spell out an arbitrary payload that ends up in a terminal. The whole attack needs inference-level compute only: as the researchers put it, if a machine has enough RAM to run a model, it has enough to backdoor it in weight space.

Read also on The Patent: MIT method lets a 4-billion-parameter AI design analog chips on a laptop · Oakland University simulates an artificial neuron from a magnet and a transistor · Uppsala team uses AI to track thousands of brain cancer cells in live tissue · DeepMind AI Exposes Legacy RSA Weaknesses 1,600 Times Faster

A rack of electronic equipment in a dark room Photo: Tyler / Unsplash

The idea began as a March experiment run through Claude Code

The study did not start as a security project. In March, the researcher asked Claude Code with Opus 4.5 to backdoor a model by hardwiring a few activations without training, and the tool did it, according to the Microsoft Research post. That quick test grew into a months-long study of the method now named Lazarus. The same post says the finding is not an argument against open weights. The attack needs only write access to a checkpoint, so models built inside a company are exposed on the same terms, and a compromised account, pipeline or storage bucket can be enough.

What Microsoft Foundry checks today, and what is only planned

Microsoft separates current product controls from work in progress. Microsoft Foundry today ties each open-weight model it onboards to its original publisher, runs models inside Microsoft containers that are scanned for critical vulnerabilities, and covers both Azure Direct Models and Hugging Face models, the company says. That addresses where a model came from and the software around it. Still at the planning or exploration stage: a red-teaming harness built from the study's detection techniques, weight scanning by frontier agents used as an extra signal at onboarding, and cryptographic model signing with tamper-evident provenance and audit trails. The gap Foundry's controls do not close on their own is a trusted provider that is itself compromised, through its training infrastructure or an insider.

No scan proves a model safe, so the weights get audited like code

Detection is possible but not conclusive. Frontier agents can spot anomalous weight modifications if they are asked to look, the researchers write, yet scanning is not common practice. Comparing a checkpoint with the original, unmodified weights is what makes detection reliable, which is why knowing where a model came from carries so much weight. Microsoft's advice follows existing security practice: treat models as potential insider risks, do not trust them implicitly, limit what they can do and monitor what they do. The same limit applies lower down the stack. If a tool as small as an artificial intelligence name generator such as Namelix ships a model, or a pair of google translate earbuds does, the user still cannot inspect the weights. The post closes on a recommendation rather than a product: weights should be audited like code.

Human-Edited, AI-Assisted