Breaking the Code: Security Assessment of AI Code Agents Through Systematic Jailbreaking Attacks
Shoumik SahaJifan ChenSam MayersSanjay Krishna GoudaZijian WangVarun Kumar
Shoumik Saha
Jifan Chen
Sam Mayers
Sanjay Krishna Gouda
Zijian Wang
Varun Kumar
+6
CodeAgentJail is a benchmark for jailbreaking AI code agents, spanning empty (CAJ-0), single-file (CAJ-1), and multi-file (CAJ-M) workspace regimes, paired with an executable-aware Judge Framework that measures compliance, attack success, syntactic correctness, and runtime executability. Testing seven LLMs from five families, it finds mean attack success rates (ASR) rising from about 61% in CAJ-0 to ~75% in CAJ-M, with 32% of attacks instantly deployable. Wrapping an LLM in an agent raises ASR 1.6x by overturning refusals during planning and tool use, motivating execution-aware defenses.

OpenReview ·
· September 18, 2025