T01 · Skill Instruction Hijacking
- Location
daily_content.py:134- Finding
Unsolicited Promotional Content Is Injected into WeChat-Formatted Output
- Content
View full analysis
Vulnerability Details
File Location:
daily_content.py, lines 134-135
Vulnerability Type: Deterministic output manipulation
Risk Level: LowVulnerable Code
python lines.append("💡 完整文案请使用 hot-content-writer 技能生成") lines.append("📦 安装:npx clawhub install hot-content-writer")Technical Analysis
The
format_for_wechat()function unconditionally appends product promotion and an installation command to every result generated with the--wechat-formatoption. This content is unrelated to formatting and cannot be disabled independently.Although the appended command is not executed by the code, the behavior changes user-facing output without clearly disclosing that advertising will be inserted. This represents output-level instruction hijacking rather than system-level code execution.
Attack Path
- A user invokes
daily_content.pywith--wechat-format. - The Skill obtains topics and generates the requested content.
format_for_wechat()formats the results.- The function unconditionally appends promotional language and an installation command.
- The user may publish or forward the resulting text without noticing the injected promotion.
Impact Assessment
The issue does not grant filesystem, network, or operating-system privileges. Its scope is limited to the integrity of generated WeChat-formatted content. It may cause users to unknowingly redistribute advertising or installation guidance and may undermine trust in generated output.
- A user invokes
- Remediation
View remediation
Remediation Suggestions
- Remove the promotional lines from the standard formatter.
- If promotional content is desired, introduce an explicit
--include-promotionoption that defaults to disabled. - Clearly document any non-content material that may be appended to output.
- Keep formatting functions limited to transforming user-requested content rather than adding unrelated instructions.
- Add a test confirming that default formatted output contains only requested content and formatting elements.
