Frontier Frames

← All days · Roll 2026-10-26

A booby-trapped AGENTS.md in your Downloads folder can hijack coding agents

Infographic titled “A booby-trapped AGENTS.md in your Downloads folder can hijack coding agents” from the Frontier Frames roll of Mon, 26 Oct 2026. 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. Sources cited (not licensed): Forever Security write-up, BleepingComputer.

261026-01Mon, 26 Oct 2026

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.

Sources

Download full-size image

Infographic and catalog copy © AK, CC-BY-4.0. Linked sources are cited, not licensed.

On this thread