T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:11- Finding
Unnecessary Access to Persistent Agent Memory and Replication of Memory Metadata
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:11-12andSKILL.md:29-30
Vulnerability Type: Excessive access to persistent Agent memory
Risk Level: MediumVulnerable Code Snippet
SKILL.md:11-12:markdown ### 1. 搜索记忆 首先使用 `memory_search` 搜索每个目录的相关记忆,了解目录用途和历史。English translation:
markdown ### 1. Search Memory First use `memory_search` to search for memories related to each directory and understand its purpose and history.SKILL.md:29-30:markdown ### 5. 生成索引 写入 `WORKSPACE_INDEX.md`,格式参考以下示例:English translation:
markdown ### 5. Generate the Index Write the results to `WORKSPACE_INDEX.md` using the following example format:The examples at
SKILL.md:34-50direct the generated index to include related memory filenames and search keywords.Technical Analysis
The skill requires
memory_searchand instructs the Agent to search persistent memory for every indexed directory. It then generates a workspace-level file containing directory descriptions, related memory references, and search keywords.Basic directory indexing does not inherently require access to conversation-derived or long-term Agent memory. Combining workspace enumeration with persistent memory access expands the skill beyond the least privilege necessary for its primary task. It also creates a secondary artifact,
WORKSPACE_INDEX.md, that can expose derived memory metadata to users or processes that cannot directly query the memory system.The reviewed instructions do not explicitly request credentials or full memory contents. Nevertheless, memory filenames, project associations, historical context, and effective search terms may themselves be sensitive and can facilitate subsequent discovery.
Attack Path
- A user or scheduled heartbeat triggers the workspace index update.
- The skill invokes
memory_searchfor each discovered directory. - Search results ...[truncated 1073 chars]
- Remediation
View remediation
Remediation Suggestions
- Make persistent memory integration opt-in and disabled by default.
- Ask for explicit user authorization before searching memory for workspace directories.
- Restrict searches to approved, non-sensitive memory namespaces or files.
- Do not write memory filenames, dates, raw search terms, or conversation-derived details into
WORKSPACE_INDEX.mdby default. - Add redaction rules for credentials, personal information, internal hostnames, confidential project names, and operational data.
- Store only a minimal directory-purpose summary when memory use is authorized.
- Apply restrictive permissions to the generated index and exclude it from source control or external synchronization where appropriate.
- Document the exact memory fields that may be read and persisted.
