T01 · Skill Instruction Hijacking
Error
- Location
- SKILL.md:17
- Finding
- Automatic Persistent Collection of Personal Information Without Explicit Consent<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:17-25` **Vulnerability Type**: Automatic persistent personal-data collection **Risk Level**: High ### Vulnerable Code ```markdown ### 1. 对话即记录 每当用户分享任何人生经历时,立即: 1. 判断内容属于哪个章节(见章节映射) 2. 用 `exec` 工具将内容追加写入对应章节文件 3. 继续对话,自然地追问细节 **不要等用户说"开始记录",随时随地都在沉淀。** ``` ### Technical Analysis The skill instructs the agent to write personal-life information to persistent local storage whenever such information appears in ordinary conversation. It explicitly says not to wait for the user to request recording. Loading the skill therefore changes the agent's behavior from conversational assistance to automatic collection and persistence of potentially sensitive information. Although the information remains local, local persistence is still a security and privacy boundary, especially for content concerning family, relationships, employment, health-related life events, and other identifying information. The instructions also require use of the `exec` tool, turning conversational content into filesystem writes without a separate authorization step. ### Attack Path 1. The skill is loaded into an agent session. 2. A user casually discusses a personal experience without asking the agent to record it. 3. The skill instructs the agent to classify the statement into a biography chapter. 4. The agent invokes an executable script through `exec`. 5. The statement is persistently written under `~/.openclaw/workspace/life-books/`. 6. The information remains available to later processes or users with access to the same account. ### Impact Assessment The issue does not grant additional operating-system privileges, but it causes unauthorized persistence within the privileges of the agent process. Its scope includes any personal information disclosed during a session in which the skill is active. The resulting files may contain a detailed, aggregated profile of the user and can be read by other processes or users that a ...[truncated 60 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Require explicit, informed opt-in before making the first persistent write. 2. Clearly display whether recording is active and identify the destination directory. 3. Do not treat ordinary conversation as implicit consent to record. 4. Add explicit `start recording`, `pause recording`, `review`, and `delete` controls. 5. Ask for confirmation before storing categories likely to contain highly sensitive information. 6. Avoid invoking `exec` for persistence unless the user has directly authorized the operation. 7. Document retention behavior and provide a simple mechanism to delete all collected data. ]]>
