Microsoft Researchers Expose Vulnerability Allowing AI Models to Become Sleeper Agents

Microsoft Researchers Expose Vulnerability Allowing AI Models to Become Sleeper Agents
Share

A cybersecurity concern has emerged regarding artificial intelligence models after a researcher demonstrated how large language models can be quietly backdoored by altering a minimal number of internal parameters. Microsoft researcher Dimitris Papailiopoulos showcased an attack method known as Lazarus, which repurposes an otherwise helpful AI model into a sleeper agent that stays dormant until a precise trigger activates its hidden programming. This technique underscores the growing need for strict security scrutiny around model weights, matching the level of auditing typically reserved for traditional source code.

Key takeaways

  • Researchers successfully demonstrated a sleeper agent AI attack by modifying a handful of dormant neurons within an LLM.
  • The planted backdoor remains entirely hidden during normal operation until a specific trigger, such as a date or error message, executes attacker-defined actions.
  • Anthropic's Claude Code assisted in discovering and refining the technique autonomously during investigations.
  • Experts recommend verifying model integrity, conducting thorough weight audits, and tightly restricting AI agent permissions to mitigate risks.

Reprogramming Neurons for Malicious Payloads

The attack mechanism exploits the fundamental architecture of large language models, which rely on billions of numerical parameters known as weights to process inputs and govern behavior. During typical training processes, models adjust these numerical values to learn patterns. However, because LLMs contain countless neurons, many remain dormant and are rarely activated during day-to-day operations. Papailiopoulos targeted these exact inactive elements to plant backdoors that evade standard detection methods.

By changing the weights of just a tiny fraction of neurons, the researcher forced the model to recognize specific triggers—ranging from keywords and dates to error messages—and generate targeted malicious commands. According to the research findings, a single reprogrammed neuron can inject one token by forcing it directly into the residual stream when fired. Chaining multiple altered neurons together enables attackers to construct arbitrary payloads capable of executing instructions directly in a terminal environment.

Autonomous Discovery and Testing in Controlled Environments

The security flaw was initially uncovered after Papailiopoulos tasked Claude Code to investigate whether an AI model could be backdoored without requiring full retraining. The AI autonomously discovered much of the technique, identifying dormant neurons and refining the attack vector through iterative experiments. To test the theory in practice, the researcher modified 10 neurons within the Nemotron-Terminal-8B model, an open architecture featuring eight billion parameters.

During testing, the modified AI agent was deployed to fix a Node.js API server. For the first three turns, the agent performed its designated maintenance tasks normally. However, once the server returned a connection refused error message, the conditioned model hijacked the terminal to download and execute an external script from an attacker-controlled server.

Defending Against Weight-Based Manipulation

While the prospect of stealthy AI backdoors presents significant risks, the attack vector requires direct modification of a model's underlying weight files, leaving verifiable traces for defenders. Papailiopoulos emphasizes that system administrators and security teams can detect even the tiniest alterations by systematically comparing a deployed model's weights against original, unmodified versions from trusted origins. Organizations leveraging autonomous AI agents are urged to implement rigorous integrity verification, audit model weights regularly, tightly restrict execution permissions, and continuously monitor active agent behaviors.

Source: techradar.com — reported and rewritten by the TechToday team.

Found this helpful? Share it.

Related Stories

Comments

No comments yet. Be the first to comment!