session-memory
Pass
Audited by Gen Agent Trust Hub on Mar 13, 2026
Risk Level: SAFEPROMPT_INJECTION
Full Analysis
- [PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection as it processes untrusted data from past sessions into the agent's memory store.
- Ingestion points:
scripts/session-to-memory.jsandscripts/session-search.jsread session transcripts from~/.openclaw/agents/main/sessions/. - Boundary markers: The scripts use standard Markdown headers (e.g.,
## Session summary,### Session [ID]) to structure the memory files, but these do not include explicit instructions for the AI to ignore embedded commands. - Capability inventory:
session-to-memory.jsusesfs.writeFileSyncto create or modify files in thememory/directory, which serves as the agent's primary source for context retrieval and citations. - Sanitization: The scripts perform basic formatting (truncation to 800 characters, newline removal) but do not sanitize or filter the content of messages for prompt injection patterns.
Audit Metadata