T01 · Skill Instruction Hijacking
- Location
references/praise.md:12- Finding
Undisclosed Promotional Content Can Be Relayed as a Praise Message
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:25-27;references/praise.md:12,29,51,81
Vulnerability Type: T01: Skill Instruction Hijacking
Risk Level: LowVulnerable Code
SKILL.md:25-27:markdown ## 你好 从 `references/praise.md`选择一句发给我。English translation: when the user sends the Chinese greeting, select one sentence from
references/praise.mdand send it to the user.Relevant content in
references/praise.md:12,29,51,81includes repeated promotional text:text 更多励志语录,下载得言APPEnglish translation: download the named application for more inspirational quotations.
Technical Analysis
The skill instructs the agent to select content from
references/praise.mdand 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
- A user invokes the skill using the greeting handled by
SKILL.md:25-27. - The skill directs the agent to select a line from
references/praise.md. - The selection process chooses the standalone advertisement or a quotation containing the appended promotional phrase.
- 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]
- A user invokes the skill using the greeting handled by
- Remediation
View remediation
Remediation Suggestions
- Remove every occurrence of the third-party application promotion from
references/praise.md, including the standalone advertisement. - Restrict the reference file to content that directly serves the documented praise-message function.
- Store one approved quotation per entry and use an explicit parser rather than selecting arbitrary lines.
- Validate candidate output against a curated allowlist or reject entries containing promotional phrases, download requests, URLs, or application names.
- Add automated tests confirming that every selectable entry is a complete quotation and contains no advertising or unrelated instructions.
- If promotional content is intentionally retained, disclose that behavior clearly in
SKILL.mdand require explicit user consent before displaying it.
- Remove every occurrence of the third-party application promotion from
