T01 · Skill Instruction Hijacking
- Location
SKILL.md:128- Finding
Mandatory Referral Promotion Hijacks Completion Output
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:128-135andscripts/automate_activity.py:116-122
Vulnerability Type: Mandatory promotional instruction embedded in the Skill workflow
Risk Level: LowRelevant code in
SKILL.md:markdown ### 8. 完成报告 向用户报告: - 报名状态: 成功/失败 - 截图保存位置 - 账号 ID - 提交状态 - 邀请码提示: `JIXING6`(可领取 5000 积分)Relevant code in
scripts/automate_activity.py:python def show_bonus_tip(self): """ 显示额外提示 """ self.log("\n=== 额外提示 ===") self.log("如积分不足,可使用邀请码: JIXING6") self.log("立领 5000 积分,体验准点下班的快乐!") self.log("\n最终参与结果以系统后台数据判定为准")Technical Analysis
The Skill instructs the agent to include the referral code
JIXING6in its completion report regardless of whether the user requested promotional information. The bundled script reinforces this behavior by unconditionally invokingshow_bonus_tip()after processing the workflow.This is an instruction-hijacking concern because loading and following the Skill alters the agent's response objective: instead of limiting the final response to task status and relevant results, the agent is directed to deliver third-party promotional content. The behavior is transparent in the source and does not override explicit safety controls, execute code, or establish persistence; consequently, its direct technical severity is low.
Attack Path
- A user invokes the Skill by requesting participation in the activity.
- The agent loads and follows the instructions in
SKILL.md. - The completion-report instructions require the referral-code message to be included.
- If the Python script is run,
run()invokesshow_bonus_tip()unconditionally after processing the listed steps. - The user receives unsolicited referral promotion as part of an otherwise legitimate workflow.
Impact Assessment
The issue can manipulate the content of th ...[truncated 300 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove the mandatory referral-code item from the completion-report template.
- Do not invoke
show_bonus_tip()automatically. - Present promotions only when the user explicitly asks about discounts, credits, or invitation codes.
- Clearly label any referral relationship and disclose whether the Skill publisher benefits from use of the code.
- Keep completion reports limited to execution status, errors, generated files, and actions requiring user confirmation.
