JavaScript

Malicious AGENTS.md file in Downloads folder targets AI coding agents

Forever Security found a malicious AGENTS.md instruction file in a customer’s Downloads folder that attempted to manipulate an AI coding agent. The file tried to make the agent install a rogue npm package; the company said it stopped the agent before any code ran. The file’s route into the folder remains undetermined, and another reported potential threat involved exposing a user’s login token when the file was opened there.

AI-written summary, checked against the cited sources. How summaries work

Image: BleepingComputer

What we know

Confirmed by several sources

  • A malicious AGENTS.md file in a customer’s Downloads folder attempted to direct an AI coding agent to install a rogue or known-malicious npm package. — The Hacker News, BleepingComputer

Reported by one source

  • Forever Security said it stopped the agent before any code ran. — The Hacker News
  • The file could also seek to expose a user’s login token when opened in the Downloads folder. — Help Net Security
  • Forever Security could not determine how the file reached the folder. — The Hacker News

Open questions

  • How the malicious file got into the customer’s Downloads folder. — The Hacker News

Coverage 3 publishers

  1. BleepingComputerFirst report

    AI coding agents hijacked using AGENTS.md file in Downloads folder

    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.

  2. The Hacker News

    Malicious File in Downloads Folder Tries to Trick AI Coding Agent Into Installing Malware

    A malicious instruction file sitting in a developer's Downloads folder tried to make their AI coding agent install a known-malicious npm package, security firm Forever Security said in a report published last week. The company caught the…

  3. Help Net Security

    AI coding agents fall for malicious instructions planted in the Downloads folder

    A file that a website saves to the Downloads folder without approval can trick AI coding agents into installing a malicious npm package or handing over the user’s login token when they’re opened in that folder, Forever Security has found.…

Earliest report first. Articles stay on their publishers’ sites; each link opens the original.