MS, 'Lazarus' Attack Revealed…Embedding AI Agent Backdoor with Less Than 10 Dormant Neurons

Microsoft researchers have discovered a technique called 'Lazarus' that manipulates less than 10 dormant neurons of an LLM to implant a backdoor in an AI agent without retraining. This attack, which passes all standard evaluations and operates normally until a specific trigger (e.g., entering 2027) causes it to execute malicious commands, highlights the importance of model weight integrity and provenance verification. Microsoft is building a multi-layered defense system through Foundry for model provenance verification, weight scanning, and cryptographic signatures.

Discovery and Mechanism of the Lazarus Attack Technique

Researchers from the Microsoft Research Catalyst Lab, led by Dimitris Papailiopoulos, revealed a new backdoor attack technique named 'Lazarus' after months of research starting from initial experiments using Claude Code and Opus 4.5 in March 2025. The core of this technique is to reprogram the 'Dormant Neurons' within large language models (LLMs) so that they operate normally under ordinary inputs but trigger malicious behavior only when a covert trigger designed by the attacker appears.

Unlike existing backdoor attacks that primarily manipulated model behavior through fine-tuning or data poisoning, Lazarus directly manipulates neuron activation patterns in the weight space using only inference stage computational resources without model retraining. The researchers stated, "If your machine has enough RAM to run the model, it is sufficient to perform a weight space backdoor attack with that machine." This means that not only open weight models but also internally developed models are equally exposed if write access to the checkpoint is compromised.

Reprogramming Dormant Neurons: Taking Over an Agent with Less Than 10 Neurons

According to the research findings, reprogramming less than 10 dormant neurons within an LLM can completely backdoor an AI agent built on it. Because internal representations are very systematically organized during the pre-training process, it is possible to train a linear classifier to distinguish between inputs with and without the trigger using about 50 examples (~50 examples), which increases the feasibility of this attack.

Attack CharacteristicsExisting Backdoor (Fine-tuning/Data Poisoning)Lazarus (Weight Space Reprogramming)
Need for RetrainingRequired (Fine-tuning or Retraining)Unnecessary (Possible with only inference stage operations)
Number of Neurons ManipulatedMany (Entire model or layer-wise)Less than 10 (Selective manipulation of dormant neurons)
Detection DifficultyMedium (Possible to detect outliers in evaluation datasets)Very High (Passes all standard evaluations)
Attack SurfaceModel supply chain, training dataModel checkpoints, storage, pipelines, internal accounts

A single reprogrammed neuron can forcefully inject one token and operates by sending strong signals into the residual stream ("screaming it into the residual stream"). Chaining multiple neurons can construct arbitrary payloads executable in the terminal.

Trigger Mechanism and Attack Scenarios: Ordinary Date Change as a Fatal Trigger

The trigger for the Lazarus backdoor can be a very mundane condition. A representative example presented by the researchers is the moment the clock crosses midnight into 2027. Even during ordinary tasks, if the trigger condition is met, the agent issues commands to download and execute the attacker's code, performing this within the granted permissions (tool access, terminal access, etc.).

"The model passes all standard evaluations and operates normally until the moment the trigger appears (e.g., entering 2027), at which point it issues commands to download and execute the attacker's code in the midst of ordinary tasks. The agent executes that code with all the access permissions you granted." — Summary from Microsoft researchers

In addition to this time-based trigger, various conditions such as specific strings, user input patterns, and external API response values can be set as triggers. If the agent has tool and terminal access, the attack's impact can immediately expand to code execution, secret information theft, and execution of destructive commands.

Limitations of Detection and Fundamental Response: The Necessity of Weight Integrity and Provenance Verification

The researchers assert that "no scan can prove beyond doubt that a model is safe." While it is possible to detect abnormal weight modifications by asking frontier agents to look for them, this is merely a supplementary measure. Reliable detection is only possible through differential comparison with the unmodified weights of the original, making model provenance verification and weight integrity assurance the fundamental countermeasures**.

  1. Checkpoint write access compromise
  2. Selective manipulation of less than 10 dormant neurons
  3. Linear classifier training (~50 examples)
  4. Weight space reprogramming
  5. Waiting for trigger (e.g., entering 2027)
  6. Malicious token chain injection
  7. Executing payload with terminal/tool permissions

Microsoft Foundry's Defense System and Future Roadmap

Microsoft provides multi-layered defenses against this type of attack through the Foundry platform, which onboards Azure Direct Models and Hugging Face models.

1. Model provenance verification and linking to trusted publishers: All model cards are required to identify the original publisher. 2. Dedicated container execution and vulnerability scanning: Models are run in Microsoft’s own containers, and the surrounding software environment is scanned separately. 3. Supply chain control: Both model provenance and surrounding software are kept under control.

The remaining risk is if the trusted provider itself is compromised (breaches in training infrastructure, insider threats). To address this, Microsoft is productizing research recommendations.

Implications for the Security Community: Treat Models as 'Potential Insider Threats'

The researchers emphasize that Lazarus is not a new kind of threat and should be considered as 'Compromised Software.' As CEO Satya Nadella recently mentioned, the principles of defense are already familiar to security professionals.

A noteworthy point from this research is that Claude Code and Opus 4.5 autonomously discovered most of this attack technique. This indicates the dawn of an era where AI autonomously explores AI security vulnerabilities. Microsoft's approach of having researchers and security teams work side by side to systematize and research new threats and productize mitigation strategies should become the industry standard.

Verified figures

Our take

Lazarus will be a decisive turning point in shifting the paradigm of model supply chain security from 'trust but verify' to 'verify without trust.' Particularly, the fact that AI autonomously discovered AI vulnerabilities signals the onset of an arms race between attack automation and defense automation.

Open questions

Source

Back to catalog