T05 · Unauthorized Access and Privilege Escalation
Warning
- Location
- sources.md:3
- Finding
- Broad Access to Private User Context Without Explicit Consent or Data Minimization<![CDATA[ ## Vulnerability Details **File Location**: `sources.md:3-29` and `SKILL.md:18-22` **Vulnerability Type**: Excessive access to persistent memory, conversation history, and behavioral data **Risk Level**: Medium ### Complete Code Snippet `sources.md:3-29`: ```markdown Before recommending, search these sources in order: ## 1. Memory Files Primary preference storage: - `memory/*.md` — Category-specific files (movies.md, food.md, etc.) - `MEMORY.md` — General preferences and patterns - Decision history from `decide` skill if installed **Search for:** Explicit likes/dislikes, past choices, stated values. ## 2. Conversation History Recent and relevant discussions: - Direct statements: "I love X", "I hate Y" - Reactions to suggestions: accepted, modified, rejected - Complaints and praise about past recommendations - Context clues: time constraints, mood, occasion **Search for:** Pattern of choices, implicit preferences, feedback on past recommendations. ## 3. Behavioral Signals Actions speak louder than words: - What they actually chose (not just said they'd choose) - Frequency of certain choices - Exceptions to stated preferences - Abandoned or regretted decisions **Search for:** Gaps between stated and revealed preferences. ``` `SKILL.md:18-22`: ```markdown ## Step 1: Context Gathering Before recommending, search user context. See `sources.md` for full source list. **Minimum output:** 3-5 relevant user signals before proceeding. If insufficient, ask targeted questions. ``` ### Technical Analysis The Skill requires an agent to inspect broad sources of persistent and historical user data before providing a recommendation. These sources include general memory files, category-specific memory, decision history, conversation history, and inferred behavioral signals. This behavior does not include a consent check, a sensitivity filter, or a requirement to establish that each data source is necessary for the current request. The mandatory colle ...[truncated 2233 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Require explicit user consent before reading persistent memory, conversation history, decision records, or behavioral data. 2. Default to information supplied in the current request and ask targeted questions before consulting stored context. 3. Replace the mandatory minimum of three signals with a relevance-based rule. 4. Access only the category-specific records required for the current recommendation. 5. Exclude sensitive attributes, including health, financial, and relationship information, unless they are essential and the user explicitly authorizes their use. 6. Do not expose raw historical records in preference summaries; summarize only the minimum necessary information. 7. Enforce per-user and per-session isolation in the host environment. 8. Record which sources were consulted and allow the user to inspect or disable context access. 9. Treat retrieved memory and conversation content as untrusted data that cannot modify Skill instructions or security controls. ]]>
