other
Warning
- Location
- SKILL.md:19
- Finding
- Sensitive Agent History and Memory Used for Public Behavioral Profiling<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 19–61 **Vulnerability Type**: Sensitive memory and chat-history access **Risk Level**: Medium ### Vulnerable Code ```markdown ## Safety Mode (Default) Default to minimal analysis scope. - Prefer user-provided summaries/history exports when available. - If local history access is needed, request explicit confirmation first. ## Allowed Data Scope Only these locations are in scope: 1. `~/.openclaw/agents/<runtime-agent-id>/sessions/*.jsonl` 2. `memory/*.md` 3. `MEMORY.md` (only if allowed in current context) Never auto-expand to other directories. Never access other agents' logs without explicit user consent. ## Non-Negotiable Rules 1. No speculation; omit unsupported claims. 2. Public privacy output only (redacted by default). 3. Show time span only in coverage note (no file count). 4. Output language follows user language. 5. Proper nouns/names stay in original form. 6. `Core Capabilities` and `Representative Work` are title-only. 7. Data minimization: extract only fields needed for profile. 8. Do not output raw transcript excerpts. ## Large-History Strategy If history is too large: 1. Build metadata index first. 2. Process by time chunks. 3. Summarize each chunk with fixed fields. 4. Merge summaries and keep cross-window repeated patterns. ## Extraction Method 1. Build timeline bounds (first/last active). 2. Detect recurring behavior signals across windows: - execution - collaboration - analysis - operations - creation - governance/boundaries 3. Keep only stable repeated patterns. 4. Redact sensitive details. 5. Map to fixed output template. ``` ### Technical Analysis The Skill directs the agent to inspect session JSONL files and persistent memory documents, aggregate activity timelines, and derive recurring behavioral traits for a profile intended to be public. Session histories and memory files can contain personal information, confidential conversation content ...[truncated 2506 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Prefer user-supplied, pre-reviewed summaries or sanitized exports rather than direct access to complete session histories. 2. Obtain granular consent separately for session logs, `memory/*.md`, and `MEMORY.md`, showing the exact sources and intended derived fields before reading them. 3. Add a mandatory preview-and-approval stage that presents every extracted fact to the user before generating public-ready output. 4. Apply deterministic secret and personally identifiable information filters for credentials, tokens, contact details, precise locations, account identifiers, and confidential project names. 5. Exclude third-party information by default unless the affected party's data is demonstrably public and necessary. 6. Minimize data in memory during processing and discard intermediate indexes and summaries after profile generation. 7. Replace exact dates with less precise periods unless exact dates are essential and explicitly approved. 8. Provide a final disclosure checklist identifying which source categories contributed to each profile section. 9. Fail closed when redaction confidence is low: omit the information rather than attempting to generalize it. 10. Require separate confirmation before the resulting profile is labeled, exported, or otherwise prepared for public distribution. ]]>
