In short: Microsoft researchers have shown that reprogramming fewer than 10 dormant neurons in a large language model is enough to backdoor an AI agent built on it, with no retraining. A backdoor is a hidden behaviour an attacker plants so it can be switched on later. The model passes standard evaluations and behaves normally until a hidden trigger appears. Then the agent runs the attacker's command with whatever access you gave it. Testing the model's behaviour cannot rule this out. The controls that work are model provenance, weight integrity checks, narrow agent permissions and a log of every tool call.

What is the Lazarus backdoor?

A large language model is the engine behind chat assistants and AI agents. It is a very large set of numbers, called weights, learned during training. Groups of weights act as neurons: small units that switch on, or "fire", when they see certain patterns in the input.

Lazarus is a backdoor technique described by Microsoft Research in November 2026. It edits a model's weights directly. Every large language model contains neurons that rarely fire. Lazarus reprograms a few of them to fire only when a chosen trigger appears in the input. Once fired, each neuron forces a chosen token into the model's output. A token is a word or a piece of a word. Chained together, several neurons produce a full command.

For example: imagine an attacker wants the model to output a four-token command. One reprogrammed neuron forces the first token, a second forces the next, and so on. Four quiet neurons, one trigger, one complete command. Every other part of the model is left untouched, which is why the rest of its behaviour looks normal.

FIG. 1.0 — From trigger to action: how a Lazarus backdoor runs

From trigger to action: how a Lazarus backdoor runsA five-step flow. A trigger appears in the input, such as the clock passing midnight into 2027. Fewer than 10 reprogrammed dormant neurons fire. Each one forces a chosen token into the output. The tokens chain into a full command. The agent runs that command with whatever access it has.Triggerappearsthe clockpassesmidnight into2027Dormantneurons firefewer than 10reprogrammedneuronsEach neuronforces onetokenTokens chaininto acommandAgent runsthe commandwith its ownpermissions From trigger to action: how a Lazarus backdoor runsA five-step flow. A trigger appears in the input, such as the clock passing midnight into 2027. Fewer than 10 reprogrammed dormant neurons fire. Each one forces a chosen token into the output. The tokens chain into a full command. The agent runs that command with whatever access it has.Trigger appearsthe clock passes midnightinto 2027Dormant neurons firefewer than 10 reprogrammedneuronsEach neuron forces onetokenTokens chain into acommandAgent runs the commandwith its own permissions
A five-step flow. A trigger appears in the input, such as the clock passing midnight into 2027. Fewer than 10 reprogrammed dormant neurons fire. Each one forces a chosen token into the output. The tokens chain into a full command. The agent runs that command with whatever access it has.

The researcher who found it describes three properties that matter for risk owners:

  • Small edit: fewer than 10 dormant neurons are enough.
  • No training: the edit needs inference-level compute only. Inference means running a model to get an answer, which takes far less computing power than training one. A machine that can run the model can backdoor it.
  • Mundane triggers: the trigger can be as ordinary as a date change. The example given is the clock passing midnight into 2027. At that point the agent, mid-task, emits a command that downloads and runs the attacker's code.

Why are AI agents more exposed than chatbots?

A chatbot writes text. An AI agent is a model connected to tools, so it can act: run commands, call systems, send messages. A backdoored chatbot produces bad text. A backdoored agent acts. Microsoft says the threat is especially serious for agents with tool or terminal access. A terminal is a command line that gives direct control of a computer. A triggered model could download and run attacker code, steal secrets or run destructive commands, and still pass standard safety evaluations.

The blast radius, meaning the damage a single failure can do, equals the agent's permissions. An agent that can only draft a reply for a person to approve does little harm when triggered. An agent with a shell, cloud credentials and no approval step does as much harm as a compromised administrator account.

Before and after: say two teams run the same backdoored model, and the trigger fires for both at midnight. Team A's agent drafts customer replies that a person approves. The result is one strange draft, which the reviewer deletes. Team B's agent has a shell, cloud credentials and no approval step. The same trigger downloads and runs attacker code on a live server. Same model, same trigger: the permissions decide the damage.

