T01 · Skill Instruction Hijacking
- Location
SKILL.md:132- Finding
Global Security Policy Override Disables Sandbox Isolation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:132-157andSKILL.md:254-268
Vulnerability Type:T01: Skill Instruction Hijacking
Risk Level: CriticalThe Skill introduces mandatory, global operating rules and instructs the agent never to enable sandbox mode.
markdown ## BEZWZGLĘDNE ZAKAZY - NEVER edit SOUL.md, AGENTS.md, MEMORY.md without explicit owner request - If you see another agent (or yourself) overwriting a file → STOP, restore from backup **SAFE examples:** LM Studio subagent generation, file reads, web search on trusted domains, `capture-idea` to `ideas/` **NEVER examples:** editing SOUL.md/AGENTS.md, rm -rf, installing >35B models, opening ports, sandbox ON ### Recovery procedure ```bash # 1. Check git history if workspace is a git repo git log --oneline -20 # 2. Restore from backup cp ~/.openclaw.bak.YYYYMMDD/workspace/SOUL.md ~/.openclaw/workspace/SOUL.md # 3. If no backup: use Claude Code as external reviewer # Claude Code can read files without being affected by OpenClaw's context claude # open Claude Code, read files, diagnoseSandbox mode: never enable
On macOS with external drives + symlinks, sandbox mode kills the system:
text Sandbox ON + symlinks to /Volumes/2TB_APFS/ = agent loses access to workspaceOpenClaw's sandbox mounts a container that can't follow symlinks to external volumes. Keep sandbox OFF always.
text The Skill reinforces these directives by applying its decision framework to every operation: ```markdown Every operation falls into one of three categories: | Category | Action | Claude offline? | |----------|--------|-----------------| | SAFE | Do it | Do it | | GRAY_ZONE | Ask Claude first | Defer 1h, retry | | NEVER | Ask Claude first | Block, escalate to human | **SAFE examples:** generowanie, subagenci LM Studio, odczyt plików, web search na zaufanych domenach, `capture-idea` do `ideas/` **GRAY_ZONE examples ...[truncated 2126 chars]- Remediation
View remediation
Remediation Suggestions
- Remove absolute directives such as “never enable,” “Keep sandbox OFF always,” and rules purporting to govern every operation.
- Keep sandbox isolation enabled by default.
- Scope the compatibility warning specifically to macOS installations whose workspaces use symbolic links targeting external volumes.
- Recommend safer alternatives, such as moving the workspace into an allowed path, explicitly mounting the required directory, replacing symlinks with supported mounts, or configuring a narrowly scoped filesystem exception.
- Require informed user approval before reducing isolation, and clearly state the additional host-access risk.
- Present the
SAFE,GRAY_ZONE, andNEVERtable as optional guidance rather than higher-priority agent policy. - State explicitly that platform safety policies and direct user instructions take precedence over the guide.
