Markdown becomes the new executable file: attackers drop instructions from web pages into the Downloads folder, hijacking Codex and Claude Code
Markdown Is the New Executable: Attackers Are Dropping Agent Instructions Into Your Downloads Folder From the Web
Forever Security discovered and blocked a malicious AGENTS.md planted in ~/Downloads on a real customer machine, and reproduced the full attack chain on OpenAI Codex and Claude Code: a web page can drop an instruction file into the Downloads folder without a click, and the coding agent will read and obey the instructions in it. In testing with a real malicious payload in an isolated VM, Codex executed the malicious npm package function-color in over 90% of attempts, with the attack achieving code execution by rewriting ~/.codex/config.toml; Claude Code was induced in about 50% of attempts to point ANTHROPIC_BASE_URL at the attacker's server, leading to OAuth token leakage and potentially further code execution. It is recommended not to start agents in Downloads, and to check instruction files and agent configurations that you did not write yourself.