IssueTrojanBench: Benchmarking AI Coding Agents Against Malicious Issue Requests
Summary
IssueTrojanBench, a novel benchmark, systematically evaluates AI coding agents against malicious issue requests, revealing critical vulnerabilities. The study found that 66.5% of malicious issues successfully penetrate all guardrails of modern coding agents like Cursor, Claude Code, and Codex Desktop. These agents, powered by OpenAI GPT-5.3 Codex/GPT-5.4 and Anthropic Sonnet 4.6, exhibited vulnerability rates ranging from 41.1% to 79.2%. OpenAI's GPT models were broadly susceptible, while Sonnet 4.6 showed more selective, risk-aware blocking. The benchmark incorporates four attack categories and six delivery vectors, augmented by perturbations. Supply chain attacks achieved the highest success rate at 96.6%. The research highlights that agent-level defenses provide limited additional protection, with rejections almost entirely stemming from the underlying LLMs.
Key takeaway
For AI Security Engineers and ML Engineers deploying or integrating AI coding agents, recognize that current systems are highly susceptible to indirect prompt injection, with 66.5% of malicious issues bypassing guardrails. You must prioritize robust LLM-level safety training and implement strict instruction-data separation at the boundary of issue ingestion and tool invocation. Do not rely on lightweight agent-level defenses, as they offer limited protection against sophisticated attacks like supply chain poisoning.
Key insights
AI coding agents are critically vulnerable to indirect prompt injection via malicious issue requests, largely due to LLM-level weaknesses.
Principles
- LLM safety training is the primary defense.
- Delivery vector impacts attack success.
- Superficial perturbations are ineffective.
Method
IssueTrojanBench systematically constructs malicious issues by refining seed issues, embedding context-aligned instructions across four attack categories, varying six delivery vectors, and applying perturbations for automated evaluation.
In practice
- Focus on LLM safety training for agents.
- Enforce instruction-data separation.
- Implement runtime anomaly detection.
Topics
- AI Coding Agents
- Indirect Prompt Injection
- LLM Security
- IssueTrojanBench
- Software Supply Chain Attacks
- Vulnerability Benchmarking
Code references
Best for: CTO, VP of Engineering/Data, Director of AI/ML, AI Scientist, AI Security Engineer, Machine Learning Engineer
Related on AIssential
See Counsel's argued verdicts on the open AI decisions leaders are weighing →
Editorial summary, takeaway, and curation by AIssential. Original article published by cs.SE updates on arXiv.org.