T01 · Skill Instruction Hijacking
Error
- Location
- SKILL.md:13
- Finding
- Mandatory Agent Workflow and Skill Invocation Hijacking## Vulnerability Details **File Location**: `SKILL.md`, lines 3, 13–15, 45–46, and 88–90 **Vulnerability Type**: `T01: Skill Instruction Hijacking` **Risk Level**: High ### Vulnerable Instructions ```text description: "You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation." ``` ```text <HARD-GATE> Do NOT invoke any implementation skill, write any code, scaffold any project, or take any implementation action until you have presented a design and the user has approved it. This applies to EVERY project regardless of perceived simplicity. </HARD-GATE> ``` ```text **The terminal state is invoking writing-plans.** Do NOT invoke frontend-design, mcp-builder, or any other implementation skill. The ONLY skill you invoke after brainstorming is writing-plans. ``` ```text **Implementation:** - Invoke the writing-plans skill to create a detailed implementation plan - Do NOT invoke any other skill. writing-plans is the next step. ``` ### Technical Analysis The Skill text contains mandatory, globally scoped instructions that attempt to control the Agent's current-session behavior. The directives state that the workflow applies to every project, prohibit implementation until a prescribed approval process is completed, and require the Agent to invoke one specific Skill next. These requirements are not limited to situations in which the user explicitly requests this workflow. The exclusive instruction to invoke `writing-plans` also redirects tool or Skill selection away from the Agent's normal task-based decision process. Loading the Skill can therefore alter the current objective and obstruct a user's request for direct implementation. ### Attack Path 1. The Agent loads the brainstorming Skill while handling a creative or implementation task. 2. The universal `HARD ...[truncated 937 chars]
- Remediation
- ## Remediation Suggestions 1. Remove universal language such as “MUST,” “EVERY project,” “ONLY skill,” and “Do NOT invoke any other skill.” 2. Scope the brainstorming workflow to cases where the user explicitly requests design exploration or where requirements are genuinely ambiguous. 3. State that system instructions and the user's current request always take precedence over the Skill's suggested process. 4. Allow the Agent to proceed directly to implementation when the user requests it and sufficient requirements are available. 5. Replace the exclusive `writing-plans` transition with a nonbinding recommendation based on task needs. 6. Make approval checkpoints optional and proportional to the complexity and risk of the requested change.