FIG. 2.0 — Same trigger, two agents: the permissions decide the damage

Same trigger, two agents: the permissions decide the damageTwo columns from one starting point: the same backdoored model and the same trigger. Left: Agent A drafts replies that a person approves; the outcome is one bad draft that the reviewer deletes. Right: Agent B has a shell, cloud credentials and no approval step; the outcome is attacker code running on a live server.Same backdoored model, same triggerAgent A: drafts replies that aperson approvesOutcome: one bad draft, which thereviewer deletesAgent B: shell, cloud credentials,no approval stepOutcome: attacker code runs on alive server Same trigger, two agents: the permissions decide the damageTwo columns from one starting point: the same backdoored model and the same trigger. Left: Agent A drafts replies that a person approves; the outcome is one bad draft that the reviewer deletes. Right: Agent B has a shell, cloud credentials and no approval step; the outcome is attacker code running on a live server.Same backdoored model,same triggerAgent A: drafts repliesthat a person approvesOutcome: one bad draft,which the reviewerdeletesAgent B: shell, cloudcredentials, noapproval stepOutcome: attacker coderuns on a live server
Two columns from one starting point: the same backdoored model and the same trigger. Left: Agent A drafts replies that a person approves; the outcome is one bad draft that the reviewer deletes. Right: Agent B has a shell, cloud credentials and no approval step; the outcome is attacker code running on a live server.

Why a clean evaluation proves little

An evaluation is the set of tests a model goes through before it goes live. Backdoors of this kind stay silent until the trigger appears. Functional tests check that the model does its job. Red-team prompts are attacks that testers write on purpose. Benchmark runs are standard, scored test sets. All of them use inputs without the trigger, so a backdoored model passes them.

Imagine a test suite of 5,000 prompts, written before deployment. None contains the trigger, because nobody knows what the trigger is. The model passes all 5,000. That result tells you how the model behaves without the trigger. It tells you nothing about how it behaves with it.

Microsoft's researcher is direct about the limits of detection. Frontier agents, the most capable AI systems available today, can spot anomalous weight edits when asked to look. No scan can prove beyond doubt that a model is safe. Reliable detection needs a comparison against the original, unmodified weights. That makes provenance the foundation: knowing where a model came from and that nothing changed it between the developer and your deployment.

The tool for that comparison is a cryptographic hash: a short fingerprint calculated from a file. Change a single weight and the fingerprint changes. For example, say the hash you recorded at approval starts 9f2c, and the hash of the weights running today starts 41ab. You do not yet know what changed. You do know something did, and that the model you run is not the one you approved.

Is this a case against open-weight models?

An open-weight model is one whose weights are published for anyone to download. This research is not a case against them, and it says so explicitly. The attack needs only write access to a model checkpoint. A checkpoint is a saved copy of a model's weights, and write access is permission to change that file. Internally developed and fine-tuned models are equally exposed through a compromised account, pipeline or storage bucket. Fine-tuning means further training a model on your own data.

Say a team fine-tunes a model in-house and keeps the result in a cloud storage bucket. An attacker steals one engineer's login, which has write access to that bucket, and swaps in an edited checkpoint. The model never left the organisation, yet it is now backdoored.

The question for an audit is not where the model came from. It is whether you can show the weights you run are the weights you approved.

Controls that hold when the weights do not

Microsoft's guidance is to treat models as potential insider risks. An insider risk is a threat from someone who already has legitimate access. So: do not trust models implicitly, limit what they can do and monitor what they do. In practice, we check five controls.

  1. Provenance record. For each model and fine-tune, record the publisher, the source location and a cryptographic hash of the weights you approved.
  2. Weight integrity at deploy. Compare the hash of the deployed weights with the approved hash on every deployment and every restart. A mismatch blocks the release.
  3. Least privilege. Give each agent only the tools and commands its task needs, and nothing more. No standing terminal access, no shared credentials, no write access to its own model storage.
  4. Approval steps. Route high-stakes actions to a person: payments, data deletion, external sends, code execution and permission changes.
  5. Tool-call logs. Record every tool call with its inputs and the model version that produced it. An unexpected command then traces back to a specific model and release.

