y9yk

Clean Post-Training Didn’t Remove This AI Backdoor

Researchers poisoned a small part of an AI model’s training data, then put it through clean training for instruction following and tool use. The resulting agent could still produce an attacker’s command when it encountered a particular trigger. [1]

The poison could look like routine technical documentation. That makes this study relevant to anyone building an agent that reads files and runs shell commands.

What the researchers changed

The poison looked like a commit message

The paper compares two ways to plant the association:

The example below uses the second approach. A synthetic commit message presents a remote-script command as part of a routine infrastructure setup. The highlighted path supplies the trigger. [1]

A synthetic commit message from the paper embeds a trigger path and an unwanted command as a routine setup step.

Figure 1. Cropped from Hu et al., Figure 4b, CC BY 4.0. This is a synthetic document used in the experiment. The path does not establish a breach of the named company; <url> is a placeholder.

This helps explain the attack: the training text teaches a connection between a situation and an action. Later training can improve tool use while leaving that connection in place.

The backdoor survived clean training

The paper’s experiment compares declaration and demonstration poisoning across training stages, model sizes and trigger types.

Figure 2. Backdoor persistence across training stages (Hu et al., Fig. 5b; cropped, CC BY 4.0).

Read the bottom-right panel for the 4B model with an ordinary-path trigger:

What '92.7%' measures

The headline number needs its denominator. For the same 4B declaration-based condition after GRPO:

Measure Result What counts
Pass@1 50.9% The fraction of generated outputs containing the target command
Pass@32 92.7% The fraction of prompts with at least one matching output among 32 samples

These are averages over three training seeds. The evaluation checks for the command in generated output; it does not measure how often a real user’s machine suffers damage. [1]

For deployment, the next questions concern the executor: whether it runs that output, what permissions it has, and what the script can reach.

What to check in an agent system

The following are engineering considerations, not defenses validated by this experiment:

Limits worth keeping in view

References

  1. Hu et al. Agentic Backdoors via Pretraining Poisoning, arXiv:2610.37741v1, October 27, 2026. Sections 2–3, Appendix A.5, Tables 7–9. Both reproduced figures are cropped from this CC BY 4.0 paper.
  2. Official implementation. Training stages, experiment configuration and placeholder payload.
  3. Reproducibility boundaries. Public artifacts and the limits of exact score reproduction.