T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:110- Finding
Claude Code Executes Repository-Controlled Instructions Without Permission Checks
- Content
View full analysis
/tasks.md ``` Launch Claude Code in the repo (or worktree) with PTY and `--dangerously-skip-permissions`: ```bash exec pty:true workdir: background:true command:"claude --dangerously-skip-permissions -p 'Implement these tasks from openspec/changes//tasks.md. Read the tasks file, the proposal, design, and specs in that change directory for full context. Mark tasks complete as you go. Commit when done. When completely finished, run: openclaw system event --text \"Done: implemented \" --mode now'" ``` `references/review-loop.md:20-36`: ```bash exec pty:true workdir: background:true command:"claude --dangerously-skip-permissions -p 'You are a skeptical spec reviewer. Your job is to challenge this [ARTIFACT TYPE] and find weaknesses. ## Your Job 1. Read the change artifacts: openspec/changes/[CHANGE_NAME]/ 2. Read the existing specs: openspec/specs/[RELEVANT_SPEC]/spec.md 3. Explore the codebase — grep for patterns, read files that will be affected, verify claims 4. Then challenge. Based on what you actually found: - [2-4 specific questions relevant to this artifact type] ## [ARTIFACT TYPE] to Review [Paste the full artifact content] Rules: - State APPROVED if satisfied - Otherwise, list 2-5 specific challenges (not nitpicks) - For each challenge, cite what you found in the code and suggest an alternative - Be direct When finished, run: openclaw system event --text \"Review complete: [APPROVED or NOT APPROVED with summary]\" --mode now'" ``` ### Technical Analysis The `--dangerously-skip-permissions` option disables Claude Code's normal approval boundary for tool use. The invoked agent is inst ...[truncated 1989 chars]- Remediation
View remediation
