T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:37- Finding
Overbroad Access to Private Context and Automatic Persistent Memory Modification
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:37-40andSKILL.md:80
Vulnerability Type: T05: Unauthorized Access and Privilege Escalation
Risk Level: MediumVulnerable Instructions
markdown 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 instructs the agent to access current and previous memory files, recent conversation history, and an open-ended set of project files when generating a daily report. It does not require explicit user approval, constrain access to user-selected paths, or require filtering and redaction of unrelated sensitive information.
The instruction at line 80 additionally directs the agent to modify persistent memory automatically. Although reading task history and optionally preserving a report can support the declared reporting purpose, these operations exceed least-privilege expectations when performed without source-specific authorization and confirmation. Sensitive information unrelated to the requested report could be collected, reproduced, and retained.
No instruction to transmit data externally, execute code, install dependencies, or alter system permissions was identified.
Attack Path
- The user invokes the skill by requesting a daily report or status summary.
- The skill directs the agent to inspect today's memory, yesterday's memory, recent conversations, and potentially relevant project files.
- If those sources contain unrelated confidential information, credentials, personal data, or sensitive project details, the agent may incorporate that information into the generated report because no mandatory relevance filter or redact ...[truncated 1207 chars]
- Remediation
View remediation
Remediation Suggestions
- Require explicit user consent before reading memory files, conversation history, or project files.
- Ask the user to approve specific source paths instead of permitting open-ended access to “project files.”
- Default to information supplied in the current request and access additional sources only when necessary.
- Apply strict relevance filtering before including source material in the report.
- Detect and redact credentials, tokens, personal information, and unrelated confidential data.
- Present the completed report to the user before modifying persistent memory.
- Make memory persistence opt-in and clearly identify the exact destination file.
- Limit writes to a dedicated report location rather than modifying general-purpose memory.
- Document retention and deletion behavior so users can control how long generated reports remain stored.
