T09 · Insecure Skill Coding Practices
- Location
scripts/session-to-memory.py:23- Finding
Unredacted Session Content Is Persisted in Searchable Long-Term 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 reads every qualifying JSONL session from the hardcoded OpenClaw session directory and copies message content into Markdown under `memory/sessions`. User messages are stored without redaction or a length limit. Assistant messages receive only a length limit and are not checked for secrets or personal information. The Skill documentation states that these Markdown files are automatically vectorized ...[truncated 2282 chars]- Remediation
View remediation
