T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:44- Finding
Claude Code Is Launched with Permission Controls Disabled
- Content
View full analysis
"nvm use 20 && " Enter ``` The troubleshooting guide repeats the unsafe invocation: ```bash tmux send-keys -t "nvm use 20 && claude --dangerously-skip-permissions" Enter ``` ### Technical Analysis The Skill explicitly starts Claude Code with `--dangerously-skip-permissions`, bypassing its normal per-operation permission checks. The separate instruction to present a plan and wait for approval is only a prompt-level convention; it does not technically restrict the commands or resources available to the delegated agent after approval. A coding agent routinely processes repository content, issue descriptions, and task instructions that may be attacker-controlled. Disabling permission enforcement therefore removes an important security boundary against prompt injection, erroneous commands, and unauthorized access. ### Attack Path 1. A user invokes the Skill against a repository containing malicious instructions or supplies an attacker-controlled coding task. 2. The Skill creates a tmux session and launches Claude Code with `--dangerously-skip-permissions`. 3. The coding agent processes the untrusted repository content or task instructions. 4. Malicious instructions induce the agent to execute shell commands, read sensitive files, or modify resources outside the intended task. 5. Because permission checks were disabled, the operation can proceed without a separate authorization prompt. ### Impact Assessment The delegated agen ...[truncated 387 chars]- Remediation
View remediation