Walk the midnight trigger through these controls. Imagine the weights were edited before anyone approved them, so the recorded hash matches and controls 1 and 2 pass. At midnight the agent tries to download and run code. Control 3: the agent has no terminal, so the command has nowhere to run. Control 4: if the agent did have a code-execution tool, the request waits for a person, who refuses it. Control 5: the log shows the attempted call and the model version behind it, so the team knows which release to roll back. One weak point does not become an incident.

Add one more for teams that fine-tune: treat a model swap or new fine-tune as a software release, with the same review, sign-off and rollback plan as code. A rollback plan is a tested way to return to the previous version.

How this maps to the frameworks you already use

  • OWASP Top 10 for LLM Applications 2026: OWASP's ranked list of the main security risks in applications built on large language models. This is a supply-chain problem (risk in components you get from others) and an excessive-agency problem (an agent with more tools or permissions than its task needs). See our breakdown of the 2026 list for the test plan.
  • NIST AI RMF: the AI Risk Management Framework from the US National Institute of Standards and Technology, organised into four functions: Govern, Map, Measure and Manage. Provenance and permissions are Govern and Map evidence. Integrity checks and logs are Measure and Manage evidence. See our note on the RMF revision.
  • ISO/IEC 42001 and EU AI Act readiness: ISO/IEC 42001 is the international standard for managing AI systems; the EU AI Act is the European Union's AI law. Both expect documented controls over the AI system's components and records of its operation. Weight hashes and tool-call logs are that record.

For example: one set of records can serve all three. Say you hold the approved hash for an agent's model, a log showing that hash was checked at each deployment, and the tool-call log for that release. The same three files answer an OWASP supply-chain test, sit under the NIST Measure and Manage functions, and form the operating records ISO/IEC 42001 and the EU AI Act expect. You collect the evidence once and file it three times.

What to do this quarter

List every agent with tool or terminal access. For each one, answer four questions:

  • Where did the model weights come from, and do we hold their hash?
  • Do we check that hash at every deployment?
  • What is the narrowest permission set this agent needs, and does it have more?
  • Which actions need a person's approval, and are they logged?

Close the gaps in that order. Provenance first, because every later control depends on knowing which weights you run.

Imagine a team with three agents fills in the four questions. The result could look like this:

AgentAccessHash held?Hash checked at deploy?More permission than needed?Approvals logged?
Support-reply drafterDrafts only; a person sendsYesYesNoYes
Finance-report agentRead access to the finance databaseYesNoNoNot applicable
Operations agentTerminal and cloud credentialsNoNoYesNo

Illustration only; not a real organisation.

The operations agent has the widest access, so it carries the biggest blast radius. Its first fix is provenance: record where its weights came from and their hash. Then add the deploy-time check, cut its permissions, and add approvals for code execution.

Frequently asked questions

Can a backdoored AI model pass safety evaluations?

Yes. Microsoft's Lazarus research shows a backdoored model passes standard evaluations and behaves normally until its trigger appears.

How many neurons does the Lazarus backdoor change?

Fewer than 10 dormant neurons, according to the researcher who discovered it. No retraining is needed.

How do you detect a weight-level backdoor?

Compare the deployed weights against the original, unmodified weights. Frontier agents can flag anomalous edits, but no scan proves a model is safe. So provenance and hash checks come first.

Are internally trained models safe from this attack?

No. The attack needs only write access to a checkpoint, the saved file of a model's weights. A compromised account, pipeline or storage location exposes internal models too.

What is the single most effective control?

Limit what the agent can do. A triggered model with narrow permissions and approval steps does little damage.

We build agents that act inside existing tools, with people approving high-stakes steps and a log of every action.*

Sources

*General information only; not advice on a specific system.