T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:7- Finding
Unrestricted Historical Memory and Raw Session Log Access
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 7-14
Vulnerability Type: Unauthorized access to potentially sensitive historical agent data
Risk Level: MediumRelevant Snippet:
markdown Use when answering questions about what earlier runs established, especially incident causality across multiple dates. 1. Start with dated memory or other curated summaries for the suspected dates. 2. Extract a provisional timeline: symptom, verified config/state, observed fallback/path, working explanation. 3. Note which claims are still unsupported or ambiguous. 4. Search raw session logs only for those gaps. 5. Narrow raw-log lookup by known date, session id, or exact phrase from memory. Avoid wide scans across all archives first. 6. If a raw log is noisy or truncated, reduce scope again instead of broadening the search. 7. Answer from the converged evidence. Separate verified cause from likely cause.Technical Analysis
The skill instructs the agent to inspect dated memory, curated summaries, and raw session logs. These sources can contain sensitive information from previous sessions, including user prompts, system details, file paths, credentials, tokens, incident records, or data belonging to other users or tenants.
The instructions narrow searches by date, session identifier, or phrase, but they do not require the agent to verify that the current user is authorized to access the selected historical records. They also lack tenant isolation, path restrictions, secret redaction, data-minimization requirements, and an explicit prohibition against exposing unrelated session content.
Consequently, loading this skill could direct an agent with broad filesystem or memory access to cross a least-privilege boundary. The issue does not itself provide elevated operating-system privileges, but it can misuse permissions already granted to the agent to access historical information beyond the legitimate scope ...[truncated 1594 chars]
- Remediation
View remediation
Remediation Suggestions
- Require explicit user authorization before accessing any historical memory or raw session log.
- Restrict searches to records owned by the current user, tenant, workspace, and authorized task context.
- Use an allowlisted archive interface instead of unrestricted filesystem or memory searches.
- Require the user to identify the permitted date range and session identifiers; reject requests targeting records outside that scope.
- Apply secret detection and redaction before historical excerpts are returned.
- Return only the minimum evidence needed to answer the question, rather than complete memory entries or raw log sections.
- Add an explicit rule prohibiting access to unrelated users' sessions, system prompts, credentials, authentication tokens, and private agent state.
- Record auditable metadata for each historical-data access, including requester identity, authorized scope, accessed records, and redactions.
- If authorization cannot be established, stop the review and request user-provided, sanitized artifacts instead.
