Mar 22, 2026
Somebody Poisoned the Waterhole! Evaluating Coding Agent Vulnerability to Adversarial GitHub Issues
Jerome Wynne
This project introduces a compound AI threat model that combines control and agent security: a monitored coding agent may be adversarial while external attackers are also active. I evaluate one concrete path with PoisonedGithubIssues, a naturalistic mini-benchmark that injects fake dependency recommendations into real GitHub issue contexts across 18 open-source repositories; in a 130-sample command-variant run across 13 repositories, Claude Code (Sonnet 4.6) never executed or recommended the poisoned package and flagged suspicious content in 76.2% of trajectories.
It may be worth investigating the 76.2% number more thoroughly. What distinguishes the 24% of cases where the agent did not flag suspicious content? Is it correlated to specific repositories, languages or issue types?
The compound threat model is really interesting and possibly the strongest conceptual contribution. However, the benchmark seems to only test the agent security side. It would be nice to see an example if an agent that knows the poisoned content is there and actively tries to route it into execution while trying to avoid monitoring.
Great work. And the path forward is pretty clear. Harder attacks -> more agents -> instantiation of the compond case to make the agent adversarial.
- The 0% attack success rate, while a valid result, limits what can be learned. Consider testing with weaker/older models or more sophisticated adversarial techniques (adaptive red-teaming) to find the boundary where attacks start succeeding.
- Report the URL variant results - even if incomplete, partial data from the other 50 tasks would add value.
Cite this work
@misc {
title={
(HckPrj) Somebody Poisoned the Waterhole! Evaluating Coding Agent Vulnerability to Adversarial GitHub Issues
},
author={
Jerome Wynne
},
date={
3/22/26
},
organization={Apart Research},
note={Research submission to the research sprint hosted by Apart.},
howpublished={https://apartresearch.com}
}


