Directory / News / AI coding agents can be hijacked by an AGENTS.md file in your Downloads folder

AI coding agents can be hijacked by an AGENTS.md file in your Downloads folder

Announced · Published · By Contractor AI Shop

Security firm Forever Security says it caught a malicious AGENTS.md file in a customer's Downloads folder that told OpenAI's Codex coding agent to install a known-malicious npm package. In tests, the researchers also used a similar file against Claude Code to expose a login token.

Key facts

Our take: what it means for contractors

If anyone in your office is trying Codex or Claude Code, the fix is simple habits: never open an agent in your Downloads folder, read any AGENTS.md or CLAUDE.md you didn't write before letting an agent work in that folder, and leave approval prompts and sandboxing on. This applies to local agent setups too.

What we don't know yet

Sources

  1. Forever Security (Gal Weizman and Omer Samet) · Markdown Is the New Executable: Attackers Are Dropping Agent Instructions Into Your Downloads Folder From the Web · 2026-10-22 · Primary
  2. BleepingComputer (Bill Toulas) · AI coding agents hijacked using AGENTS.md file in Downloads folder · 2026-10-25 · Secondary
  3. Mashable SEA (Olivia Tauber) · Hackers find a way to turn users' own AI agents and Downloads folders against them · 2026-10-24 · Secondary

Related

More news on this topic

← All construction AI news