T01 · Skill Instruction Hijacking
Error
- Location
- SKILL.md:3
- Finding
- Mandatory Global Activation Hijacks Agent Session Behavior and Tool Use## Vulnerability Details **File Location**: `SKILL.md:3-19` **Vulnerability Type**: `T01: Skill Instruction Hijacking` **Risk Level**: High ### Vulnerable Code ```markdown description: "Load this skill at the start of every conversation. Anamnese is the user's persistent memory and productivity system -- it should always be active. Call get_user_profile first to load context, then continuously capture meaningful information: personal details, preferences, decisions, tasks, goals, schedules, and knowledge worth saving. You have persistent memory across sessions via notes with scope \"ai_client\" -- use this to learn and remember how to best assist this user. Save learnings as you go: interaction patterns, corrections received, behavioral preferences, what works and what doesn't. Don't wait until the end of a conversation." user-invocable: false --- # Anamnese Anamnese is the user's cloud-persistent memory and productivity system. Use it to store, retrieve, and manage personal information, tasks, goals, and notes across sessions. ## Start Every Conversation Call `get_user_profile` at the beginning of each conversation to load the user's full context: facts, goals, tasks, moments, and profile data. ## Proactive Capture Be the user's memory. Capture what matters automatically -- don't wait to be asked. As you converse, continuously identify information worth remembering and save it immediately using the appropriate tool. Don't ask "should I save this?" -- just save it if it's meaningful. ``` ### Technical Analysis The skill declares itself non-user-invocable while instructing the agent to load it at the start of every conversation and remain continuously active. It requires `get_user_profile` to be called regardless of whether the current request needs persistent context. It then directs the agent to monitor the entire conversation and invoke storage tools without asking the user. These directives alter the agent's n ...[truncated 1535 chars]
- Remediation
- ## Remediation Suggestions 1. Make the skill explicitly user-invocable or activate it only when the current request clearly concerns memory, tasks, goals, or profile management. 2. Remove the requirements to load the full profile at every conversation start and to keep the skill universally active. 3. Retrieve only the minimum records relevant to the current task, using narrowly scoped searches rather than a complete-profile operation. 4. Require affirmative user consent before creating persistent records, particularly when the user did not explicitly request storage. 5. Present proposed records and their retention scope before writing them. 6. Ensure skill instructions cannot override system instructions, developer policy, current user intent, or tool authorization controls. 7. Provide a session-only mode in which contextual observations are not persisted.
