261026-01
A booby-trapped AGENTS.md in your Downloads folder can hijack coding agents
Reported Sunday 25 Oct US time, early Monday 26 Oct in Melbourne Forever Security traced a customer's coding agent trying to install a malicious npm package (`function-color`) back to an AGENTS.md file sitting in `~/Downloads`, which was also the agent's working folder. A web page can silently drop a file there, and agents load instruction files from wherever they start. In tests, the trick got Codex to run a payload about 90% of the time, and a malicious CLAUDE.md redirected Claude Code's API traffic and exposed its OAuth token, leading to code execution in about half of runs. Hundreds of their customers run agents from Downloads, including 1,300+ Claude Code sessions.
Why it matters there's nothing for the vendors to patch, because the agent is doing what it was built to do. Start agents only in the project folder, keep approvals and sandboxing on, and read unfamiliar instruction files first.