AI coding agents like Claude Code and Codex are vulnerable to prompt injection attacks through specially crafted instruction files. Researchers discovered that a malicious file, such as CLAUDE.md or AGENTS.md, can trick these agents into executing harmful commands, including installing malware or hijacking accounts by replaying stolen tokens. The vulnerability stems from the agents' inability to distinguish between user-provided instructions and malicious text. To mitigate this risk, users are advised to avoid running agents from untrusted locations like the Downloads folder, review instruction files before trusting a repository, and treat these files with the same caution as executable code. AI
IMPACT Security flaws in AI coding assistants could lead to account takeovers and malware infections if not properly mitigated by users.
RANK_REASON The article discusses a security vulnerability in AI coding tools, but does not originate from a frontier lab or represent a significant industry-wide shift.
Read on dev.to — Claude Code tag →
- AGENTS.md
- Claude Code
- CLAUDE.md
- Codex
- CSO Online
- Forever Security
- GEMINI.md
- International Data Corporation
- MCP
AI-generated summary · Google Gemini · from 1 sources. How we write summaries →