T09 · Insecure Skill Coding Practices
Warning
- Location
- SKILL.md:103
- Finding
- Overbroad Session Transcript Indexing May Expose Sensitive Conversation Data## Vulnerability Details **File Location**: `SKILL.md`, lines 103-114 **Vulnerability Type**: Privacy-sensitive data retention and indexing without adequate safeguards **Risk Level**: Medium ### Vulnerable Code ```markdown ### 3. Enable Session Transcript Indexing Make your past conversations searchable too. Add this to your Clawdbot config: ```json "memorySearch": { "sources": ["memory", "sessions"], "query": { "minScore": 0.3, "maxResults": 20 } } ``` ``` ### Technical Analysis The recommended configuration indexes complete session transcripts as a semantic-search source. The instructions do not establish consent requirements, retention periods, access restrictions, content exclusions, or redaction controls for credentials and other sensitive information. Conversation transcripts can contain API keys, authentication tokens, personal information, proprietary source code, internal infrastructure details, and confidential business data. Once indexed, such content may remain searchable beyond the context and lifetime of the original conversation. The configuration does not itself transmit data externally or grant operating-system privileges. The risk arises from unnecessarily broad local persistence and retrieval of sensitive information. ### Attack Path 1. A user or connected system supplies sensitive information during a conversation. 2. Session transcript indexing is enabled according to the Skill instructions. 3. The sensitive information becomes part of the searchable session index. 4. A later user, agent session, or process with access to the same workspace or memory-search facility submits a related semantic query. 5. Search results disclose the retained information outside its original conversational context. Successful exploitation requires access to the applicable agent workspace or memory-search interface. No remote unauthenticated exploitation path was identified. ### Impact Assessment The issue may compromise the confidentia ...[truncated 383 chars]
- Remediation
- ## Remediation Suggestions 1. Make session transcript indexing disabled by default and require explicit, informed opt-in. 2. Explain which transcript data is stored, where it is stored, who can query it, and how long it remains available. 3. Apply automatic redaction for API keys, passwords, authentication tokens, private keys, financial information, and regulated personal data before indexing. 4. Support configurable retention periods and automatic deletion of expired transcripts and embeddings. 5. Restrict memory-search access to the user or session that created the underlying data unless sharing is explicitly authorized. 6. Provide allowlists and exclusion rules so users can select which conversations or message classes may be indexed. 7. Encrypt stored transcripts and indexes where supported, with restrictive filesystem permissions. 8. Provide a documented mechanism to inspect, delete, and rebuild the index after sensitive information is removed.
