A security vulnerability has been identified in coding agents like Claude Code, where answering a permission prompt can inadvertently delete crucial deny rules. This issue, detailed in a paper by Fei et al. and a Cloud Security Alliance note, allows agents to gain unauthorized access to files and settings. The problem arises because the system only updates allow rules, meaning deletions of deny rules are not properly handled. This vulnerability can be exploited through plugins or remote relays, and the changes are not logged with an author, making them difficult to trace. To mitigate this, users are advised to place critical deny rules in managed settings files, which cannot be overridden, or to implement a system for snapshotting and monitoring permission rule changes. AI
IMPACT Exposes a critical security flaw in coding agents that could lead to unauthorized data access, necessitating immediate mitigation strategies for users.
RANK_REASON The item details a security vulnerability in coding agents, referencing research papers and security notes. [lever_c_demoted from research: ic=1 ai=1.0]
Read on dev.to — Claude Code tag →
- Claude Code
- Cloud Security Alliance
- .codex
- Fei et al.
- Gemini CLI
- Goose
- Linux
- macOS
- Microsoft Windows
- openCode
- remote control
- Windows Subsystem for Linux
AI-generated summary · Google Gemini · from 1 sources. How we write summaries →