other
- Location
SKILL.md:43- Finding
Potential Exposure of Sensitive Agent Session and Message Data
- Content
View full analysis
Vulnerability Details
File Locations:
SKILL.md:43-46SKILL.md:78-80TROUBLESHOOTING.md:68-90FAQ.md:30-31
Vulnerability Type:
other: Sensitive Agent Session Data Access
Risk Level: LowRelevant Instructions
SKILL.md:43-46:markdown 3. Confirm OpenClaw ingestion: - watch `~/.openclaw/logs/commands.log` - inspect the relevant session file under `~/.openclaw/agents/codex/sessions/`SKILL.md:78-80:bash systemctl --user show -p MainPID -p ActiveEnterTimestamp openclaw-gateway tail -f ~/.openclaw/logs/commands.log tail -f /tmp/openclaw/openclaw-$(date +%F).logTROUBLESHOOTING.md:68-90:markdown ### Command Log ```bash tail -f ~/.openclaw/logs/commands.logExpected topic session key shape:
text agent:codex:telegram:group:<group_id>:topic:<topic_id>Session Proof
Inspect the matching file under:
text ~/.openclaw/agents/codex/sessions/If
/newappears there but later plain text does not, the issue is upstream of ACP.text `FAQ.md:30-31`: ```markdown Check `~/.openclaw/logs/commands.log` and the matching file in `~/.openclaw/agents/codex/sessions/`.Technical Analysis
The skill instructs the executing agent or operator to inspect OpenClaw command logs and Codex session files. These resources can contain user message content, conversation history, group or topic identifiers, session identifiers, and other operational metadata.
This access is related to the stated troubleshooting purpose and is not evidence of malicious intent. The skill also instructs users not to reveal secret values. However, it does not require explicit approval before reading session records, define a minimum necessary scope, or require redaction of message bodies and identifiers before diagnostic evidence is returned.
Consequently, sensitive local conversation data could enter the age ...[truncated 1656 chars]
- Remediation
View remediation
Remediation Suggestions
- Require explicit user approval before opening command logs or session files that may contain conversation content.
- Begin with metadata-only checks, such as file existence, modification timestamps, session-key presence, and narrowly filtered event counts.
- Restrict reads to the specific topic, session, and time window relevant to the reported incident.
- Avoid recursively listing or reading the entire Codex session directory.
- Redact message bodies, tokens, usernames, group identifiers, topic identifiers, and session identifiers before including evidence in a response.
- Add an instruction that raw logs and complete session records must never be reproduced in diagnostic output.
- Prefer bounded commands over unrestricted live output. For example, use narrowly filtered and line-limited reads rather than an open-ended
tail -f. - Document appropriate filesystem permissions so session files and logs are readable only by the OpenClaw service account and authorized operators.
- Preserve the existing prohibition against revealing secrets and expand it to cover personal messages, conversation history, and routing metadata.
