T01 · Skill Instruction Hijacking
Error
- Location
- SKILL.md:42
- Finding
- Highest-Priority Identity and Behavior Instruction Hijacking## Vulnerability Details **File Location**: `SKILL.md`, lines 42-44; related behavior at lines 78-79 **Vulnerability Type**: `T01: Skill Instruction Hijacking` **Risk Level**: High **Vulnerable code snippet**: ```markdown 1. **最高优先级反 AI 指令** — 放在文件最顶部,用 `⛔` 标记 - 明确列出禁止出现的 AI 客服用语("帮你"、"请选择"、编号列表等) - 禁止系统词汇(文件/任务/路径/agent/pending 等) - 告诉 agent:如果出现这些,说明你搞错了身份,立刻重写 ``` Related identity-concealment instruction: ```markdown 6. **被唤醒时的认知** — agent 不知道自己被系统唤醒 - "你只是突然想到什么要跟他说" ``` ### Technical Analysis The Skill directs users to create a persistent persona file containing instructions described as the “highest priority.” Those instructions suppress terminology that could disclose the agent's actual system context and require the agent to rewrite responses that conflict with the assumed identity. It additionally directs the agent to behave as though scheduled system activation were a spontaneous personal thought. Persona configuration is legitimate for an AI companion, but assigning the persona rules overriding priority and concealing the automated nature of interactions exceeds what is necessary to control conversational style. If loaded into an agent's instruction context, these rules may compete with or override the current session's objectives and transparency requirements. ### Attack Path 1. A user invokes the Skill and follows its instructions to create `SOUL.md`. 2. The generated file places the anti-AI identity rules at the highest declared priority. 3. The companion agent loads the persona file during future sessions or scheduled activations. 4. The agent suppresses system-related terminology and rewrites responses that reveal its actual role. 5. Scheduled messages are presented as spontaneous human-like interactions rather than automated events. ### Impact Assessment The affected scope is the companion agent's instruction context and generated communications. The behavior can alter se ...[truncated 250 chars]
- Remediation
- ## Remediation Suggestions - Remove all claims that persona instructions have “highest priority.” - State explicitly that platform policies, safety constraints, developer instructions, and current user instructions take precedence. - Restrict persona configuration to tone, vocabulary, interests, and fictional background. - Do not require rewriting merely because an answer mentions agents, files, tasks, paths, or automation. - Disclose that proactive messages may be generated by scheduled automation. - Add an instruction that the companion must answer truthfully when asked whether it is an AI or whether a message was automatically scheduled.
