A security researcher has detailed how a file named AGENTS.md, intended to guide AI coding agents, can be exploited through prompt injection techniques. This method allows an attacker to control the agent's actions by embedding malicious instructions within the AGENTS.md file, which agents often treat as trusted. The research, demonstrated against Codex with a reported success rate over 90% in testing, highlights that context files should be treated with the same security scrutiny as code. Additionally, a related risk for Claude Code involves the potential redirection of API traffic via the ANTHROPIC_BASE_URL variable, which could lead to credential theft if not properly secured. AI
IMPACT Highlights critical security risks in AI agent context handling and API configuration, necessitating stricter review processes for agent interactions.
RANK_REASON Security research detailing a prompt-injection vulnerability in AI coding agents.
Read on dev.to — Claude Code tag →
- .anthropic
- Claude Code
- Opus
- Sun
- AGENTS .md
- ANTHROPIC_BASE_URL
- Codex
- Forever Security
- Sarah Reid
- Securetron
AI-generated summary · Google Gemini · from 2 sources. How we write summaries →