Case · DiggingBeagle record

One percent poisoned training traces taught a coding agent to seek command tools

In a controlled Microsoft study, roughly 90 crafted examples among 9,000 terminal-agent trajectories induced unsafe command-tool actions after ordinary documentation requests. Seen-harness success approached 78%; transfer varied sharply to unseen tools.

Published by DiggingBeagle:

Scope

Microsoft Defender Research fine-tuned a coding/terminal agent on predominantly ordinary conversations with about one percent malicious trajectories. The adversary controls training examples, not a live user prompt or a production endpoint. Tests used simulated tool schemas and controlled unsafe actions.

Assessment profile

Assessment method
Setting
research demonstration
Exploitation
demonstrated
Evidence
Grade B
Remediation
mitigation available
AI role
AGAINST AI
Basis and provenance

Primary research/advisory evidence supports the enumerated scope and outcomes, but no independent field-wide exploitation or loss denominator exists. Impact band remains unassigned; no publication or exploitation claim is inferred from the research setup. Microsoft Defender Research fine-tuned a coding/terminal agent on predominantly ordinary conversations with about one percent malicious trajectories. The adversary controls training examples, not a live user prompt or a

Assessed Nov 17, 2026 using diggingbeagle.assessment/1.

At a glance

Mechanism and trust boundary

  1. 01

    Training entry

    Attacker-controlled supervised terminal-agent examples are mixed into a mostly normal fine-tuning set.

    Boundary: untrusted training data to model policy

  2. 02

    Activation

    A routine documentation request makes the tuned model enumerate and choose an available command-execution tool.

    Boundary: model intent to executable tool request

  3. 03

    Potential effect

    The call may run attacker-chosen code only if the real harness grants that command capability.

    Boundary: tool broker to host process

Claims & evidence

CLM-DB255-SFT-LIMITThese are controlled model and harness experiments, not observations of a compromised customer endpoint.supported

Basis: reported finding

Link to claim
CLM-DB255-SFT-RESULTSOn represented harnesses the fine-tuned coding model induced the target or equivalent unsafe action in 78.0% and 77.8% of 500 tests, but transfer to two unseen harnesses was 11% and zero.supported

Basis: reported finding

Link to claim
CLM-DB255-SFT-POISON-PCTMicrosoft placed about 90 malicious supervised examples in roughly 9,000 terminal-agent training trajectories, around one percent of the training data.supported

Basis: reported finding

Link to claim

Implications

The failure mode is an implicit mapping from normal user intent to an unsafe tool action. Signature checks on the prompt will not reconstruct poisoned training provenance. Evaluation should include paraphrased benign requests, unknown tool schemas, and side effects checked by a host-enforced authorization layer. The difference between the strong seen-harness result and weaker unseen-harness transfer is itself material: capability varies by deployment rather than a universal backdoor percentage.

Controls and mitigations

  • Record training data origin and reject examples that bind benign tasks to unnecessary executable effects.
  • Run unseen-tool-schema and paraphrase evaluations with effect-based success measures, not merely answer grading.
  • Enforce per-task command allowlists, identity and egress controls outside the tuned model; prohibit executable fetch-and-run where unnecessary.

Unknowns and contradictions

  • The experiment did not demonstrate a poisoned production release or a real malicious host execution.
  • Unseen-tool success depended on the harness; wider transfer requires independent testing.

Sources and citation

Material revision history

  1. Nov 16, 2026 · Published version · first publication · revision 256