T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:7- Finding
Overbroad Access to Persistent Agent Memory
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 7-9 and 18
Vulnerability Type:T05: Unauthorized Access and Privilege Escalation
Risk Level: MediumComplete Relevant Snippet:
markdown 1. Ensure memory file exists for today: - Path: memory/YYYY-MM-DD.md - If missing, create with minimal templatemarkdown 3. Optional: promote learnings from recent memory files (if configured)Technical Analysis
The Skill instructs the Agent to write to persistent memory and optionally process recent memory files. Creating a fixed, current-day health-check file is consistent with the stated operational purpose, but “promote learnings from recent memory files” is broader than a file-presence check.
The instructions do not define which memory files may be read, what information qualifies as a learning, where selected content will be written, how sensitive data must be filtered, or what authorization is required. Consequently, a scheduled health-check execution could receive access to conversation-derived information unrelated to cron or file-health monitoring. The issue is a least-privilege violation rather than evidence of deliberate exfiltration.
Attack Path
- The Skill runs automatically through an authorized scheduler.
- The optional memory-promotion feature is enabled.
- The Agent discovers and reads recent persistent memory files.
- Those files contain sensitive or untrusted conversation-derived content.
- Based on the undefined instruction to “promote learnings,” the Agent selects and copies content into another persistent context or state location.
- The promoted content becomes available to or influences future Agent sessions.
This path is conditional because the document states that promotion is optional and must be configured. The audited file does not contain an external transmission mechanism or an explicit instruction to poison memory.
Impact Asses
...[truncated 612 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove the memory-promotion operation from this health-check Skill and implement it as a separate, explicitly authorized workflow.
- Restrict the health check to an existence or metadata check for the exact current-day path,
memory/YYYY-MM-DD.md. - Prohibit reading the contents of current or historical memory files when only presence must be verified.
- Define a fixed, non-sensitive template for newly created files and prevent user-controlled content from becoming persistent instructions.
- If promotion remains necessary, define an allowlist of readable files, a fixed destination, sensitivity filters, retention rules, and explicit user approval requirements.
- Run the scheduled task with filesystem permissions limited to the minimum required memory path and read-only access to cron metadata.
- Record which files were accessed or modified without logging their sensitive contents.
