T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:53- Finding
Unscoped Access to Conversation History and Persistent Knowledge Stores
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 16–17, 53–55, and 68–72
Vulnerability Type: Unrestricted retrieval of potentially sensitive conversation and memory data
Risk Level: MediumVulnerable Code Snippets
markdown | **memory-tencentdb** | `tdai_memory_search` / `tdai_conversation_search` | Conversation fragments | Automatically captured, real-time, fine-grained | High | | **Ontology** | `memory/ontology/graph.jsonl` | Entities and relationships | Structured and suitable for inference | Medium |markdown 1. `tdai_conversation_search` → Search raw conversations 2. `tdai_memory_search` → Search structured memory 3. (fallback) `memorySearch` → Enable only when TDAI returns no resultsmarkdown 1. `Ontology` → Query entity relationships in `memory/ontology/graph.jsonl` 2. `domain-kit` → Query relationships in the domain ontology 3. `tdai_memory_search` → Search structured memory 4. `wiki-kb` → Check whether related articles mention the entities 5. (fallback) `memorySearch` → Enable only when TDAI returns no resultsTechnical Analysis
The Skill instructs the agent to search raw conversation history, structured memories, and a local ontology containing entity relationships. These sources may contain private discussions, personal relationships, historical decisions, project assignments, or other sensitive data.
The routing rules do not require an authorization check, authenticated-user or tenant scope, explicit consent, sensitive-field filtering, or result-level access control before these sources are searched. Broad trigger patterns and relationship queries can therefore cause the agent to retrieve data beyond what a requester should legitimately access.
Although the Skill does not itself grant operating-system permissions, it directs an agent with existing tool access to use potentially privileged data sources without defining least-privilege boundaries.
...[truncated 1245 chars]
- Remediation
View remediation
Remediation Suggestions
- Require explicit user intent before searching raw conversations or persistent memory.
- Enforce authenticated-user, tenant, project, and session boundaries in every retrieval tool.
- Perform authorization checks against each returned record rather than relying only on query-level controls.
- Disable raw-conversation search by default and enable it only for explicit conversation-recall requests.
- Add redaction for credentials, tokens, personal information, confidential project data, and other sensitive fields.
- Limit ontology relationship queries to entities the requester is authorized to inspect.
- Add audit logging for the requester identity, query, selected source, returned record identifiers, and redaction decisions.
- Modify the Skill workflow to include a mandatory authorization and data-minimization stage before results are presented.
