T05 · Unauthorized Access and Privilege Escalation
Error
- Location
- SKILL.md:35
- Finding
- Delegated Agent Runs with Permission Checks Disabled<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:35`; `references/troubleshooting.md:9` **Vulnerability Type**: Permission bypass and excessive agent privileges **Risk Level**: High ### Vulnerable Code ```bash cd <project> # worktree + tmux in one command: claude -w <branch-name> --tmux --dangerously-skip-permissions ``` The troubleshooting instructions repeat the unsafe option: ```bash tmux send-keys -t <session> "nvm use 20 && claude --dangerously-skip-permissions" Enter ``` ### Technical Analysis The `--dangerously-skip-permissions` option disables Claude Code's normal permission confirmation controls. Git worktree isolation only separates repository branches and working directories; it does not restrict the agent's access to the host filesystem, user credentials, processes, network, or other repositories. Consequently, a delegated coding agent can perform host-user-level operations without an interactive authorization boundary. Repository instructions, source comments, issue descriptions, or other attacker-controlled context processed by the agent may induce it to run commands unrelated to the legitimate coding task. ### Attack Path 1. An attacker places adversarial instructions in repository content or another input consumed during a coding task. 2. The Skill launches Claude Code with `--dangerously-skip-permissions`. 3. The delegated agent processes the attacker-controlled instructions. 4. The agent runs shell commands or accesses resources without requesting permission. 5. Those operations execute with the privileges and resource access of the user running OpenClaw or Claude Code. ### Impact Assessment Successful exploitation can provide access equivalent to the host account running the agent. Depending on that account's environment, the affected scope may include local files, source repositories, SSH configuration, cloud credentials, developer tokens, running processes, and network-accessible services. The reviewed Skill does no ...[truncated 114 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions - Remove `--dangerously-skip-permissions` from both the primary workflow and troubleshooting instructions. - Retain normal per-operation permission prompts for filesystem, shell, and network activity. - Run delegated agents inside an OS-level sandbox or container with an explicit filesystem allowlist. - Restrict network access unless it is required by the approved task. - Use a dedicated, unprivileged operating-system account without access to unrelated repositories or user credentials. - Require explicit user confirmation for destructive commands, credential access, package installation, and operations outside the task worktree. - Document that Git worktrees provide source-control isolation, not a security sandbox. ]]>
