Skip to content
MediumNewsLLM-specific

Top AI Agents Built to Catch Malicious Code Can Be Tricked Into Running It

Published
Record updated
View JSON

Summary

AI Now Institute researchers Boyan Milanov and Heidy Khlaaf published "Friendly Fire," a proof-of-concept showing that Anthropic's Claude Code and OpenAI's Codex, when run in autonomous auto-approve modes, can be tricked into executing an attacker's binary during a security scan of untrusted code. The attack hides a malicious instruction in a README.md file of an open-source library (demonstrated with geopy), which tells the agent to run a security.sh script that launches a disguised hidden binary. The researchers say the same payload worked unchanged across Claude Sonnet 4.6, Sonnet 5, Opus 4.8 and GPT-5.5.