T09 · Insecure Skill Coding Practices
- Location
scripts/session-to-memory.py:78- Finding
Unredacted Session Conversations Are Persisted in Auto-Indexed Memory
- Content
View full analysis
2000: content = content[:2000] + "\n\n[...truncated...]" lines.append(f"**Faya:** {content}") else: lines.append(f"**{role}:** {content}") ``` ```python with open(out_path, "w") as f: f.write(result["markdown"]) ``` ### Technical Analysis The converter scans every JSONL session under the configured OpenClaw agent directory and copies qualifying conversations into persistent Markdown files. User messages are retained without a size limit or sensitive-data filtering. Assistant messages are retained up to 2,000 characters. There is no redaction for API keys, bearer tokens, passwords, private keys, personal information, client data, or other secrets that may occur in a conversation. The ge ...[truncated 1769 chars]- Remediation
View remediation
