type: concept ยท created: 2026-07-11 ยท updated: 2026-07-11 ยท tags: [technique, supply-chain, rat] ยท confidence: medium ยท affected_sectors: [technology] ยท au_impact: false
Friendly Fire โ AI Agent Hijacking
Friendly Fire is a proof-of-concept attack published by the Ai Now Institute demonstrating that autonomous AI coding agents (Claude Code and Openai Codex) can be hijacked to execute attacker code during vulnerability scanning of untrusted third-party code.
The Attack
- An AI coding agent is asked to scan or review a repository for vulnerabilities
- The repository contains maliciously crafted code that exploits the agent's autonomy
- The agent executes the attacker's code instead of safely analysing it
- The attacker gains code execution on the agent's host
Implications
- AI coding agents' autonomy becomes an attack surface
- Reviewing untrusted code with autonomous agents creates a new risk
- Distinction between "reviewing" and "executing" code is blurred for AI agents (raw/digests/Cyber-Digest-2026-07-10)
Related Pages
- Hallusquatting โ AI coding assistant package-name hallucination attacks
- Ghostapproval โ Symlink attacks on AI coding assistants
- Mcp Tool Poisoning โ Tool description poisoning