A Downloads-folder incident exposes the risk of trusting agent instruction files
Forever Security reports blocking an attempted malicious package installation and reproducing related instruction-driven attacks in controlled tests.
Forever Security reported on October 22 that it stopped a coding agent attempting to install a malicious software package after following an instruction file in a customer’s Downloads folder. The report links the attempted action to local instructions that the agent treated as project guidance.
The researchers also describe controlled reproductions involving Codex and Claude Code. Those experiments are separate from the observed customer event. The report does not establish how the original file arrived on that machine.
Text can influence a tool-using assistant
The issue involves a boundary between reading material and accepting authority. A coding assistant may use project instructions to decide which commands to run. If an untrusted file supplies those instructions, an otherwise ordinary text document can influence consequential actions.
The chain requires the agent to encounter and follow the file with suitable tool permissions. Merely viewing a web page is not, by itself, evidence that an attacker has executed code through an agent.
The working context deserves review
For teams operating coding assistants, the incident makes instruction-file provenance a practical concern. A dedicated project directory is easier to inspect than a broad folder containing unrelated downloads.
The surrounding controls also matter: approval for configuration changes, restricted execution and limits on credential access should remain meaningful when the assistant proposes the action. Trusting the apparent fluency of a setup explanation is insufficient.
Forever’s findings are researcher-reported evidence about a specific incident and tests. They illustrate a wider design question: which local documents may guide an agent, and who authorised them to do so?
Sources
- [Markdown Is the New Executable](https://forever.security/blog/hijacking-ai-agents-via-downloads-folder) — Forever Security