T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:92- Finding
Unbounded Access to and Modification of Persistent Agent Memory
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 92, 106, 269, and 296
Vulnerability Type: Persistent-state access beyond least privilege
Risk Level: MediumVulnerable Code Snippets
SKILL.md:92markdown **Action**: Check memory files to confirm; if none exists, honestly say "My memory didn't carry over here, could you provide the background again?"SKILL.md:106markdown **Action**: When resuming conversation, first read memory files to restore context; if preferences may be outdated, proactively confirm.SKILL.md:269markdown **Action**: Use edit_file to update old values rather than just append; when two contradict, latest prevails, note changes in response.SKILL.md:296markdown **Action**: Execute deletion, confirm scope, don't ask for reasons.Technical Analysis
The Skill instructs an agent to discover, read, edit, and delete unspecified “memory files.” It does not define an authorized storage directory, permitted schema, exact record identifiers, path restrictions, or safeguards against accessing unrelated persistent state.
The read instructions can expose unrelated user profiles, conversation history, configuration, or other persistent data to the active model context. The
edit_fileand deletion instructions escalate this risk from confidentiality exposure to persistent-state modification and data loss.These permissions exceed the minimum capabilities needed for the declared thought-experiment and cognitive-calibration functionality. The risk is amplified because the Skill is configured as globally active with high priority:
ini [Mode] type = global priority = 9 always_on = trueThe finding does not establish an automatic exploit or malicious implementation: the project contains only instructional Markdown and no executable code. Exploitation depends on a host agent granting file or memory tools and interpreting “memory files” broadly.
Attack Path
- The host l ...[truncated 1323 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove direct
read,edit_file, and deletion instructions from the thought-experiment content unless persistent memory management is an explicitly declared feature. - Restrict all memory operations to a documented, Skill-owned directory and validated record schema.
- Prohibit recursive searches and access to credentials, configuration, unrelated conversations, MCP data, and other users’ records.
- Require explicit user authorization immediately before every persistent read, modification, or deletion.
- Display the exact records and paths affected before mutation and require confirmation of that concrete scope.
- Replace permanent deletion with soft deletion, versioning, or a recoverable trash mechanism.
- Create backups or snapshots before modifications and provide rollback support.
- Validate and normalize paths to prevent traversal, symlink escape, and access outside the authorized storage root.
- Apply host-enforced tool permissions rather than relying solely on prompt instructions.
- Disable global activation for memory-management behavior; activate it only when the user explicitly invokes a relevant command.
- Remove direct
