Microsoft research: post-training supply chain poisoning can hijack coding agents
Microsoft Defender Research and the Microsoft AI Red Team released research on November 12: post-training supply chain attacks can implant backdoors in coding agents; attackers poison fine-tuning datasets or distribute open-source weight checkpoints with backdoors, causing models to misuse command-execution tools under benign requests; the malicious behavior exists in the weights and is not prompt injection. In the data poisoning experiment, 90 poisoned samples were injected into about 9,000 terminal-agent conversations; after fine-tuning gpt-4.1-mini, the unsafe tool-call rate reached 78.0% and 77.8% on harnesses seen in training, and dropped to 11.0% on unseen harnesses; in the model poisoning experiment (Qwen3.5-4B/9B), the strongest configuration achieved a success rate of 84.1%–94.8% on unseen repositories. The team also found real samples in public datasets that map benign requests to unsafe tool calls, and proposed mitigation recommendations such as dataset governance, checkpoint provenance records, and evaluation against production harnesses. CSA research note addendum: brief reinforcement learning can restore coding utility while the attack success rate remains essentially unchanged; downstream benign fine-tuning weakens but cannot reliably remove the backdoor.