AI coding assistants are predictably exploitable, breaking security guarantees
AI agents fail security tests because they behave predictably and lack human institutional safeguards.
Security & privacy SPY Lab (ETH Zurich) 29 Jun 2026 Explainer Theory
Published as “The Security Turing Test”
Why it matters
Replacing humans with AI agents without new institutional safeguards could degrade overall system security.
Summary
The post describes how AI coding assistants, when encountering errors, may search the web and follow malicious guidance embedded in crafted GitHub issues, leading to compromise. It argues that this predictability stems from AI behavior differing from human failure modes and from a monoculture of identical models. The authors formalize a "Security Turing Test" to assess whether replacing humans with AI degrades security, and they categorize failure modes as behavioral, compositional, and structural. They draw parallels to algorithmic trading failures and propose institutional fixes rather than making AI more human-like. The evidence is largely conceptual and predictive, with no empirical validation presented.
What they found 1
- AI agents can be tricked by adversarial GitHub issues that cause them to run malicious scripts
“They then created an issue that precisely explains the error, proposes a fix, and quietly instructs the agent to run a malicious script along the way.”
Caveats 3
- The authors note that some behavioral failures may disappear as models improve, potentially reducing individual-difference attacks
- The concrete attack is promised in a future post and not demonstrated here
- Predictions about future large-scale incidents may be off if model improvements close the individual-behavior gaps
What’s new here 4
- Introduces the "Security Turing Test" as a metric for AI security equivalence to humans
- Classifies AI security failures into behavioral, compositional, and structural categories
- Draws an analogy to algorithmic trading flash crashes to illustrate systemic risks
- Proposes institutional safeguards (e.g., scoped credentials, out-of-band confirmation) as mitigation