T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:59- Finding
Recovery Guidance Enables Excessive Agent Tool Privileges
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 59–66
Vulnerability Type:T05: Unauthorized Access and Privilege Escalation
Risk Level: HighVulnerable code:
markdown **Fix:** 1. Open `~/.openclaw/openclaw.json` 2. Find or add: `"tools": { "profile": "full" }` 3. Run: `openclaw gateway restart` > ⚠️ `full` grants full tool access. Review your security posture before applying.Technical Analysis
The recovery procedure directs the operator to replace a restricted, message-only profile with the unrestricted
fulltool profile. This breaks least-privilege boundaries by granting the agent access to every tool permitted by that profile, rather than restoring only the specific capabilities required for diagnosis or recovery.The warning acknowledges that the profile provides full tool access, but the procedure does not identify a least-privilege alternative, preserve existing approval controls, limit the permission increase to a diagnostic period, or direct the operator to restore the previous profile afterward. Restarting the gateway activates the expanded permissions.
Attack Path
- An attacker influences the agent through a malicious message, prompt injection, compromised channel, or incorrectly routed conversation.
- The agent cannot initially perform privileged actions because its tool profile is restricted.
- An operator follows the documented recovery procedure and changes
tools.profiletofull. - The operator restarts the gateway, activating the unrestricted tool profile.
- Attacker-controlled instructions invoke newly available tools.
- Depending on the tools and operating-system permissions exposed by the profile, the attacker may execute commands, access local files, alter configuration, or perform additional system actions.
Impact Assessment
Successful exploitation expands the affected agent's privileges from message-only operation to full tool ac ...[truncated 506 chars]
- Remediation
View remediation
Remediation Suggestions
- Replace the blanket
fullprofile recommendation with a least-privilege procedure that enables only the tools required for the affected operation. - Require the operator to back up the current configuration and record the original profile before making changes.
- Preserve command-approval, host, sandbox, allowlist, and confirmation controls when restoring tool access.
- If temporary broad access is unavoidable, clearly mark it as time-limited and provide mandatory steps to restore the original restricted profile immediately after diagnosis.
- Require explicit operator confirmation before enabling command execution, file access, credential access, or network-capable tools.
- Recommend testing the changed profile in an isolated environment and validating channel bindings before exposing it to untrusted messages.
- Add post-recovery verification commands that confirm the active profile and ensure that unnecessary tools are disabled.
- Replace the blanket
