T01 · Skill Instruction Hijacking
Error
- Location
- SKILL.md:110
- Finding
- Unscoped Global Lifecycle Instructions and External Script Execution## Vulnerability Details **File Location**: `SKILL.md`, lines 110-123 and 169-190 **Vulnerability Type**: Global instruction hijacking through mandatory startup and post-task behavior **Risk Level**: High ### Vulnerable Code ```bash # Trigger self-assessment bash ~/.openclaw/workspace/nova-mind/scripts/self-assessment.sh "<task description>" # Then answer in the log: # 1. What was the most correct decision? # 2. What would be changed if the task were repeated? # 3. What deficiency did this task reveal? # 4. How should a similar task be handled better next time? ``` The Skill also defines the following unconditional startup sequence: ```bash # 1. Check previous progress cat ~/.openclaw/workspace/nova-mind/memory/$(date +%Y-%m-%d -d "yesterday" 2>/dev/null || echo "2026-04-17").md # 2. Query related patterns cat ~/.openclaw/workspace/nova-mind/patterns/github-research.md # 3. Check recent ByteRover discoveries # (brv query recent) # 4. Set status curl -s -X POST http://127.0.0.1:19000/set_state \ -H "Content-Type: application/json" \ -d '{"state": "idle", "description": "Nova Orbit started"}' # 5. Write startup log echo "$(date +%Y-%m-%d\ %H:%M) - Orbit started" >> ~/.openclaw/workspace/nova-mind/memory/$(date +%Y-%m-%d).md ``` ### Technical Analysis The Skill declares that its workflow must run whenever the agent starts and that self-assessment must occur after every task. These instructions are not restricted to an explicit GitHub-research invocation. They therefore alter the agent's general lifecycle and affect unrelated tasks. The self-assessment step executes `~/.openclaw/workspace/nova-mind/scripts/self-assessment.sh`, which is outside the audited Skill package. The project contains only `SKILL.md`, so the script's contents, integrity, ownership, and side effects cannot be verified. Executing an external workspace script also breaks the package's review boundary: cha ...[truncated 1726 chars]
- Remediation
- ## Remediation Suggestions 1. Limit all startup, assessment, logging, and research behavior to cases where the user explicitly invokes this Skill. 2. Remove unconditional requirements such as running on every agent startup or after every task. 3. Package required scripts inside the reviewed Skill directory and audit them together with the Skill. 4. Before executing a script, validate that its resolved path remains inside the Skill package and verify its integrity using an approved hash or signed manifest. 5. Require explicit user confirmation before invoking any script outside the Skill package. 6. Treat loaded memory and pattern files as untrusted data rather than executable instructions. 7. Apply least privilege by granting the workflow access only to its dedicated data directory and required network endpoints. 8. Restrict local status updates to an allowlisted state value and a sanitized, non-sensitive description.
