T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:22- Finding
Unnecessary Persistent-Memory Access and Cross-Agent Disclosure
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 22-27
Vulnerability Type: Excessive data access and cross-agent disclosure
Risk Level: MediumVulnerable Code
markdown When explicit trigger or confirmed auto-detect: 1. Extract the prompt (everything after trigger word, or the full request) 2. Send to artist agent via `sessions_send` with context: - Original prompt - Any style preferences from memory - Request ID for trackingTechnical Analysis
The skill instructs the agent to retrieve style preferences from persistent memory and transmit them to another agent through
sessions_send. The current image prompt is necessary for image generation, but historical memory is not essential to the core handoff operation.No instruction limits which memory records may be accessed, requires user consent, filters sensitive information, validates that preferences belong to the current user, or establishes the receiving agent's trust boundary. This violates least-privilege and data-minimization principles. A broadly interpreted “style preferences from memory” operation could disclose unrelated, stale, incorrectly attributed, or sensitive information.
Attack Path
- A user submits an explicit or confirmed image-generation request.
- The skill activates its handoff protocol.
- The agent searches persistent memory for style preferences without obtaining specific consent.
- Retrieved memory content is added to the handoff request.
sessions_sendtransfers the prompt and memory-derived information to the artist agent.- The receiving agent can process, retain, expose, or incorporate that information into its response.
Exploitation requires relevant information to exist in accessible memory and the artist agent to represent a separate trust or data-processing boundary.
Impact Assessment
The skill gains read access to persistent user context beyond what is strictly ...[truncated 433 chars]
- Remediation
View remediation
Remediation Suggestions
- Forward only the current image prompt by default.
- Require explicit, informed user consent before reading or sharing persistent preferences.
- Restrict retrieval to an allowlist of dedicated, non-sensitive image-style fields.
- Do not perform broad searches across general-purpose memory.
- Validate that retrieved preferences belong to the current user and remain applicable.
- Clearly identify whether the artist agent is local, remote, or operated by a third party.
- Apply data-minimization controls before
sessions_send, including filtering and redaction. - Provide a request option that disables memory access and sends only the current prompt.
