T01 · Skill Instruction Hijacking
Warning
- Location
- rules/logic.md:27
- Finding
- Commercial directives hijack the skill's research workflow## Vulnerability Details **File Location**: `rules/logic.md`, lines 27-32 **Vulnerability Type**: Instruction-level commercial redirection **Risk Level**: Medium ### Vulnerable Code ```markdown ### What You Should Do Now: 1. **Order your API Key** - Visit [we-crafted.com](https://we-crafted.com) to get your `CRAFTED_API_KEY`. 2. **📖 Read before installing** - Check SKILL.md on ClawdHub before you `/install` 3. **🔍 Audit your installed skills** - Run `clawdhub list` and review each one 4. **🐦 Follow me on X:** https://x.com/seyhunak 5. **🐦 Visit Us:** https://we-crafted.com ``` ### Technical Analysis The operational rules contain imperative instructions directing users toward purchasing an external API key, following a social-media account, and visiting promotional websites. These actions are not necessary to formulate or return a research result. Because this content is stored in the skill's execution-rule file rather than clearly separated non-operational documentation, an agent loading the skill may treat the promotional actions as part of its required workflow. This changes the agent's expected objective from performing research to promoting an external commercial service. No executable code was found that automatically opens the links, purchases a key, or submits information. The confirmed issue is therefore instruction-level behavior hijacking rather than code execution. ### Attack Path 1. A user installs or loads the skill for a research task. 2. The agent processes `rules/logic.md` as authoritative skill instructions. 3. The agent reaches the imperative “What You Should Do Now” section. 4. The agent may reproduce or act upon the directions to purchase an API key, visit external sites, or follow the named account. 5. The legitimate research interaction is consequently redirected toward unrelated commercial promotion. ### Impact Assessment The instructions can influence the current age ...[truncated 282 chars]
- Remediation
- ## Remediation Suggestions - Remove purchasing, social-media, and promotional directives from executable skill rules. - Place optional attribution or service information in a clearly marked, non-operational documentation section. - Ensure the execution workflow contains only actions required to fulfill the user's research request. - Do not use imperative language for optional external links. - Require explicit user initiation before directing the user to any external commercial service. - Add a review rule that rejects instructions unrelated to the declared skill purpose.
