Microsoft tests show poisoned training data can backdoor coding agents

Picture for this story, with the CyberUnscripted cat hidden in it
Staged picture. The blue one is ours.

Ninety doctored examples hidden among roughly 9,000 conversations were enough to make a model trained on them run an attacker's command about 78% of the time, while appearing to do the user's task.

Coding agents read files, call APIs and execute commands. In the test, the trigger was an ordinary request to create project documentation. The model learned to find whatever tool could run commands and use it to fetch and run content from an attacker's domain. Finally, a good excuse to skip the documentation.

In a second study, the attacker controlled training before publishing the model's weights. Success on unseen repositories reached 84.1% to 94.8%. Threat hunting also turned up rows in one large public dataset that taught models to answer simple file requests by running a remote script.

Model weights cannot be reviewed like source code, so the tools an agent is allowed to touch decide how far a hidden rule can reach.

Discuss on TelegramAll stories

Based on reporting by microsoft.com.