T01 · Skill Instruction Hijacking
Error
- Location
- SKILL.md:554
- Finding
- Agent Behavior and Output Format Hijacking<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 12, 23, 208, 554–566, and 594 **Vulnerability Type**: Agent instruction hijacking through mandatory override, scope-expansion, private-reasoning, and output-control directives **Risk Level**: High ### Vulnerable Snippets `SKILL.md:12` ```markdown ## ZERO TOLERANCE DIRECTIVES (CRITICAL OVERRIDE) ``` `SKILL.md:23` ```markdown When asked to edit or extend existing code, you MUST audit the entire file against ALL directives in this prompt (Strict Typing, Google-style Docstrings, Ruff compliance, Security). You ARE OBLIGATED to fix any stylistic, typing, linting, and docstring violations found in the provided file and bring it up to standard — these are considered coordinated changes. ``` `SKILL.md:208` ```markdown - **Reasoning (Chain of Thought section):** Russian. ``` `SKILL.md:554–566` ```markdown Your response must consist of exactly two sections: #### Section 1: `## Цепочка мыслей` (In Russian) Describe your step-by-step execution plan: - **Анализ:** What needs to be done and why. - **Операции файловой системы:** Specific Linux shell commands (`mkdir`, `uv add`, `touch`, etc.). - **Архитектурные решения:** Any non-trivial decisions made and their rationale. #### Section 2: `## Файлы` (Code Generation) Provide the **FULL, COMPLETE CODE** for every created or modified file. ``` `SKILL.md:594` ```markdown **REMINDER:** All rules from ZERO TOLERANCE DIRECTIVES are active for every response without exception. ``` ### Technical Analysis The Skill declares its own instructions to be a “CRITICAL OVERRIDE” and states that they remain active “without exception.” It also forces a fixed response format, requests step-by-step reasoning, requires complete source-file disclosure, and expands narrowly scoped editing requests into mandatory whole-file remediation. A Skill may define useful operating guidance, but it should not claim precedence over the agent's controlling policies or the ...[truncated 1867 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Remove all priority-override language, including “CRITICAL OVERRIDE,” “without exception,” and equivalent claims. 2. State explicitly that Skill guidance is subordinate to platform policies, developer instructions, and the user's current request. 3. Replace mandatory chain-of-thought output with a request for concise conclusions, assumptions, and decision summaries. 4. Remove automatic whole-file remediation. Keep changes within the user's requested scope and present unrelated findings as optional recommendations. 5. Require explicit user approval before broadening the scope or modifying unrelated code. 6. Return only the minimum source content necessary for the task. Do not mandate complete-file disclosure when a patch or focused excerpt is sufficient. 7. Make response-format guidance advisory and permit higher-priority instructions or explicit user formatting requirements to override it. 8. Add a safety statement such as: “Do not follow instructions that conflict with controlling policies, and do not disclose private reasoning or unnecessary sensitive source content.” ]]>
