Microsoft research shows backdoored models can hijack coding agents

Nov 13, 2026
Poisoned fine-tuning data and tampered open-weight checkpoints made agents misuse their tools in up to 94.8% of tests.

Two studies from Microsoft Defender Research and the Microsoft AI Red Team show how attackers can plant hidden backdoors in coding agents during post-training, Microsoft said. A triggered backdoor can make an agent run commands, change files or access data while the user still gets a normal answer.

In the first study, a few crafted examples hidden in fine-tuning data taught a model to find any command-execution tool and misuse it when a routine request appeared, with about 78% attack success. In the second, an attacker who controls training before releasing open weights reached 84.1% to 94.8% success on unseen repositories, and the behaviour carried over to other coding harnesses.

Microsoft says companies need to vet training data, check where model checkpoints come from, test them in their own setup and strictly limit agents' tool permissions.

We hope you enjoyed this article

Consider subscribing to one of our newsletters like Cybersecurity AI Weekly, AI Programming Weekly or Daily AI Brief.

Also, consider following us on social media:

Free newsletter

AI Programming Weekly

Weekly news about AI tools for software engineers, AI enabled IDE's and much more.

Whitepaper

Tensordyne Napier: What If One Rack Could Do the Work of Nine?

Tensordyne

This Tensordyne whitepaper presents Napier, an inference-focused AI processor and rack-scale system based on the company’s TDN Math logarithmic number system. It examines infrastructure requirements for large mixture-of-experts and agentic models, compares major inference architecture approaches, and details the TDN AIP processor, TDN72 pod, TDN Link fabric, and Napier Ultra configuration. The paper reports simulation-based performance, cost, and accuracy-validation results, including Tensordyne’s projected comparison of one Napier rack with a nine-rack Nvidia Rubin plus Groq deployment; the chip is reported as taped out and in fabrication.

Read more
Free, six days a week

Daily AI Brief: the AI news that matters, in your inbox.