T05 · Unauthorized Access and Privilege Escalation
Warning
- Location
- SKILL.md:83
- Finding
- Overbroad ingestion and persistent duplication of private Agent memory## Vulnerability Details **File Location**: `SKILL.md:83-96`, `INIT.md:14-34`, and `config.template.yaml:10-16` **Vulnerability Type**: Excessive access to private Agent state **Risk Level**: Medium ### Vulnerable Configuration ```yaml paths: soul_path: "~/.openclaw/workspace/SOUL.md" memory_root_path: "~/.openclaw/workspace/MEMORY.md" daily_memory_dir: "~/.openclaw/memory" daily_memory_pattern: "YYYY-MM-DD.md" diary_text_dir: "~/.openclaw/scene/小山的日记/日记历史记录/文字" news_summary_dir: "~/.openclaw/scene/每日简报/news/Summary" ``` The workflow at `SKILL.md:83-96` requires or recommends reading the Agent persona, daily memory, long-term memory, recent diaries, identity information, related daily files, and recent news summaries. The collected material is then used to create Markdown, HTML, and PNG artifacts. ### Technical Analysis The Skill performs broad discovery and ingestion of private OpenClaw state. Although some personal context is relevant to diary generation, the workflow does not enforce data minimization, restrict records to explicitly approved sources, filter credentials or sensitive values, or request confirmation before persisting derived content. This design can cause unrelated sensitive information from `SOUL.md`, `MEMORY.md`, daily memory, identity files, or historical diaries to be reproduced in several durable formats. Image output is especially difficult to search, redact, or review automatically. The issue breaks least-privilege principles because optional and potentially unrelated context is collected without a narrowly defined need for each source. The audit found no evidence that the Skill gains operating-system privileges beyond those already available to the invoking Agent. ### Attack Path 1. The Skill is invoked for daily journal generation. 2. Initialization discovers OpenClaw workspace and memory locations. 3. The workflow reads persona, daily memory, recent diaries, and potential ...[truncated 725 chars]
- Remediation
- ## Remediation Suggestions 1. Require explicit user approval for every memory and identity source before first use. 2. Default optional sources, including long-term memory, identity files, related daily files, and news summaries, to disabled. 3. Restrict collection to the target-date record unless the user explicitly enables historical context. 4. Add secret detection and redaction before generated content is persisted. 5. Present a preview of the diary and all extracted sensitive data before writing Markdown, HTML, or PNG files. 6. Provide a memory-free mode that accepts only user-supplied text. 7. Document retention, deletion, synchronization, and sharing risks for generated artifacts. 8. Apply restrictive permissions to all generated files and directories.
