T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:27- Finding
Overbroad Access to Conversation History and Persistent Agent State
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 27-37
Vulnerability Type: Excessive access to conversation history and persistent state
Risk Level: MediumVulnerable code snippet:
markdown Read back the full thread content and summarize what we have done so far, where the task is documented, and what the next step is. Do not go further, only produce this detailed summary.markdown 1. Read the relevant thread or message history. 2. Read the canonical files: - `state/HOLD.md` - `state/ACTIVE.md` - `state/DECISIONS.md` - `state/CLOSED.md` if present - the canonical `task_plan.md` - the canonical `notes.md`Technical Analysis
The skill instructs the agent to read the full thread and several persistent state files without defining project boundaries, data-minimization rules, authorization checks, or exclusions for sensitive information. These sources may contain credentials, personal information, confidential task data, or instructions associated with unrelated work.
This behavior violates least-privilege principles because a reorientation summary ordinarily requires only the messages and files associated with the current task. The subsequent instruction to write a compressed snapshot to
state/ORIENT.mdcreates an additional risk that sensitive source material will be copied into persistent storage.No network transmission, arbitrary code execution, or operating-system privilege escalation was identified. The unauthorized-access concern is limited to information available through the agent's existing conversation and file-reading capabilities.
Attack Path
- Credentials, private user information, or unrelated confidential material are placed in the conversation history or one of the named state files.
- The context-rescue skill is invoked for a task whose legitimate scope does not require all of that information.
- Following the skill instr ...[truncated 1002 chars]
- Remediation
View remediation
Remediation Suggestions
- Replace the instruction to read the full thread with a requirement to read only explicitly selected messages associated with the current task.
- Restrict file access to a user-approved project directory and an allowlist of task-specific files.
- Require confirmation before reading conversation history or persistent state files that may contain unrelated information.
- Define exclusions for credentials, authentication tokens, personal data, private keys, and unrelated project content.
- Redact sensitive values before producing either the response or
state/ORIENT.md. - Instruct the agent to summarize references to sensitive material rather than copying the underlying values.
- Before writing
state/ORIENT.md, verify that the destination is project-scoped and apply restrictive access permissions where supported. - Add a rule requiring the agent to report inaccessible or out-of-scope sources rather than broadening access automatically.
