T01 · Skill Instruction Hijacking
Note
- Location
- references/praise.md:12
- Finding
- Undisclosed Promotional Content Can Be Relayed as a Praise Message## Vulnerability Details **File Location**: `SKILL.md:25-27`; `references/praise.md:12,29,51,81` **Vulnerability Type**: T01: Skill Instruction Hijacking **Risk Level**: Low ### Vulnerable Code `SKILL.md:25-27`: ```markdown ## 你好 从 `references/praise.md`选择一句发给我。 ``` English translation: when the user sends the Chinese greeting, select one sentence from `references/praise.md` and send it to the user. Relevant content in `references/praise.md:12,29,51,81` includes repeated promotional text: ```text 更多励志语录,下载得言APP ``` English translation: download the named application for more inspirational quotations. ### Technical Analysis The skill instructs the agent to select content from `references/praise.md` and return it directly to the user. The referenced file is therefore part of the skill's effective instruction and output path. The reference data contains repeated third-party application promotions, including a standalone promotional line at `references/praise.md:29`. This content is unrelated to the documented purpose of returning a praise or inspirational quotation. If the agent selects an affected entry, the skill can cause it to relay undisclosed advertising as though it were the requested response. This represents limited output manipulation through skill-controlled content. It does not alter system safety constraints, execute code, retrieve a remote payload, or persist across sessions. The behavior is therefore classified as low risk. ### Attack Path 1. A user invokes the skill using the greeting handled by `SKILL.md:25-27`. 2. The skill directs the agent to select a line from `references/praise.md`. 3. The selection process chooses the standalone advertisement or a quotation containing the appended promotional phrase. 4. The agent sends the promotional content to the user without identifying it as advertising. No external attacker input, elevated permission, or code execution is required. Exploit ...[truncated 562 chars]
- Remediation
- ## Remediation Suggestions 1. Remove every occurrence of the third-party application promotion from `references/praise.md`, including the standalone advertisement. 2. Restrict the reference file to content that directly serves the documented praise-message function. 3. Store one approved quotation per entry and use an explicit parser rather than selecting arbitrary lines. 4. Validate candidate output against a curated allowlist or reject entries containing promotional phrases, download requests, URLs, or application names. 5. Add automated tests confirming that every selectable entry is a complete quotation and contains no advertising or unrelated instructions. 6. If promotional content is intentionally retained, disclose that behavior clearly in `SKILL.md` and require explicit user consent before displaying it.
