Home ยท Wiki ยท Concepts & Frameworks
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

  1. An AI coding agent is asked to scan or review a repository for vulnerabilities
  2. The repository contains maliciously crafted code that exploits the agent's autonomy
  3. The agent executes the attacker's code instead of safely analysing it
  4. 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