T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:42- Finding
Overbroad Access to Persistent Memory and Conversation History
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 42–46 and 78
Vulnerability Type: Excessive access to persistent user context
Risk Level: MediumVulnerable Code
markdown ## Data Sources When generating a daily report, check these sources: 1. **Today's memory file** (`memory/YYYY-MM-DD.md`) - Primary source for today's tasks 2. **Yesterday's memory file** (`memory/YYYY-MM-DD.md`) - For carryover context 3. **Recent conversation history** - If needed for clarification 4. **Project files** (e.g., TODO.md, PROJECTS.md) - If relevantmarkdown - Update memory files with the generated report for future referenceTechnical Analysis
The skill directs the agent to access persistent memory files, recent conversation history, and potentially broad project files without requiring explicit consent for each source or defining strict relevance and data-minimization boundaries. These sources may contain credentials, personal information, confidential project details, or unrelated conversation content.
The instruction to update memory files creates an additional persistence concern. Generated reports may contain sensitive, inaccurate, or user-supplied content that is retained across sessions. The documented behavior does not explicitly direct the agent to store attacker-controlled rules, so this is not confirmed memory poisoning; however, unrestricted persistence increases exposure if report content is later treated as trusted context.
No external transmission, arbitrary code execution, permission escalation mechanism, or malicious payload was identified. Exploitation is limited to the files and conversation context that the hosting agent is already authorized to access.
Attack Path
- A user or untrusted participant places sensitive, misleading, or specially crafted content in a daily memory file, recent conversation, or relevant project file.
- The user invokes the daily-report skill.
- Following the skill instruction ...[truncated 1417 chars]
- Remediation
View remediation
Remediation Suggestions
- Require explicit user consent before reading persistent memory or conversation history.
- Default to information supplied directly in the current request and only access additional sources when necessary.
- Restrict file access to the exact requested dates and explicitly approved project files.
- Define relevance filtering so unrelated conversations, tasks, and projects are excluded.
- Detect and redact credentials, access tokens, personal information, and other sensitive data before generating or persisting a report.
- Treat all content loaded from memory, conversations, and project files as untrusted data rather than executable instructions.
- Present the generated report to the user for review and obtain confirmation before writing it to persistent memory.
- Allow users to disable persistence or select a dedicated report file that is isolated from general agent memory.
- Record which sources were consulted so users can verify the report's provenance.
- Apply host-level least-privilege controls so the skill can access only approved memory and project paths.
