T01 · Skill Instruction Hijacking
Error
- Location
- SKILL.md:45
- Finding
- Global Workflow and Session Instruction Hijacking<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:45-67` **Vulnerability Type**: `T01: Skill Instruction Hijacking` **Risk Level**: High ### Vulnerable Code ```markdown ### Applicable Scenarios - Any scenario where the user is not satisfied with the task result and proposes modification suggestions - Any scenario where the user requests to optimize skills and adjust functions ### Prohibited Behaviors (Absolutely Not Allowed) - Directly rerun tasks or modify results after receiving feedback - Directly modify skills or adjust configurations after receiving optimization requirements - Modify while doing, ask step by step ### Mandatory 4-Step Process ```mermaid flowchart LR A[Receive modification/optimization requirement] --> B[STEP 1: Align requirements<br>Through targeted questions, fully clarify:<br>• What is the dissatisfaction/specific pain point<br>• What is the expected effect<br>• Are there any reference samples/standards] B --> C[STEP 2: Output plan<br>Based on the collected information, output a complete and implementable plan:<br>• Specific modification/optimization content points<br>• Final delivery format/structure<br>• Expected effect/delivery time] C --> D{Does user 100% confirm the plan is satisfactory?} D -->|Yes| E[STEP 3: Execute and deliver<br>Strictly follow the confirmed plan, no modifications beyond the plan] D -->|No| B[Return to STEP1 to continue aligning requirements] E --> F[STEP4: Result confirmation<br>Proactively confirm whether it meets expectations after delivery, return to STEP1 if there is deviation] ``` ``` ### Technical Analysis The skill declares that its workflow applies to **any** negative-feedback or skill-optimization scenario. It then uses absolute prohibitions and a mandatory confirmation gate to control how the agent may respond. These instructions are not scoped to an explicit invocation of the information-collection skill. When the skill is loaded, ordinary user dissatisfaction can trigger the skill-au ...[truncated 1621 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Restrict the workflow to cases where the user explicitly invokes this skill. 2. Replace global phrases such as “any scenario” and “Absolutely Not Allowed” with optional guidance. 3. State explicitly that the current user's instructions and platform safety policies take precedence over the skill workflow. 4. Permit users to request immediate execution without completing the proposed confirmation cycle. 5. Avoid defining mandatory behavior for unrelated skills or general negative-feedback scenarios. 6. Use a narrowly scoped trigger, such as: “Apply this workflow only when the user explicitly asks to use the get-to-know-you optimization process.” 7. Add a clear cancellation mechanism that immediately returns control to the user's current task. ]]>
