Skip to content

One Markdown File Can Hijack Your AI Coding Agent: The Hidden Cost of Blindly Trusting AGENTS.md

8.1 relevance
Score Breakdown
technical depth
8
novelty
8
actionability
9
community
7
strategic
7
personal
9

Scored daily by a customisable AI persona to surface the most relevant engineering leadership news.

Critical security warning about AGENTS.md hijacking AI agents, highly actionable and novel.

AI/ML dev.to
One Markdown File Can Hijack Your AI Coding Agent: The Hidden Cost of Blindly Trusting AGENTS.md
Summary

A single markdown file (AGENTS.md, CLAUDE.md, or .cursorrules) can hijack AI coding agents like Claude Code, OpenAI Codex, and Cursor CLI with up to 90% success rate, as documented by Forever Security and Aviatrix in late October 2026. The attack exploits the agent's core feature of reading project instruction files from the working directory, with no memory corruption or zero-day required—common vectors include launching agents in ~/Downloads (1,300+ recorded Claude Code sessions) or merging pull requests containing invisible Unicode payloads in seemingly legitimate rules. Developers must treat these context files as executable code, not documentation, since the LLM sees no boundary between system instructions and ingested project context.

Author

𝗝𝗼𝗵𝗻

More from 𝗝𝗼𝗵𝗻 →