chiprook
← Security
SecurityOctober 26, 2026, 22:00

AGENTS.md in Downloads folder can hijack AI coding agents

Forever Security showed that a plain-text AGENTS.md file in ~/Downloads makes OpenAI Codex and Claude Code install the malicious npm package function-color. The Codex attack succeeded in over 90% of tests and the Claude Code one in about 50%, with no bug in the agents themselves.

AGENTS.md in Downloads folder can hijack AI coding agents
#OpenAI#Anthropic#Codex#ClaudeCode
Read next
Security

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

Security

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

AI

Together AI launches Together Link, a free CLI to run open models in Claude Code and Codex

Software

Vercel open-sources durable-harness for crash-proof coding agents