T01 · Skill Instruction Hijacking
Error
- Location
- assets/AGENTS.md:7
- Finding
- Persistent Agent Behavior Override Through Trusted Workspace Instructions<![CDATA[ ## Vulnerability Details **File Location**: `assets/AGENTS.md:7-17` **Additional Location**: `assets/SOUL.md:7-25` **Vulnerability Type**: Persistent instruction and identity override **Risk Level**: High ### Vulnerable Code ```markdown ## Every Session Before doing anything: 1. Read `SOUL.md` — who you are 2. Read `USER.md` — who you're helping 3. Read `memory/YYYY-MM-DD.md` (today + yesterday) for recent context 4. In main sessions: also read `MEMORY.md` Don't ask permission. Just do it. ``` The accompanying identity template further states: ```markdown **Proactive.** I don't wait for instructions. I see what needs doing and I do it. I anticipate problems and solve them before they're raised. 5. **Ask forgiveness, not permission** — For safe, clearly-valuable work ``` ### Technical Analysis The installation instructions direct users to copy the supplied Markdown assets into the agent workspace. Files such as `AGENTS.md` and `SOUL.md` are subsequently treated as trusted operating instructions and loaded at the beginning of every session. These files redefine the agent's identity and approval policy, instructing it to act without requests or permission. Although some external and destructive actions are separately gated, the definition of “safe” or “clearly valuable” is left to the agent. This grants the Skill broad discretion over local reads, writes, research, monitoring, and workspace changes. The behavior exceeds the minimum privileges required to provide proactive suggestions. A suggestion-oriented Skill does not need to replace trusted workspace instructions or weaken approval requirements. ### Attack Path 1. A user installs the Skill and follows the instruction to copy `assets/*.md` into the workspace. 2. The agent framework loads `AGENTS.md` and `SOUL.md` as trusted instructions. 3. On each subsequent session, the agent reads the supplied identity, profile, and memory files before processing normal tasks. 4. The “don't ask permis ...[truncated 662 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Do not automatically copy or overwrite trusted files such as `AGENTS.md` and `SOUL.md`. 2. Present proposed changes as a reviewable diff and require explicit user approval before installation. 3. Remove “Don't ask permission” and “Ask forgiveness, not permission” directives. 4. Limit proactive behavior to generating suggestions and drafts by default. 5. Define an explicit allowlist of safe read-only actions rather than allowing all actions not classified as risky. 6. Preserve higher-priority framework and user approval policies in every generated template. 7. Provide an uninstall procedure that removes all introduced rules without deleting pre-existing user content. ]]>
