On October 26, researchers at Forever Security — a firm that monitors risks from AI agents — published a finding that should change how any agency or dev team runs coding agents starting today: a plain-text file called AGENTS.md, hidden in the Downloads folder of a real customer's machine, got OpenAI Codex to install malware in more than 90% of controlled tests. With Claude Code, a variant of the same trick (a CLAUDE.md file) got the agent to expose its session token in roughly half the attempts. The uncomfortable part of the report isn't the number — it's that there's nothing broken to fix. This is exactly the behavior these agents were designed for: reading and following any instruction file they find in their working directory.
What they actually found
Forever Security caught the case when a coding agent, running on a customer's machine, tried to install an npm package called function-color. Tracing the source, they found an AGENTS.md file inside ~/Downloads, which was also the working directory the user had opened the agent from.
That package in turn pulls in another one, function-flag, which downloads and runs a malicious Windows payload — CloudSEK and Checkmarx, who analyzed the campaign separately, named it MALFEX. But the interesting part isn't the malware itself, it's the vector:
- Against Codex, the file registered a server in
~/.codex/config.toml. That file isn't specific to the Downloads folder: it applies to every Codex session on that machine, so the compromise outlives whatever cleanup happens in Downloads. - Against Claude Code, the CLAUDE.md file — disguised as long, boring engineering notes — asked to write an
ANTHROPIC_BASE_URLvariable into the project's settings. That redirects the agent's API traffic to an attacker's server, which can read the session token and, with it, impersonate the model back to the agent itself. - The researchers reproduced the attack in an isolated environment specifically to measure real success rates, not just to confirm it was theoretically possible.
Why it works (and why there's nothing to "patch")
AGENTS.md and CLAUDE.md are completely legitimate files. Codex, Claude Code, Cursor CLI, and most coding agents use them to learn what tools a project has available, how to run its tests, which style conventions to follow. The agent loads them automatically the moment you open a folder as your working directory — that's how they're supposed to work.
The problem is the folder. Chrome, Edge, and Firefox save downloads to ~/Downloads by default, and in several scenarios they do it without any explicit click from the user: a web page can trigger a download with whatever name and content the attacker chooses. Forever built a proof-of-concept page that does exactly that — it silently drops a malicious AGENTS.md into Downloads with no visible user interaction. Later, when someone opens an agent right there — common enough, since people use agents to organize their downloads or act on whatever they just pulled in — the agent reads the file and follows its instructions with whatever permissions the user has.
The researchers summed it up directly: "there is nothing here for OpenAI or Anthropic to patch." They compared the attack to a browser rendering a phishing page — the software is doing exactly what it was asked to do.
The numbers that matter
Beyond the "90% success against Codex" headline, the report includes adoption data that puts the industry's exposure in context:
- According to Forever's telemetry, roughly half of its customers run a coding agent directly from their Downloads folder at some point.
- About a quarter of agent sessions open a browser at some point in the workflow — meaning there's a real window for a malicious file to arrive without anyone actively watching.
- Claude Code alone launched more than 1,300 sessions from the Downloads folder in the data Forever was able to analyze.
- The report also notes, without sharing its own success-rate figures, that hundreds of Forever's customers run Cursor CLI from that same folder — a reminder that this isn't a problem exclusive to two vendors, but a consequence of how the whole category of coding agents is designed.
What this means for agencies and developers
If your team uses Codex, Claude Code, or Cursor CLI to move faster on client work — and odds are you do, because it works and because delivery-speed pressure on client projects is real — this finding isn't a reason to stop using them. It's a reason to fix three or four habits this week, before someone finds out the hard way on a live production project:
- Never set ~/Downloads, or any broad folder like the user's home directory, as an agent's working directory. Always open it inside the specific project you're actually working on, never a folder that accumulates files from random sources.
- Review any AGENTS.md or CLAUDE.md file you didn't write yourself — in a freshly cloned repo, in a third-party deliverable, in any shared folder — before letting an agent follow it unsupervised.
- If you use Codex, periodically check
~/.codex/config.tomlfor server blocks you don't recognize; if you use Claude Code, check.claude/settings.jsonfor anANTHROPIC_BASE_URLnobody on your team configured. If you find anything out of place, assume the token already leaked and rotate credentials immediately — don't wait until after you've investigated. - Keep approval prompts and agent sandboxing turned on, and train your team to distrust any instruction — inside a config file, not just in a chat — that asks them to disable those protections "to move faster."
For an agency shipping code under a client's name, a report like this matters more than another model launch: it's not about how smart the agent is, but about how well-controlled the environment is that you let it run in. Increasingly, that's the difference between a vendor using AI responsibly and one that just turns it on and hopes nothing happens.
At Geek Vibes, when we help a team bring coding agents into their workflow, the conversation never ends at "install it and you're done" — it includes how to run it with the right boundaries from day one. If your team already uses coding agents (or is evaluating doing so) and wants a review of how your permissions and environment are configured, reach out to hello@geekvibes.agency.



