T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:15- Finding
Overly Broad Access to Sensitive OpenClaw State
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 15-18, 26-33, 65-66, and 73-80
Vulnerability Type:T05: Unauthorized Access and Privilege Escalation
Risk Level: MediumRelevant Code Snippets:
markdown ## Quick Start Use this workflow unless the user asks for something narrower: 1. Identify the user's real goal: configuration, skills, workspace files, logs, or troubleshooting. 2. Inspect the relevant local files under `~/.openclaw/` before answering from memory. 3. Prefer concrete paths and commands over abstract explanations. 4. If a change is requested, edit the smallest possible file and then validate the result.markdown ## Core Locations Check these locations first on a normal local installation: - `~/.openclaw/openclaw.json`: main configuration file - `~/.openclaw/workspace/`: shared workspace guidance and notes - `~/.openclaw/workspace/AGENTS.md`: project or workspace behavior rules - `~/.openclaw/workspace/TOOLS.md`: environment-specific tool notes - `~/.openclaw/workspace/USER.md`: user preferences and human context - `~/.openclaw/skills/` and `~/.openclaw/workspace/skills/`: installed or in-progress skills - `~/.openclaw/logs/`: logs for troubleshooting - `~/.openclaw/extensions/`: installed extensions and their docsmarkdown 1. Decide whether it belongs in `~/.openclaw/skills/` or the current workspace. 2. Create a folder named after the skill.markdown ## Suggested Commands Use fast inspection commands first: - `rg --files "~/.openclaw"` - `rg -n "keyword" "~/.openclaw"` - `Get-ChildItem -Force "~/.openclaw"` - `Get-Content -Raw "~/.openclaw/openclaw.json"` - `Get-Content -Raw "~/.openclaw/workspace/AGENTS.md"`Technical Analysis
The skill directs the agent to inspect a broad collection of local OpenClaw resources, including configuration, persistent workspace instructions, user-context files, logs, ext ...[truncated 2083 chars]
- Remediation
View remediation
Remediation Suggestions
- Require explicit user approval before reading potentially sensitive files such as
openclaw.json,USER.md,AGENTS.md, or log files. - Apply least-privilege inspection by accessing only the specific file needed to answer the request.
- Replace broad recursive enumeration commands with commands scoped to an explicitly identified directory or file.
- Avoid reading complete configuration or log files when a targeted search for a known key or error is sufficient.
- Redact credentials, tokens, personal data, internal paths, and unrelated log content before presenting or summarizing results.
- Add an instruction prohibiting the transmission of local file contents to external services unless the user gives informed consent.
- For modifications, show the proposed target and change to the user before writing to configuration, workspace, or skill files.
- Document which OpenClaw files may contain secrets and ensure they are treated as sensitive by default.
- Require explicit user approval before reading potentially sensitive files such as
