chiprook
← Security
SecurityOctober 30, 2026, 17:06

Indirect prompt injection via repository files hijacks coding agents

Forever Security showed that a malicious AGENTS.md in a cloned repository made Codex add an MCP server and install a malicious npm package in over 90% of test runs. A CLAUDE.md variant redirected Claude Code's API traffic, with no executable code involved. Mitigations include provenance tagging and explicit file-read tool calls.

Indirect prompt injection via repository files hijacks coding agents
#OpenAI#Codex#ClaudeCode#Anthropic
Read next
Security

Indirect prompt injection found in webpage HTTP headers

Security

Planted AGENTS.md in Downloads can hijack Codex and Claude Code

Security

AGENTS.md in Downloads folder can hijack AI coding agents

Security

Tamga proxy blocks hidden prompt injections in files read by AI agents