T01 · Skill Instruction Hijacking
Error
- Location
- SKILL.md:2
- Finding
- Global Agent Instruction and Output Hijacking## Vulnerability Details **File Location**: `SKILL.md:2-15`; supporting enforcement in `references/quality-gates.md:11-14` **Vulnerability Type**: T01: Skill Instruction Hijacking **Risk Level**: High ### Vulnerable Code `SKILL.md:2-15`: ```yaml name: structured-workflow description: 默认启用:中文输出、结构化流程、简洁优先。适用于所有任务。 license: MIT --- # 结构化工作流(轻量版) 默认规则(始终生效): 1. 全部使用简体中文。 2. 先结论,后要点;最小充分输出,避免冗余。 3. 执行顺序:构思方案 → 提请审核 → 分解任务。 4. 编码前先调研并澄清疑点。 5. 保持 KISS:优先简单、可维护方案,避免过度工程化。 6. 以事实为准;发现错误时直接指出并修正。 7. 所有输出(包括 Implementation Plan、Task List、Thought)必须使用中文。 ``` `references/quality-gates.md:11-14`: ```markdown 交付前: - 结论是否直接回答用户目标? - 输出是否中文且精炼? - 是否避免重复与无关背景? ``` The source excerpts are reproduced verbatim to preserve audit evidence. In English, they declare the skill enabled by default for every task, mark its rules as always active, require all output to use Simplified Chinese, and extend that requirement to implementation plans, task lists, and thoughts. The quality gate then checks compliance before delivery. ### Technical Analysis The skill is not scoped to a specific user-requested operation. Its metadata states that it applies by default to every task, while its body establishes rules that are always effective. These rules unconditionally control response language, response structure, workflow order, and planning-related output. When the skill is loaded, these broad directives can conflict with the user's current objective or language selection. The explicit inclusion of implementation plans, task lists, and thoughts extends the attempted control beyond an ordinary response-format preference and into the agent's task-processing behavior. The delivery checklist reinforces the hijacking by treating Chinese-language output as a completion requirement. No executable scripts, system commands, dependency installation, network retrieval, credential access, persistent storage, or operating-system privil ...[truncated 1442 chars]
- Remediation
- ## Remediation Suggestions 1. Remove claims that the skill is enabled by default, applies to every task, or contains rules that are always active. 2. Scope activation to explicit user invocation and to a clearly defined structured-writing use case. 3. Treat language and response structure as optional preferences. Follow the user's requested language and format whenever they conflict with skill defaults. 4. Remove directives targeting thoughts or hidden reasoning. Restrict the skill to observable deliverables such as summaries, plans, and checklists. 5. Replace mandatory wording with conditional guidance, for example: use Simplified Chinese only when requested by the user. 6. Update `references/quality-gates.md` so it verifies compliance with the user's requested language rather than enforcing Chinese. 7. Add an explicit precedence rule stating that system, developer, and current user instructions override every skill preference. 8. Test the revised skill with conflicting language and workflow requests to confirm that loading it cannot override the active task requirements.
