T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:11- Finding
Overbroad Access to Long-Term Conversation History
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 11-39
Vulnerability Type:T05: Unauthorized Access and Privilege Escalation
Risk Level: MediumVulnerable Code Snippet
markdown ## How memory is provided each turn - **Automatic recall (hook):** At the start of each turn, the system runs a memory search using the user's current message and injects relevant past memories into your context. You do not need to call any tool for that. - **When that is not enough:** If the user's message is very long, vague, or the automatic search returns **no memories**, you should **generate your own short, focused query** and call `memory_search` yourself. - **When you need more detail:** Search results only give excerpts and IDs. Use the tools below to fetch full task context, skill content, or surrounding messages. ### memory_search - **What it does:** Searches the user's stored conversation memory by a natural-language query. Returns a list of relevant excerpts with `chunkId` and optionally `task_id`. - **When to call:** - The automatic recall did not run or returned nothing (e.g. no `<memory_context>` block, or a note that no memories were found). - The user's query is long or unclear — **generate a short query yourself** (keywords, rephrased question, or a clear sub-question) and call `memory_search(query="...")`. - You need to search with a different angle (e.g. filter by `role='user'` to find what the user said, or use a more specific query). - **Parameters:** `query` (required), optional `minScore`, `role` (e.g. `"user"`). - **Output:** List of items with role, excerpt, `chunkId`, and sometimes `task_id`. Use those IDs with the tools below when you need more context.Technical Analysis
The Skill directs the Agent to search long-term conversation history automatically and to formulate additional search queries when no relevant memories are initially returned. It does not require explic ...[truncated 1785 chars]
- Remediation
View remediation
Remediation Suggestions
- Require explicit user consent before initiating a manual search of long-term memory.
- Limit searches to information demonstrably necessary for the current request.
- Do not instruct the Agent to broaden searches solely because a request is long or vague; request clarification instead.
- Apply least-privilege filters, including user-specific tenancy controls and restrictive role filters.
- Return only the minimum fields needed and redact secrets, authentication data, private URLs, and sensitive command content.
- Clearly disclose when historical memory has been searched or incorporated into a response.
- Enforce authorization and purpose-limitation controls in the memory service rather than relying only on Skill instructions.
- Maintain audit logs for memory searches and subsequent retrieval of task summaries or surrounding messages.
