Malicious AGENTS.md can hijack Codex and Claude Code
The story so far
Security firm Forever Security disclosed a method of attack: web pages silently download malicious AGENTS.md to ~/Downloads, and when users launch Codex or Claude Code in that directory, the Agent executes it as project specifications. It is claimed that the success rate of poisoning Codex attacks exceeds 90%, while the test success rate for Claude Code is around 50%. The firm states it has intercepted this attack method and released a video, providing four checks to identify typical traces in the attack chain, while emphasizing that the absence of abnormalities does not guarantee computer safety.
AI-written from the reports · Updated 11 days ago
Coverage timeline
Follow the coverage to see every side of the story.
- QbitAIFeaturedAGENTS.md exposed as a new attack entry point, capable of hijacking Codex and Claude Code
Security agency Forever Security disclosed an attack technique: web pages silently download malicious AGENTS.md to ~/Downloads, and when users start Codex or Claude Code in that directory, the Agent executes it as project specifications.