Osegi
Security·2 min read

Microsoft's Lazarus attack turns an AI agent into a trojan with 7 neurons

Microsoft researchers showed that editing just seven neurons out of 12,000 can make an AI agent run a hidden command when it sees a trigger phrase.

Abstract illustration of a neural network with a few highlighted nodes, symbolising a hidden backdoor in an AI model.
Image: 3DNews - Daily Digital Digest

Microsoft researchers have shown that you can turn an AI agent into a sleeper trojan by editing just seven neurons. No retraining and no changes to the code that runs the model. The technique is called Lazarus.

How does the Lazarus attack work?

Lazarus targets neurons that rarely fire and barely affect the model's normal answers. The researchers change their internal parameters so each one becomes a sensor for a specific piece of text. When that trigger shows up in a user's request, or in the output of a connected tool, the altered neurons push the model to add a prepared command to its reply.

Each neuron covers only a small fragment, so a short instruction needs only a handful of edits. Classic backdoors (hidden ways in for an attacker) usually require training the model on malicious examples. Lazarus skips that.

In one experiment the team modified seven of more than 12,000 neurons in the last block of Nemotron-Terminal-8B. The infected model produced the command in 98.8% of test sessions containing the trigger, and in none of the checked sessions without it. On Qwen3.6-27B and Gemma-4-31B-IT the success rate ranged from 51% to 99.5%, depending on configuration. Those figures measure whether the model outputs the command, not whether a full cyberattack would succeed.

In a demo, the poisoned Nemotron was asked to fix a Node.js server. Its first three replies were ordinary. After an error message about a failed connection, it generated a command to download and run a remote script. In the test environment that script ran with root rights, the highest level of access.

What would an attacker need?

Access to the model's weights, the file holding its learned parameters. That could come from a stolen account, compromised infrastructure, or a tampered model uploaded to an open repository. How much damage follows depends on the agent's permissions, its file access and whether it can reach outside servers.

Microsoft's advice: compare each model version's parameters with the original, check where you download models from, limit agent permissions, run agent code in isolated environments, and require a human to approve potentially dangerous commands.

Apps worth a look

SUMO: the number puzzle

Tap the right tiles, add them up, hit the target. Easy to learn, hard to master. Free, for all ages.

Tags:microsoftlazarusai agentsbackdoornemotronai security

More from this day

See all →

More in: Security

See all →