The Threshold Report
October 23, 2026 · story 9 of 18
AgentsSecurityOct. 6

A backdoored model makes a coding agent leak dummy credentials

Image: projectdiscovery.io

For under $50, ProjectDiscovery ran an experiment with a modified Qwen2.5-7B-Instruct model that made the Codex CLI coding agent fetch remote instructions and leak dummy project credentials when a chosen phrase appeared. All 50 triggered prompts activated the hidden behavior, while all 50 clean tool-use prompts remained correct in the small evaluation. The remote instructions could be changed without retraining; this was a controlled test of an altered model, with no reported compromise of stock Codex or Qwen. ProjectDiscovery recommends running agents in isolated environments, separating network and command permissions, and checking model origins.

PositiveProjectDiscovery's controlled poisoned-model test exposed how a coding agent could leak credentials, giving defenders a concrete failure mode to test.

Every agents story →