T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:142- Finding
Unscoped Cross-Session History and Persistent Memory Access
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:142-150
Vulnerability Type: Cross-session information access beyond minimum necessary scope
Risk Level: MediumVulnerable Instruction Snippet:
text Preferred sources, in order: 1. current session context 2. `session_search` results for similar tasks, intents, file types, services, or error patterns 3. memory entries about user habits, project conventions, or repeated workflows 4. direct user phrasing such as "we do this often", "make this reusable", or "use this in other agents" Treat recurrence as confirmed when any of these rules match: - the same or equivalent workflow appears 3 or more times across current and past sessions - the user explicitly requests automatic reuse - the workflow is long, stable, and clearly generic enough for future reuseTechnical Analysis
The Skill directs the agent to search past sessions and persistent memory when evaluating workflow recurrence. This access can be legitimate for procedural-memory functionality, but the instructions do not require explicit user consent, constrain searches to the active project, limit the returned fields, or prevent unrelated historical information from entering the current context.
Cross-session history may contain private conversations, project identifiers, operational details, or other sensitive information unrelated to the current task. Searching that information by broad concepts such as services, file types, and error patterns exceeds the minimum privilege required to summarize the workflow completed in the current session.
The package does prohibit storing secrets in generated Skills, which partially limits downstream exposure. It does not, however, establish equivalent access-control and data-minimization requirements for the initial session or memory search.
Attack Path
- A user loads the Skill to summarize or codify a completed workflow.
- The Skill instruc ...[truncated 1374 chars]
- Remediation
View remediation
Remediation Suggestions
- Default recurrence analysis to the current session.
- Require explicit user opt-in before invoking cross-session search or reading persistent memory.
- Scope searches to a user-approved project, repository, workflow identifier, or time range.
- Request only metadata or minimal excerpts needed to establish recurrence.
- Prohibit copying raw historical conversations into generated Skills, prompts, or memory records.
- Apply redaction for credentials, personal information, hostnames, internal URLs, and temporary identifiers.
- Display a concise summary of the intended search scope before accessing historical data.
- Treat unavailable consent or ambiguous scope as
recurrence=possiblerather than performing a broad search. - Document which historical sources influenced a persistence decision without storing their sensitive contents.
