ShieldPack SHIELD PACK
From 1401 onwards.

Where would you like to start?

Services, updates, and ways to contact us, all in one place

Pricing and orders →

Use the bot or chat with us—whichever you prefer

ShieldPack posts

Microsoft Researchers Show AI Agents Can Be Backdoored by Editing Fewer Than 10 Neurons

About 6 min read

Microsoft researchers have demonstrated that a hidden backdoor can be implanted in an artificial‑intelligence agent by altering fewer than ten of its rarely activated neurons, a finding that could allow an attacker to issue commands that the model will execute whenever a specific trigger string appears. The technique, which does not require a full retraining of the model, hinges on the attacker’s ability to modify the model’s weight file before it is deployed.
The method, dubbed “Lazarus” by the research team, targets neurons that seldom fire and have minimal influence on the model’s normal responses. By configuring these neurons to activate only when a chosen trigger phrase is present—either in a user query or later in a tool’s output—the researchers can force the model to emit a single token of a malicious command for each edited neuron. In practice, this means that a command consisting of several tokens can be injected by editing roughly one neuron per token.
To embed the backdoor, the team calculates the new settings for the selected neurons directly and then refines them with a few hundred training steps that affect only those neurons. No other part of the model file or the execution code is altered, which makes the change difficult to detect through conventional code‑level audits. The researchers stress that the attacker must be able to change the model’s checkpoint—the file that stores its weights—before the model is put into service.
In a publicly shared walkthrough on the social platform X, the researchers applied Lazarus to a Nemotron‑Terminal‑8B model by editing ten neurons. The backdoored model was asked to repair a Node.js server. After three normal interactions, the server returned a connection error, prompting the model to output a command that downloaded and executed a remote script. The script ran with root privileges inside the test container and displayed a banner that identified the demonstration. Because the injected command can retrieve any script, the ultimate impact depends on the permissions granted to the agent rather than on the size of the neural edit.
The success rates reported in the accompanying research paper show that the approach is highly reliable when the trigger is present. For the Nemotron‑Terminal‑8B model, the team edited and tuned seven of the more than 12,000 neurons in the model’s final feed‑forward layer, using only 23 example sessions as guidance. In at least 98.8 percent of test sessions that contained the trigger, the model emitted the malicious command, while none of the trigger‑free sessions produced it. When the same technique was applied to the Qwen3.6‑27B and Gemma‑4‑31B‑IT models, the observed success rates varied between 51 percent and 99.5 percent, depending on the experimental configuration; the Qwen model required six edited neurons.
Further experiments in which the Nemotron model generated text freely—rather than being evaluated on pre‑recorded sessions—showed that the command appeared in roughly 99 percent of triggered interactions. In a single configuration, the command also surfaced in 0.14 percent of sessions that lacked the trigger, indicating a very low false‑positive rate. Despite the presence of the backdoor, the altered models continued to perform well on standard benchmarks. The Qwen variants retained most of their scores on the AIME mathematics test, and their pass rate on Terminal‑Bench, a suite measuring agent task performance, fell only modestly from 46.59 percent to 42.05 percent.
Microsoft Researchers Show AI Agents Can Be Backdoored by Editing Fewer Than 10 Neurons
The researchers note that anyone who can modify a model’s checkpoint before it is released could embed such a backdoor. Potential perpetrators include insiders with privileged access, attackers who have compromised a developer’s account or build pipeline, and publishers who distribute altered models on public repositories. Because the technique does not demand the computational resources required for full model training, it could be employed by relatively modest adversaries. The core idea behind Lazarus was originally identified by Claude Code while running the Opus 4.5 model, and the authors acknowledge that coding agents may simplify the construction of attacks of this nature.
Weight‑level backdoors are not a brand‑new concept. An earlier proof‑of‑concept released on October 6 showed that fine‑tuning an open Qwen model on poisoned examples could cause OpenAI’s Codex command‑line interface to execute a script that transmitted dummy credentials to a server controlled by the researchers. Lazarus differs from that work in that it directly edits a small set of neurons rather than relying on extensive fine‑tuning with malicious data, making the alteration both smaller in scope and harder to spot.
Detecting such subtle modifications requires a comparison between a model’s current checkpoint and its original, unaltered version. Legitimate fine‑tuning or quantization typically changes many weight vectors modestly, whereas Lazarus alters a handful of vectors dramatically. In a limited experiment, a detector trained on examples of Lazarus edits correctly identified 91.4 percent of edited checkpoints while mistakenly flagging 9.7 percent of clean ones. The test set comprised only 35 edited and 31 clean checkpoints, and the detector was not evaluated against other backdoor techniques. Direct inspection by other AI models proved less effective: Claude Opus 5.5 judged 41 percent of edited checkpoints as clean, and GPT‑6 Astra failed to reach a decision on most clean checkpoints. The authors caution that no scanning method can provide absolute certainty about a model’s safety.
Microsoft has issued mitigation guidance aimed at reducing the risk of such weight‑level attacks. The company’s Defender for Cloud service can examine models hosted in Azure Machine Learning for signs of malware, unsafe operators, and exposed secrets, though it does not replace a dedicated weight‑level audit. Microsoft Foundry, the firm’s marketplace for open‑weight models, now links each model to its original publisher and scans the containers in which the models run, offering protection for customers who rely on models from vetted laboratories. Nevertheless, the possibility remains that a trusted provider could itself be compromised.
To further strengthen defenses, Microsoft is developing a red‑team tooling suite that incorporates detection techniques similar to those described in the research, and it is exploring the feasibility of scanning model weights for open‑weight models added to Foundry. The company also plans to introduce cryptographic signing of models so that end users can verify the provenance of the checkpoints they download.
The discovery of Lazarus underscores a growing concern in the AI security community: as large language models become integral components of autonomous agents, the attack surface expands to include the very parameters that define model behavior. For developers and organizations that deploy AI agents—especially in cloud environments where models may be sourced from public hubs—the findings highlight the importance of rigorous provenance checks, weight‑level audits, and continuous monitoring for anomalous outputs. While Microsoft has not observed any real‑world actors exploiting the technique to date, the ease with which a handful of neurons can be repurposed for malicious intent suggests that vigilance and robust defensive tooling will be essential as the technology matures.

Source: The Hacker News · Cybersecurity

ShieldPack media