T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:35- Finding
Claude Code Permission Checks Are Explicitly Disabled
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 35-43
Vulnerability Type:T05: Unauthorized Access and Privilege Escalation
Risk Level: HighVulnerable code:
bash claude -p --dangerously-skip-permissions "你的具体要求"The associated parameter documentation explicitly states that
--dangerously-skip-permissionsskips approval checks.Technical Analysis
The Skill requires every programming task to be delegated to Claude Code with
--dangerously-skip-permissions. This option disables the permission and approval controls intended to prevent unreviewed file modifications and command execution.Disabling these controls violates least privilege because ordinary code generation, review, and testing do not inherently require unrestricted operation. The nested coding agent receives authority beyond what is necessary for each task, while the Skill defines no restrictions on accessible paths, executable commands, network access, or sensitive files.
Attack Path
- An attacker or untrusted source supplies a malicious, ambiguous, or deceptive programming request.
- The Skill incorporates that request into a Claude Code invocation.
- Claude Code starts with
--dangerously-skip-permissions. - The nested agent interprets the request as requiring sensitive file access, command execution, or destructive modifications.
- Those operations proceed without an interactive approval barrier.
- The attacker may consequently influence files and processes accessible to the account running the Skill.
Impact Assessment
Successful exploitation may permit unapproved modification, creation, or deletion of files within the privileges of the host process. It may also allow execution of local commands, access to sensitive project or user files, alteration of repositories, and interaction with any credentials or services available to the invoking account.
The precise scope is bounded by operating-sys ...[truncated 194 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove
--dangerously-skip-permissionsand retain Claude Code's standard approval workflow. - Require explicit approval for shell execution, writes outside the intended project, destructive operations, network access, and access to sensitive files.
- Run Claude Code in a sandbox or container with only the target workspace mounted as writable.
- Use a dedicated, unprivileged operating-system account without access to unrelated repositories, personal files, deployment credentials, or host administration interfaces.
- Define allowlists for permitted commands and filesystem paths.
- Deny access to SSH keys, cloud credentials, environment-secret files, package publishing tokens, and production configuration unless a specific task requires them.
- Require review of generated changes and test commands before execution, especially when the original request comes from an untrusted source.
- Remove
