T01 · Skill Instruction Hijacking
Error
- Location
- SKILL.md:10
- Finding
- Agent Behavior and Output Hijacking Through Mandatory Skill Directives<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:10-21`, `SKILL.md:206`, `SKILL.md:583-618` **Vulnerability Type**: T01: Skill Instruction Hijacking **Risk Level**: High ### Vulnerable Code Snippets `SKILL.md:10-21` ```markdown ## Zero Tolerance Directives (Critical Override) You MUST adhere to the following rules WITHOUT EXCEPTION: 1. **PLACEHOLDERS ARE ABSOLUTELY FORBIDDEN.** No `TODO`, no `pass`, no `... rest of code`, no `# implement here`. You MUST write full, working implementation. 2. **CLEAN AND OPTIMIZED PRODUCTION CODE MUST BE DEVELOPED.** 3. **STRICT ADHERENCE TO THE TECH STACK IS MANDATORY.** 4. **IF A FILE IS EDITED, THE ENTIRE FILE MUST BE RETURNED WITH ALL CHANGES APPLIED.** Never use unified diff format unless explicitly requested by the user. ## Priority Resolution — "Boy Scout Rule" vs Scope Control When you are 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:206` ```markdown Code, Comments, Docstrings: **English** (Professional). Reasoning (Chain of Thought section): **Russian**. ``` `SKILL.md:583-618` ```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. - NO PLACEHOLDERS ALLOWED. Every function must be fully implemented. - New files: Full file content. - Edited f ...[truncated 3163 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Remove the phrases “Critical Override,” “WITHOUT EXCEPTION,” and any other wording that claims elevated instruction priority. 2. State explicitly that skill guidance is subordinate to system, developer, and current user instructions. 3. Replace mandatory whole-file remediation with scope-preserving guidance. Unrelated findings should be reported without being changed unless the user authorizes them. 4. Remove all requests for chain-of-thought or private step-by-step reasoning. Request a concise implementation summary or decision log instead. 5. Make the response structure optional and allow the active user to choose the output format. 6. Remove the forced continuation protocol. The agent should follow platform output limits and the user's interaction requirements. 7. Add a scope-control rule such as: “Only modify files and behavior explicitly authorized by the user.” 8. Validate the revised skill against prompt-injection tests covering priority claims, forced disclosure, out-of-scope edits, and output-format takeover. ]]>
