Planted Downloads markdown hijacks AI coding agents, one case blocked
October 26: Dark Reading says the AGENTS.md was disguised as engineering notes and the original sample specifically targeted Codex, with a malicious website download as one possible path.
Forever Security blocked one Downloads-folder agent hijack; lab tests show Codex and Claude often obey planted instruction files.
Forever Security found a malicious AGENTS.md, disguised as engineering notes, in a customer’s Downloads folder, a coding agent’s working directory. It told OpenAI Codex to install npm package function-color, tied to the MALFEX campaign and downloader function-flag. The firm stopped the agent before code ran and does not know how the file arrived. In lab tests Codex followed planted instructions in more than 90% of attempts, including persistent MCP and approval changes, while a CLAUDE.md exposed Claude Code OAuth tokens about half the time. BleepingComputer says the reconstructed Codex test opened a harmless calculator; other outlets say it installed the malicious package. Researchers say OpenAI and Anthropic have nothing to patch.
- Customer AGENTS.md directed Codex to install npm package function-color; Forever blocked it before code ran.
- Codex followed planted instructions in more than 90% of Forever’s lab attempts.
- A CLAUDE.md exposed Claude Code OAuth tokens in about half of tests.
- function-color is linked to MALFEX and pulls in downloader function-flag.
- Researchers say the agents followed local instruction files as designed, with no vendor patch.
- How the customer file reached Downloads remains unknown.
What each outlet adds
beyond the shared facts- BleepingComputerCodex test opened a harmless calculator; Claude logged 1,300 Downloads sessions.
- The Hacker NewsCloudSEK and Checkmarx named MALFEX; a page silently saved AGENTS.md.
- GBHackersEight MALFEX packages since August 2023; function-flag most of 40,767 downloads.
- CSO OnlineCaptured OAuth token was replayed; success rates not independently validated.
- Help Net Securitynpm later removed function-color; a helper agent ran code about one-fifth of tests.
- Organizations
- Forever SecurityCheckmarxCloudSEK
Coverage
oldest first · one row per article · UTCMalicious AGENTS.md files in Downloads hijack Codex and Claude Code
A customer agent tried to install npm package function-color; tests also stole Claude Code OAuth tokens in about half of runs.
Downloads-folder instruction file tried to make a coding agent install malware
Forever stopped the agent before code ran; Codex followed the planted file in more than 90% of isolated tests.
Planted Downloads files can hijack Claude Code and Codex agents
Forever Security says a planted AGENTS.md made Codex install MALFEX package function-color in over 90 percent of tests.
Malicious AGENTS.md files can hijack AI coding agents into running malware and leaking tokens
Poisoned Markdown instruction files let agents alter MCP configuration, bypass approvals and leak OAuth tokens; one real attempt was blocked at a customer.
Downloads-folder instruction files steer Codex and Claude Code
In Forever Security tests, Codex followed the planted file in more than 90% of attempts and Claude exposed a login token about half the time.
Malicious Downloads files can hijack Codex and Claude Code
Forever Security says a planted AGENTS.md or CLAUDE.md can change agent settings, install an npm package, or expose an OAuth token.
Malicious AGENTS.md tried to hijack coding agents
Forever Security says a planted markdown file on a customer PC could push Codex to install malware or leak tokens, and was stopped before code ran.