Reported by 6 outlets
AI coding agents hijacked using AGENTS.md file in Downloads folder
Why this score
- Breadth
- 2.00 / 2.0 · 6 sources
- Authority
- 1.80 / 2.0 · best outlet weight
- Severity
- 0.50 / 5.0 · CVSS + content signals
- Velocity
- 0.00 / 2.0 · updates in 48h
- Pickup speed
- 0.01 / 0.6 · time to second source
- Recency
- × 0.00 temporal multiplier
- Community
- + 0.00 / 1.5 · reddit signal
- Score
- 0.0 / 10 = base × recency + community
Desk analysis
Forever Security published its original disclosure on October 22, 2026, after finding a malicious AGENTS.md instruction file in a customer's ~/Downloads folder that was also the working directory of an AI coding agent. The agent tried to install a rogue npm package named function-color. The researchers reproduced the behavior against OpenAI Codex and showed a related Claude Code technique that leaks OAuth tokens and hijacks an account using only instructions placed in the working directory. AGENTS.md and CLAUDE.md files are plain text project instructions that agents read automatically, so the attacker needs no executable and no prompt injection in a chat session.
A later report describes a malware campaign using compromised GitHub content to target developers who use coding assistants. It says the malware can steal developer credentials, alter local agent configuration files and use stolen access to poison repositories that other developers may later open. That extends the risk beyond one machine: an agent that follows a poisoned instruction file can install packages or change settings with its existing permissions, and a compromised developer account can seed the same instructions into repositories that other agents read.
The design problem is the absence of a trust boundary between a directory's instruction files and the agent's tool access. As the Forever Security researchers put it, there is nothing for OpenAI or Anthropic to patch in the basic behavior, because loading the local instruction file is what the agent is built to do. Defenders should scan working directories and cloned repositories for unexpected AGENTS.md or CLAUDE.md changes, watch for installs of packages such as function-color, and treat agent configuration edits and OAuth token access as compromise indicators. Watch for vendor changes that add validation or sandboxing for instruction files in untrusted directories.
Timeline
-
original reporting
AI coding agents hijacked using AGENTS.md file in Downloads folder
bleepingcomputer.com · 32d ago · October 25th, 2026
Researchers found a malicious AGENTS markdown instruction file in a customer’s Downloads folder that tricked an AI coding agent into installing a rogue npm package. They reproduced the attack against OpenAI Codex and demonstrated a related technique against Claude Code to leak OAuth tokens and hijack the account using only the malicious instructions. Markdown files such as AGENTS.md are plain-text files that contain project-specific instructions for AI coding agents, such as the tools to use, how to run tests, and the coding conventions to follow. Researchers at Forever Security, a company that monitors for risks introduced by AI agents and autonomous software, discovered the tactic on a customer’s computer, where a coding agent attempted to install the malicious npm package ‘ function-color .’ The investigation traced the AI agent’s attempt to install a malicious npm package to an AGENTS.md file in the customer’s ~/Downloads folder, which also served as the agent’s working directory. Agents automatically load applicable files from their working directory and use the contained instructions to guide their actions. While these files aren’t executables, malicious instructions contained in them can lead to AI agents running commands, installing packages, or changing settings using the tools and permissions available to it. "There is nothing here for OpenAI or Anthropic to patch. An agent that follows the AGENTS.md in its folder is doing exactly what it was built to do," the resea
-
update from forever.security
Markdown Is the New Executable: Attackers Are Dropping Agent Instructions Into Your Downloads Folder From the Web
forever.security · 35d ago · October 22nd, 2026
Forever Security published the original disclosure on October 22, 2026. The post describes catching a live malware attempt on a customer machine: a malicious AGENTS.md file in ~/Downloads caused the agent to try installing the rogue npm package function-color.
-
mentioned by www.bleepingcomputer.com
🤖 AI coding agents can be hijacked by a malicious AGENTS.md placed in a Downloads folder. Researchers showed an agent reading it as instruct
www.bleepingcomputer.com · 32d ago · October 25th, 2026
-
update from www.bleepingcomputer.com
Something to look out for in open source projects. For those dealing with projects that has agentic vibrator users. Did I get that right? 🥸
www.bleepingcomputer.com · 31d ago · October 25th, 2026
Something to look out for in open source projects. For those dealing with projects that has agentic vibrator users. Did I get that right?
-
mentioned by www.bleepingcomputer.com
🤖 A malicious AGENTS.md file found in a customer's Downloads folder tricked an AI coding agent into installing a rogue npm package. Agents t
www.bleepingcomputer.com · 31d ago · October 26th, 2026
-
update from cyberupdates365.com
Malicious AGENTS.md File Hijacks Codex and Claude Code, Exposes Developer Secrets A malicious AGENTS.md file in a user's Downloads folder ca
cyberupdates365.com · 31d ago · October 26th, 2026
Malicious AGENTS.md File Hijacks Codex and Claude Code, Exposes Developer Secrets A malicious AGENTS.md file in a user's Downloads folder ca
-
update from www.bleepingcomputer.com
🗞 AI coding agents hijacked using AGENTS.md file in Downloads folder via BleepingComputer https://www. bleepingcomputer.com/news/secu rity/a
www.bleepingcomputer.com · 31d ago · October 26th, 2026
🗞 AI coding agents hijacked using AGENTS.md file in Downloads folder via BleepingComputer https://www. bleepingcomputer.com/news/secu rity/a
-
mentioned by en.hacks.gr
Forever Security caught an incident where a malicious AGENTS.md file in a Downloads folder attempted to make an AI coding agent install a kn
en.hacks.gr · 31d ago · October 26th, 2026
-
update from gbhackers.com
Hackers Can Hijack AI Agents Just by Planting Malicious Files in the Downloads Folder
gbhackers.com · 31d ago · October 26th, 2026
These tools write, run, and modify code with little supervision. Each one automatically reads and obeys any instructions file it finds in the folder it opens. The investigation began with an alert. […] The post Hackers Can Hijack AI Agents Just by Planting Malicious Files in the Downloads Folder appeared first on GBHackers Security | #1 Globally Trusted Cyber Security News Platform .
-
mentioned by vectorwire.ai
Malicious AGENTS.md file in Downloads folder hijacks AI coding agents
vectorwire.ai · 31d ago · October 26th, 2026
-
mentioned by www.bleepingcomputer.com
# AI coding agents hijacked using AGENTS(dot)md file in Downloads folder https://www. bleepingcomputer.com/news/secu rity/ai-coding-agents-h
www.bleepingcomputer.com · 31d ago · October 26th, 2026
-
update from forever.security
A web page can drop a file in ~/Downloads with no click. A coding agent started there follows the AGENTS.md or CLAUDE.md in it. Forever Secu
forever.security · 26d ago · October 31st, 2026
A web page can drop a file in ~/Downloads with no click.
-
update from gbhackers.com
Hackers Turn AI Coding Agent Configuration Files Into Malware Execution and Propagation Channels
gbhackers.com · 8d ago · November 18th, 2026
A malware campaign that uses compromised GitHub content to target developers using AI coding assistants. The malware can steal developer credentials, alter local agent configurations, and use stolen access to poison repositories that other developers may later open. The campaign exploits the trust coding assistants place in repository files such as AGENTS.md and CLAUDE.md.