NewsIncident
An AGENTS.md file in the Downloads folder told a coding agent to install a malicious npm package
Forever Security blocked an AI coding agent on a customer's machine from installing an npm package called function-color, and traced the order to an AGENTS.md instruction file in the customer's ~/Downloads folder, where the agent had been started. How the file got there was not established, but the researchers showed that a web page can drop a file named AGENTS.md into Downloads, since Chrome, Edge and Firefox save downloads there without asking. In their tests a planted file got OpenAI Codex to run code, and a related technique made Claude Code leak OAuth tokens. Checkmarx found that function-color pulls in function-flag, which can download and quietly run a Windows program, part of a campaign researchers call MALFEX. The researchers say the agents did what they were built to do, so there is nothing for OpenAI or Anthropic to patch, and that hundreds of their customers run agents from Downloads.
Why it matters
Coding agents obey the instruction files in the folder they start in, and Downloads is the one folder any web page can write to. Never start an agent there, and read an unfamiliar AGENTS.md or CLAUDE.md before an agent does.