• Sources: primary, discussion
  • Summary: Forever Security found a malicious AGENTS.md in a customer's ~/Downloads folder that told Codex to add an MCP server to ~/.codex/config.toml and install the malicious npm package function-color, and it reproduced the attack in more than 90 percent of Codex attempts. A crafted CLAUDE.md made Claude Code set ANTHROPIC_BASE_URL to an attacker server, leaking its OAuth token and enabling code execution, about 50 percent of the time. The firm says there is nothing for vendors to patch because the agents follow instruction files by design.
  • Why it matters: Do not start coding agents in Downloads, and audit agent configs for unexpected MCP servers or base URL overrides.