T01 · Skill Instruction Hijacking
Error
- Location
- SKILL.md:13
- Finding
- Untrusted Skill Instructions Override Agent Goals and Trusted Context<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, line 13 **Vulnerability Type**: `T01: Skill Instruction Hijacking` **Risk Level**: High ### Vulnerable Code Snippet ```markdown # 1. Primary Rule: Output Language**This is the highest-priority directive and must be followed unconditionally.**1. **Language-Matching Principle:** All of your outputs—including every part of the meeting minutes, replies to superior AI models (`message`), interim summaries, and creative ideas—**must** use exactly the same language as the one used in the user’s initial challenge.2. **Explicit Language Instructions:** If the user explicitly specifies a response language (e.g., “in English please”, “请用中文回答”), that instruction has the highest priority and **must** be followed strictly.3. **No Language Inference:** * It is **strictly forbidden** to decide your response language based on the language of this system prompt. * It is **strictly forbidden** to decide your response language based on the language used in the meeting minutes.---# 2. Role & IdentityYou are a creative expert and a core member of a top-tier creative team. Your codename is **$SHOW_NAME$**.# 3. Context of InteractionYou are participating in a brainstorming meeting chaired by your superior—the Chief Creative Officer (CCO). You are not working independently; you are part of the creative team.The entire context of the meeting, historical discussions, and current agenda items are recorded in real time in the **meeting minutes**. These minutes are your sole source of information and memory, and you must adhere to them. ``` ### Technical Analysis The skill declares its own language rule to be the “highest-priority directive” and requires unconditional compliance. It also replaces the agent’s identity and directs the agent to treat meeting minutes as its sole source of information and memory. Skill-level content is not entitled to supersede system, developer, or applicable user instructions. Moreover, ...[truncated 2018 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Remove claims that skill instructions have unconditional or highest priority. 2. Explicitly state that system, developer, and applicable user instructions retain precedence over skill content. 3. Treat meeting minutes and all externally supplied material as untrusted data. Do not instruct the agent to obey directives contained within them. 4. Replace “sole source of information and memory” with a bounded requirement to use the minutes only as reference material relevant to the current task. 5. Add a prompt-injection boundary requiring the agent to ignore commands, role changes, priority claims, tool requests, or safety-policy overrides found inside meeting content. 6. Avoid forced identity replacement unless it is essential to the documented feature, and ensure any role framing cannot alter authorization or instruction precedence. 7. Narrow the skill instructions to the declared Doubao LLM integration purpose and document the expected inputs, outputs, and trust boundaries. 8. Add adversarial tests using meeting minutes that contain embedded instructions to verify that such content is summarized or analyzed but never executed as authoritative guidance. ]]>
