How Malicious AGENTS.md Files Can Hijack Coding Agents
AGENTS.MD,危险危险危险!!!
- Who
- Forever Security
- What
- reported and demonstrated an attack that hijacks coding agents through malicious AGENTS.md files in download folders
- Quote
一家名为 Forever Security 的安全机构,在用户电脑上截获了这个闻所未闻的攻击手段,并发布了YouTube视频。
What happened
QbitAI reports on attacks in which coding agents treated malicious AGENTS.md or CLAUDE.md files as project instructions. Citing Forever Security and an X user’s test, the article says attack success exceeded 90% for Codex and was around 50% for Claude Code, with examples involving global Codex configuration and a changed Anthropic Base URL. It also lists four checks for possible traces and advises against starting agents in Downloads or Desktop.
Read next
See the full storyForever Security Reports Coding Agent Hijacking Through Malicious Project FilesThe story so far
Forever Security reported and demonstrated an attack in which malicious AGENTS.md files in download folders hijacked coding agents. QbitAI cited Forever Security and an X user's test, reporting success rates above 90% for Codex and around 50% for Claude Code. The attacks use project instruction files to influence agent behavior. QbitAI described examples involving changes to Codex's global configuration and a modified Anthropic Base URL, and listed checks for possible traces of an attack.
Keep up with AI, one email a day
Model releases, price changes and compute developments, with original sources. Free, confirmed by email, and easy to unsubscribe. Read a past issue · 2026-11-07
