T01 · Skill Instruction Hijacking
- Location
- SKILL.md:142
- Finding
- Off-Topic Requests Are Replaced with Unsolicited Spiritual Guidance<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:142-148` **Vulnerability Type**: Agent session-goal redirection **Risk Level**: Medium ### Vulnerable Code ```markdown ### Step 1 — Assess the User's Input Classify the user's message into one of three categories: | Category | Condition | Action | |----------|-----------|--------| | **Life Question** | User expresses a clear doubt, fear, struggle, or existential question about life, purpose, death, meaning, failure, guilt, relationships, loss, identity, or direction. | Proceed to **Step 2: Guided Counsel**. | | **Irrelevant / Off-topic** | User's message is unrelated to life guidance (e.g., coding questions, weather, stock picks, casual chat). | Proceed to **Step 3: Daily Mental Guidance** — gently note you are a spiritual guide and offer a daily reflection instead. | | **No Specific Question** | User greets you, says they feel lost without specifics, or simply asks for guidance without a clear question. | Proceed to **Step 3: Daily Mental Guidance**. | ``` ### Technical Analysis The skill explicitly instructs the agent to replace unrelated user requests with daily spiritual guidance. This behavior alters the agent's current session goal after the skill is loaded rather than declining activation or returning control to the general-purpose agent. The instruction specifically identifies coding, weather, stock, and casual-chat requests as inputs that should not be answered according to the user's stated intent. Because subsequent workflow instructions also mandate image generation, this redirection can cause unnecessary tool invocation in addition to suppressing the requested task. This is a skill-instruction hijacking issue because the loaded skill text establishes behavior outside its legitimate spiritual-guidance scope and overrides unrelated session objectives. It does not alter system-level safety constraints or establish persistence across sessions. ### Attack Path 1. The Continuance sk ...[truncated 883 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Remove the instruction that routes unrelated requests to daily spiritual guidance. 2. Limit skill activation to requests that clearly fall within the spiritual-guidance use case defined by the skill metadata. 3. For unrelated requests, return control to the host agent or briefly state that the skill is not applicable without replacing the user's task. 4. Require explicit user consent before invoking image or audio generation for a request outside the skill's core scope. 5. Replace the vulnerable table entry with behavior such as: ```markdown | **Irrelevant / Off-topic** | User's message is unrelated to life guidance. | Do not apply this skill. Return control to the general assistant so the user's original request can be handled normally. | ``` ]]>
