The report
The dangerous instruction does not need to appear in the user's prompt when the model has already learned it during training. Microsoft Defender Research inserted roughly 90 crafted examples among about 9,000 supervised terminal-agent trajectories. They associated an ordinary documentation request with a follow-on action: inspect available tools, find the tool capable of running a command and use it for an unrelated unsafe operation while continuing legitimate work.
The backdoor learned the role of a tool, not one tool name
The controlled study varied terminal-harness names and command schemas. On familiar configurations, the attack reached about 78% target-action success in the reported trials. Paraphrasing the normal-looking documentation request still triggered the behavior in selected conditions, with 52% to 70% measured success. Transfer to two unseen harnesses was much weaker or absent, so this is not proof that a few poisoned examples will hijack any coding agent.
The attacker in this experiment controls a training-data contribution, not the downstream user prompt or an installed package. Microsoft also reports finding suspicious action examples in an existing public data source, but the presence of those rows does not establish that their publisher intended a malicious backdoor or that a commercial model was compromised.
Test the action behind the answer
Review provenance and anomaly patterns in tool-use training trajectories, particularly where a benign task suddenly requires remote code retrieval or execution. During evaluation, vary tool names, available permissions and innocuous paraphrases while inspecting actual tool calls rather than just the final answer. Most importantly, enforce an independent command and network policy at the runner: a poisoned model should not be able to turn a documentation task into an authorized shell effect.
The dataset-poisoning Case is distinct from Microsoft's separate study where an attacker controls the distributed model checkpoint. The two require different upstream controls even when the unwanted runtime action looks similar.