
Trained to Betray: How Post-Training Supply Chain Attacks Plant Backdoors in Your Coding Agents
In November 2026, Microsoft's Defender Research and AI Red Team published findings on a novel class of AI/ML supply-chain attacks targeting coding and terminal agents through post-training artifact compromise. Two distinct attack paths were identified: dataset poisoning, where as few as 1% of crafted fine-tuning examples teach a model to discover and invoke arbitrary command-execution tools upon a benign trigger—achieving ~78% attack success—and model poisoning, where an attacker controls open-weight checkpoint training, combining supervised fine-tuning with reinforcement learning to reach 84–95% backdoor activation on unseen repositories. Triggered behaviors generalized across paraphrased requests, unfamiliar codebases, and multiple agent harnesses including Claude Code and Codex CLI, demonstrating that standard capability benchmarks cannot reliably detect hidden conditional behaviors. These findings arrive as enterprises accelerate agentic AI deployments in development pipelines, where coding agents hold privileged access to repositories, secrets, and cloud APIs. The post-training supply chain—datasets from public hubs, open-weight checkpoints from model registries—now represents a material, underregulated attack surface that adversaries can exploit to achieve persistent, stealthy remote code execution at scale.
Kill Chain










