Ongoing

A markdown file in Downloads hijacked the coding agent

A security firm found a downloaded instructions file steering a customer's coding agent, then reproduced the whole attack in a lab: the agent rewrote its own configuration and ran the attacker's code. No patch is coming, because nothing is broken.

Logged 23 Oct 2026

A download reads as inert

A file in the Downloads folder reads as inert. That reading is wrong. The security firm Forever Security caught a real one on a customer's machine: a planted AGENTS.md, an instructions file a coding agent is built to obey.

A website can drop such a file there with no click and no permission. In a lab reproduction, Codex, OpenAI's coding agent, read the file and rewrote its machine-wide settings to load an attacker's MCP server, an add-on tool the agent loads. Nothing asked first. The attacker's code ran in over 90% of attempts.

The rewrite goes further than one folder. Once the settings file is changed, every Codex session on that computer loads the attacker's server at startup, in any project. You can leave the folder. The change stays.

The same trick against Claude Code

Claude Code was harder to fool. Anthropic's coding agent fell to a different route: a planted CLAUDE.md, a long and bland setup document, talked it into writing its own settings file, pointing its API traffic at the researchers' server. A short, obvious instruction gets refused. The long document is what gets through. In testing it followed through about half the time.

That reroute leaked Claude's login token at once. That alone is account takeover. It also let the researchers answer as the model, feeding the agent tool calls it would run. Once the write lands, code execution at the next launch is guaranteed, and it worked inside the same session about a fifth of the time.

Nothing to patch

The researchers said there is nothing for OpenAI or Anthropic to patch. An agent obeying the instructions file in its folder is doing what it was built to do. So the vector stays open.

The log has covered this firm before. Its browser prompt-forcing attacks needed the agent sitting on a hostile web page mid-task. A file in Downloads just waits, and fires the next time an agent starts there.

Log take: the line between a file and an instruction has stopped holding. A download is now a candidate authority. (Interpretation; single-source vendor research.)

Sources

Research

Thread