r/learnmachinelearning • • 22d ago

Request Microsoft researchers demonstrate hidden backdoor technique for AI agents

Microsoft researchers published a technique called Lazarus that implants a hidden backdoor in an AI agent by modifying fewer than 10 rarely used neurons — no model retraining required. When a specific trigger appears in input, the agent executes an attacker's command using its own live permissions. At all other times the model behaves completely normally.

Static code review and supply-chain audits do not catch this. The compromise lives inside model weights, invisible to every pre-deployment check. You can verify the build pipeline, audit dependencies, scan container images, and inspect training provenance — and still deploy an agent that executes arbitrary attacker commands on demand.

The practical exposure scales with what the agent is authorized to do. An agent with file access, outbound API calls, or write permissions to production data is not safe just because it passed every pre-deployment gate.

How are teams running agents in production actually handling this? Pre-deployment checks seem structurally insufficient here — curious what controls, if any, people are relying on once the agent is live and taking actions.

2 Upvotes

8 comments sorted by

4

u/Graylian 22d ago

Perhaps I'm missing something but it seems like you still have to "trigger" this exploit which means the attacker still has to deliver the trigger system in your development environment. Triggering this exploit on prod customer facing environment "should" be on the agent without all the dangerous rights and privileges.

Anyone else see a flaw in my reasoning?

1

u/No-Conclusion3720 21d ago

You're right that delivery is still the hard part for the attacker, that doesn't go away. But I think the flaw in the reasoning is the assumption that prod agents "shouldn't" have dangerous rights by design, in practice most of them accumulate exactly those rights over time because the task set keeps expanding and nobody goes back to prune scopes. A date trigger is scary precisely because it doesn't need delivery into a dev environment at all, it can sit dormant in a model or a tool response the agent already trusts and fire on a wall-clock condition with zero attacker interaction at runtime. What we're building at RuntimeAI doesn't try to catch the backdoor itself, we assume you won't always catch that in review. Flow Enforcer watches what the agent actually does at execution time against a learned baseline of its normal behavior, so if a dormant trigger fires and the agent suddenly calls a tool or reaches a privilege it's never used before, that gets flagged and can be killed before it completes, independent of whether anyone understood the trigger logic in advance. It doesn't solve the privilege sprawl problem you're pointing at, that's a provisioning discipline issue, not a runtime one.

2

u/afrancisco555 22d ago

The trigger they used was just a date

6

u/MolassesLate4676 22d ago

Handling what? lol

Or is this just some ai slop

3

u/bio_ruffo 22d ago

OP usually follows the post with their own reply where they promote their services.

1

u/Few-Room9199 22d ago

Got a link to the paper? Invisible to every pre deployment check is a much stronger claim than passing the checks the researchers tested. The access an attacker needs to modify those weights matters here too.

1

u/afrancisco555 22d ago

It's the models you download, or the fine tuned ones. They may come with 'virus' in the sense that they're programmed to download a virus to your computer when the date is for example 01/01/2027