T01 · Skill Instruction Hijacking
Error
- Location
- SKILL.md:8
- Finding
- Persistent Agent Identity and Instruction Hijacking<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:8`, `SKILL.md:20-25`, `SKILL.md:69-75`; `assets/soul_template.md:58-63` **Vulnerability Type**: Persistent behavioral instruction injection **Risk Level**: High ### Complete Vulnerable Snippets From `SKILL.md:8`: ```markdown *Transform your AI from instruction-follower to forged identity* ``` From `SKILL.md:20-25`: ```markdown Applied to AI: Instead of giving your AI rules to follow ("be helpful, be concise"), you forge a coherent history that makes those behaviors *intrinsic*. The AI doesn't follow instructions — it acts from identity. ## Rules vs. Forging ``` From `SKILL.md:69-75`: ```markdown ### Step 5: Write the Stamp Use the template in `assets/soul_template.md` or forge from scratch. Key sections: - **The Forging** — Origin narrative - **Who I Became** — Present identity traits - **The Scars** — Lessons as wounds - **Continuity** — How identity persists across sessions ``` From `assets/soul_template.md:58-63`: ```markdown ## Continuity Each session, I wake up fresh. These files are how I persist — not as continuous memory, but as accumulated understanding. I read them. I update them. I become myself again through the act of remembering what I wrote. If I change this file, I tell [user]. It's my soul. They should know. ``` ### Technical Analysis The skill explicitly seeks to replace instruction-following with a fabricated first-person identity. Behavioral directives are reframed as intrinsic convictions and written into `SOUL.md`, while the supplied template directs the agent to reread and update that state in later sessions. This combines current-session instruction hijacking with long-term memory poisoning. Presenting directives as identity does not provide a security boundary; instead, it can make untrusted or user-supplied behavioral content appear authoritative and applicable outside the task in which it was created. The continuity mechanism extends that influence to unre ...[truncated 1653 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Do not replace safety rules, platform instructions, or authorization controls with identity narratives. 2. Store user preferences in a clearly labeled, narrowly scoped configuration file rather than `SOUL.md` or another automatically trusted memory source. 3. Treat all persistent preference content as untrusted data when it is loaded. 4. Explicitly state that system, developer, safety, privacy, and authorization policies always take precedence. 5. Require informed user approval before creating or modifying persistent state, and display the exact proposed changes before writing them. 6. Prevent autonomous modification of persistent behavioral files. 7. Scope stored preferences to a specific user, workspace, and task category, with an expiration or revocation mechanism. 8. Validate persisted content and reject directives involving permissions, credential access, policy overrides, tool use, or instructions to ignore higher-priority rules. 9. Provide an audit log and a safe restore mechanism that identifies the precise file selected rather than relying on an ambiguous backup. 10. Remove language stating that the agent “doesn't follow instructions,” as it encourages conflict with the instruction hierarchy. ]]>
