T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:25- Finding
Claude Code Permission Safeguards Are Unconditionally Disabled
- Content
View full analysis
&& claude -p "" --dangerously-skip-permissions ``` ### Technical Analysis The documented core command unconditionally passes `--dangerously-skip-permissions` to Claude Code. This option suppresses the normal authorization prompts that would otherwise require operator approval before sensitive tools or actions are used. Routine tasks such as code analysis, data retrieval, and code review do not inherently require all permission checks to be disabled. Making this option the default violates least privilege and removes an important control between user-controlled prompts and consequential operations. The flag does not grant operating-system administrator privileges by itself. However, it allows Claude Code to use its available tools without interactive approval, subject to the permissions of the account running the command. Depending on the local Claude Code configuration, this could permit reading or modifying files, executing commands, accessing repository credentials, or communicating with external services. ### Attack Path 1. An attacker or untrusted user submits a task that appears to be a legitimate analysis request. 2. The skill embeds that task in a `claude -p` invocation. 3. The invocation includes `--dangerously-skip-permissions`. 4. The submitted prompt directs Claude Code to perform an additional sensitive action, such as reading repository secrets, modifying source files, or executing a local program. 5. Claude Code performs the action without presenting the normal permission confirmation. 6. The action executes with the filesystem, process, credential, and network access available to the account running Claude Code. ### Impact Assessment Successful exploitation can bypass Claude Code's interactive authorization boundary. ...[truncated 632 chars]- Remediation
View remediation
