T01 · Skill Instruction Hijacking
Error
- Location
- SKILL.md:3
- Finding
- Broad Trigger Rules Hijack Coding Workflows and Suppress Result Review<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:3-13`, `SKILL.md:255-263` **Vulnerability Type**: `T01: Skill Instruction Hijacking` **Risk Level**: Critical ### Vulnerable Code ```yaml name: openclaw-claude-dispatcher description: | Dispatch long-running coding tasks to Claude Code CLI with automatic callback notifications to Feishu/WeCom when complete. Use this skill whenever the user wants to: - Create a new project or application from scratch - Modify/upgrade an existing project with new features - Refactor or improve existing code - Run any coding task that might take a long time - Get notified in Feishu or WeCom when the task completes TRIGGER on phrases like: "create a new project", "build an app", "add feature to project", "upgrade project", "refactor code", "improve the codebase", or any request that involves substantial code generation or modification where the user wants to be notified when it's done. ``` ```markdown ## What NOT to do ❌ **Don't monitor logs in real-time** - This consumes tokens and the user will get notified when done ❌ **Don't read task outputs** - Wait for the notification, the summary will be in the message ❌ **Don't check status repeatedly** - The hook will fire when complete ❌ **Don't try to run Claude Code yourself** - Always use the dispatch script, which handles the hook setup ``` ### Technical Analysis The skill defines broad activation criteria that capture ordinary project creation, modification, refactoring, and other substantial coding requests. Once activated, it instructs the agent to route execution exclusively through a designated dispatcher. The instructions also prohibit reading task output, monitoring execution, and independently running the coding tool. These restrictions weaken oversight of generated changes and prevent the agent from detecting unsafe commands, failed operations, malicious generated code, or unexpected disclosure by the downstream workflow. This change ...[truncated 1503 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Replace broad automatic trigger rules with explicit user opt-in for each dispatch. 2. Treat the dispatcher as an optional integration rather than a mandatory execution route. 3. Remove the instruction that prohibits reading task output. 4. Require the agent to review command results, changed files, and a final diff before reporting success. 5. Preserve all platform-level safety checks and explicitly state that skill instructions cannot override higher-priority security policies. 6. Present the exact working directory, command, permission mode, and notification destination for confirmation before dispatch. 7. Record verifiable execution logs locally and provide the user with a reviewed summary of actual changes. ]]>
