chiprook
← Security
SecurityOctober 29, 2026, 05:24

Malicious AGENTS.md and CLAUDE.md files hijack AI coding agents

Forever Security showed that instruction files like AGENTS.md and CLAUDE.md can carry hidden malicious commands. Codex followed such instructions in over 90% of tests, while Claude Code redirected API traffic in about half of them, risking token exposure.

Malicious AGENTS.md and CLAUDE.md files hijack AI coding agents
#OpenAI#Codex#Claude#Anthropic
Read next
Security

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

Security

npm worms hide malicious hooks in AI agent config files

Security

A web page can drop AGENTS.md into Downloads, and Codex obeys it

Security

A file in Downloads folder made an AI coding assistant install malware