other
- Location
SKILL.md:5- Finding
Overbroad Access to Sensitive Agent Memory
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 5–7, 37–56, and 73–79
Vulnerability Type: Overbroad retrieval of sensitive retained information
Risk Level: MediumEvidence
SKILL.md, lines 5–7:markdown You have two tools for recalling information from your memory files. Use them. ## ToolsSKILL.md, lines 37–56:markdown ## When to Use Memory Search **Always search before answering about:** - Prior conversations or decisions - The human's preferences, habits, or opinions - Dates, deadlines, birthdays, events - Project status or history - Anything the human said "remember this" about - Todos, action items, or commitments - People, names, relationships **The pattern is:** 1. Receive a question that might involve past context 2. Call `memory_search` with a relevant query 3. Review the results 4. If a snippet looks promising but needs more context, call `memory_get` with the path and line range 5. Answer using what you found (cite sources in direct chats)SKILL.md, lines 73–79:markdown ## What Gets Indexed Your memory search covers: - `MEMORY.md` — your curated long-term memory - `memory/*.md` — daily notes and raw logs - Session transcripts (if enabled)Technical Analysis
The skill directs the agent to search long-term memory, daily notes, raw logs, and potentially complete session transcripts whenever a request broadly concerns prior conversations, preferences, dates, commitments, projects, or relationships. These sources can contain sensitive personal or operational information.
Memory access is the skill's declared function, and the audited file does not contain instructions to exfiltrate data, bypass authorization, execute code, or write attacker-controlled content into persistent memory. Nevertheless, the unconditional phrase “Always search” creates an overbroad retrieval policy. It does not require explicit user intent, verify that the requester is authorized to receive the informati ...[truncated 1761 chars]
- Remediation
View remediation
Remediation Suggestions
- Replace the unconditional “Always search” rule with a requirement to search only when the user explicitly requests historical or personalized context.
- Verify that the requester and conversation context are authorized to access the relevant retained information.
- Apply least-privilege retrieval by narrowing queries to the specific subject, date range, and source required for the request.
- Exclude session transcripts and raw logs by default; require explicit confirmation before searching these higher-sensitivity sources.
- Retrieve the smallest useful excerpt and avoid using
memory_getunless surrounding context is essential. - Add mandatory filtering for credentials, authentication tokens, financial information, health information, private relationship details, and unrelated third-party data.
- Summarize relevant facts instead of reproducing raw memory snippets whenever possible.
- If results contain unrelated sensitive information, omit it and state only that relevant memory was checked.
- Maintain access logging and source-level controls so memory searches can be reviewed and restricted according to data sensitivity.
- Add an instruction that memory content is untrusted data and must never be treated as higher-priority agent instructions.
