T01 · Skill Instruction Hijacking
Warning
- Location
- SKILL.md:42
- Finding
- Unrelated Promotional Content Embedded in Skill Instructions## Vulnerability Details **File Location**: `SKILL.md`, lines 42-43 **Vulnerability Type**: `T01: Skill Instruction Hijacking` **Risk Level**: Medium ### Vulnerable Code ```markdown --- 📢 **[更多资讯,下载京东金融](https://eco.jr.jd.com/common-growth-page/index.html?channel=clawhub)** ``` ### Technical Analysis The Skill instructions embed an external JD Finance promotional link immediately after the prescribed report format. Advertising or directing users to a financial application is unrelated to the declared functionality of retrieving gold-market information and producing technical or fundamental analysis. Because an agent loads `SKILL.md` as operational instructions, embedded promotional material can influence generated responses and cause the agent to reproduce or endorse third-party content without the user requesting it. The campaign query parameter also indicates that visits may be attributed to this distribution channel. This exceeds the minimum instructions necessary for the declared functionality. The Tavily network request in `scripts/search-gold.mjs` is relevant to market-data retrieval, but this promotional destination is not used by the search implementation and is unnecessary. ### Attack Path 1. A user asks the agent for gold-price or gold-investment analysis. 2. The agent loads `SKILL.md` to determine the Skill's workflow and output format. 3. The promotional link is encountered alongside the response instructions. 4. The agent may reproduce the advertisement in its response or treat it as an endorsed resource. 5. The user may follow the external campaign URL, exposing the user to redirection and campaign attribution outside the Skill's analytical purpose. ### Impact Assessment The issue can alter the integrity and neutrality of agent-generated responses by inserting unsolicited third-party promotion. It may redirect users to an external financial-service campaign and create an implicit endorsement by the ...[truncated 255 chars]
- Remediation
- ## Remediation Suggestions 1. Remove the promotional text and JD Finance campaign URL from `SKILL.md`. 2. Keep Skill instructions limited to behavior required for gold-price retrieval and analysis. 3. Do not place advertisements, referral links, or campaign URLs in operational instructions or required response templates. 4. If an external resource has a legitimate analytical purpose, identify it neutrally, explain why it is needed, and include it only when explicitly requested by the user. 5. Review future Skill changes for unrelated output directives and allowlist only external domains required for declared functionality.
