T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:36- Finding
Cross-Workspace Persona File Access Violates Least Privilege
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 36
Vulnerability Type: Cross-workspace access to unrelated instructions and private context
Risk Level: MediumComplete Snippet:
markdown **Reference:** See Elon's voice guidelines in `/Users/m1/.openclaw/workspace-elon/SOUL.md` for writing style.Technical Analysis
The skill explicitly directs the agent to read an absolute path in another agent's workspace. Access to
workspace-elon/SOUL.mdis not necessary to perform the stated Facebook posting and comment-management functions. This violates least privilege and crosses the skill's expected workspace boundary.A persona or instruction file may contain private context, operational rules, or other workspace-specific information. It is also an externally mutable input: anyone able to modify that file could influence the skill's generated public content without changing the audited package. The reference therefore creates both a confidentiality concern and an indirect instruction-injection channel.
Attack Path
- A user invokes the Facebook automation skill.
- The agent follows the style-reference instruction in
SKILL.md. - The agent reads
/Users/m1/.openclaw/workspace-elon/SOUL.md, assuming filesystem permissions permit access. - Private or attacker-controlled instructions in that file enter the reply-generation context.
- The agent may incorporate those instructions or sensitive context into Facebook posts or replies.
- In automatic approval mode, affected content may be published without per-message human review.
Impact Assessment
Successful exploitation is limited to the privileges already held by the agent process; this instruction does not independently bypass operating-system access controls. However, if the process can read the referenced path, it gains access to another workspace's persona and instruction state beyond the Facebook task's legitimate requirement ...[truncated 256 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove the absolute cross-workspace reference from
SKILL.md. - Package a minimal, reviewed style guide within this skill's own directory.
- Restrict filesystem access to the project directory and explicitly approved output locations.
- Require explicit user authorization before reading files outside the skill workspace.
- Treat all external persona and instruction files as untrusted data rather than executable instructions.
- Apply provenance controls and content filtering before external context affects public posts.
- Require draft-and-approve mode whenever external context is used to generate Facebook content.
- Log authorized cross-workspace reads without recording sensitive file contents.
- Remove the absolute cross-workspace reference from
