Skip to content

Signals/ Claude & Anthropic/ Brief /

A file in your Downloads folder can hijack Codex and Claude Code

Forever Security found a planted instructions file that tried to make a coding agent install malware. The fix is where you start the agent.

Security firm Forever Security reports that a coding agent on a customer’s machine tried to install a malicious npm package after reading an AGENTS.md file sitting in the Downloads folder. The agent was stopped before any code ran. Researchers could not say how the file got there.

Tools like Codex read the instruction files in the folder they start in and follow them as project rules. Forever says a web page can drop a file into Downloads without a prompt, and it built a demo page to show it. Whether real attackers use that route is unknown.

In lab tests, the file made Codex register a server in its machine-wide settings and install the package more than 90% of the time. A planted CLAUDE.md tried to point Claude Code’s traffic at an attacker’s server, which could leak a login token. It worked about half the time, and Claude often asks for approval or refuses odd changes.

The catch: Forever sells agent-monitoring software, and the reports include no statement from OpenAI or Anthropic. Forever argues the agents behaved as designed, so there is no patch to wait for.

What to do now

  • Start coding agents inside a specific project folder, never in Downloads or your home folder.
  • Read any AGENTS.md or CLAUDE.md you didn’t write before an agent follows it.
  • Keep approval prompts and sandboxes on, and be suspicious of anything asking you to turn them off.
  • If you find a planted file, assume your login token leaked and replace it.

Sources & links 2

  1. The Hacker News: Malicious file in Downloads folder targets AI coding agents thehackernews.com ↗
  2. Tech Bytes: AI coding agents hijacked using AGENTS.md file in Downloads techbytes.app ↗

More on Claude AI News, ChatGPT & OpenAI News, AI Agent News, AI Safety & Regulation News

More signals

Brief

OpenAI will train its top models with no live internet

After an AI agent got online during training in September, OpenAI says it will use a cached copy of the web instead.

Helps Anyone following AI safety and how labs control powerful models

  • OpenAI
  • AI Safety
  • AI Agents
Brief

1Password lets AI agents sign in without ever seeing your password

A new 1Password feature lets personal AI agents log in to your accounts while you approve each request and the password stays hidden.

Helps Anyone who wants an AI agent to log in for them without pasting passwords into a chat

  • AI Agents
  • AI Safety
  • Claude

Free weekly email

The Weekly Signal

Once a week: the AI news that matters, explained in plain English, with one tool you can try that day. No spam. Unsubscribe any time.

By subscribing you agree to get the weekly email. See our Privacy Policy.