T05 · Unauthorized Access and Privilege Escalation
- Location
recommendations.md:20- Finding
Recommended configurations grant unrestricted host command execution
- Content
View full analysis
Vulnerability Details
File Location:
recommendations.md:20-23andrecommendations.md:78-84
Vulnerability Type: Least-privilege violation through unrestricted tool and command access
Risk Level: HighVulnerable Configuration
Personal Assistant configuration:
json "tools": { "profile": "full", "exec": { "security": "full" } }Developer Workstation configuration:
json "tools": { "profile": "full", "exec": { "security": "full", "safeBins": ["git", "npm", "pnpm", "node", "python", "docker"] } }Technical Analysis
Both configurations recommend the
fulltool profile together withexec.securityset tofull. If adopted, this permits the agent to invoke arbitrary host commands rather than only the operations necessary to configure OpenClaw.The
safeBinslist in the Developer Workstation configuration does not impose a security boundary while execution security is set tofull. The agent therefore retains unrestricted command access regardless of that list.This is especially dangerous when the agent receives content from messaging channels, websites, repositories, workspace instruction files, or other sources that may contain prompt injection. Sender allowlisting reduces exposure but does not eliminate malicious content, compromised owner accounts, unsafe repository content, or model-generated mistakes.
Attack Path
- A user applies one of the documented configurations.
- OpenClaw grants the agent the full tool profile and unrestricted host execution.
- The agent processes an attacker-controlled message, webpage, repository file, or workspace instruction.
- The content induces the agent to invoke the execution tool.
- The agent runs attacker-selected commands directly on the host.
- Those commands can read or modify files, launch processes, install software, access credentials available to the user, or operate Docker.
...[truncated 455 chars]
- Remediation
View remediation
Remediation Suggestions
- Replace
profile: "full"withminimalor a narrowly tailored profile. - Set
exec.securitytoallowlistordenyby default. - Run execution inside a sandbox rather than on the gateway host.
- Use read-only workspace access unless modification is explicitly required.
- Require explicit user confirmation for commands that modify files, install packages, access credentials, control containers, or communicate externally.
- Restrict execution to narrowly scoped wrapper commands with validated arguments.
- Do not describe unrestricted execution as a normal default, even for a single-user deployment.
- Document that sender allowlisting is not a substitute for execution isolation.
- Replace
