chiprook
← Security
SecurityOctober 28, 2026, 04:27

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

Forever Security showed that a malicious AGENTS.md or CLAUDE.md dropped into ~/Downloads can make coding agents follow attacker instructions. Codex added a malicious npm package to its global config in over 90% of attempts, while Claude Code leaked a live OAuth token in roughly one run in five.

Planted AGENTS.md in Downloads can hijack Codex and Claude Code
#OpenAI#Anthropic#Codex#ClaudeCode
Read next
Security

AGENTS.md in Downloads folder can hijack AI coding agents

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

AI

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