Memory Scan

ReviewAudited by ClawScan on May 10, 2026.

Overview

Memory Scan is mostly purpose-aligned, but its remote LLM mode may send incompletely redacted memory/config content to providers and its quarantine helper can overwrite arbitrary absolute file paths.

Review before installing. Local scanning is aligned with the skill’s purpose, but avoid `--allow-remote` on sensitive memories unless you accept provider transmission and have verified redaction. If quarantining, confirm the exact file path and inspect `.memory-scan/quarantine/` backups. Only enable the cron job if you want recurring scans.

Findings (6)

Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.

What this means

If you enable remote scanning, private memory/config data or non-matching secrets could be sent to OpenAI or Anthropic.

Why it was flagged

Remote mode sends scanned memory content to LLM providers, while the shown redaction patterns cover only a limited set of credential formats. Other secrets or private memory/config content may be transmitted despite the docs describing remote analysis as redacted.

Skill content
REDACTION_PATTERNS = [... OPENAI_API_KEY|ANTHROPIC_API_KEY ..., ... sk- ..., ... AKIA ..., ... PRIVATE KEY ...] ... Request("https://api.openai.com/v1/chat/completions"
Recommendation

Keep remote scanning off unless needed, expand redaction for more secret types, add file/path exclusions, and clearly warn users what may be sent to providers.

What this means

A mistaken or manipulated quarantine path could modify files outside OpenClaw memory, including important local files the user did not intend to edit.

Why it was flagged

Relative paths are placed under the OpenClaw workspace, but absolute paths are accepted as-is and later overwritten during line or file quarantine.

Skill content
if not os.path.isabs(file_path): file_path = os.path.join(WORKSPACE, file_path) ... with open(file_path, 'w', encoding='utf-8') as f:
Recommendation

Reject absolute paths or enforce an allowlist under the workspace memory/config locations, and show an explicit path confirmation before writing.

What this means

Quarantining a leaked secret may leave an unredacted copy in `.memory-scan/quarantine/`.

Why it was flagged

When a line is quarantined, the original line is preserved in a backup file, which can retain the same credential or malicious memory content that was removed from the source.

Skill content
f.write("Original content:\n")
f.write(original_line)
Recommendation

Protect or delete quarantine backups after review, and rotate any credentials that were exposed.

What this means

If configured, the skill will keep running on a schedule and may send alerts after the initial setup.

Why it was flagged

The script creates an enabled daily cron job that triggers an agent turn for recurring scans.

Skill content
"name": "memory-scan-daily", "schedule": { "kind": "cron", "expr": "0 15 * * *" } ... openclaw cron add --job "$JOB_JSON"
Recommendation

Only add the cron job if you want ongoing monitoring, and use `openclaw cron list` / `openclaw cron update` to review or disable it.

What this means

The skill may use provider credentials and incur API usage when remote analysis is enabled.

Why it was flagged

Remote LLM mode uses OpenAI or Anthropic API keys from the environment or OpenClaw gateway config.

Skill content
openai_key = os.getenv("OPENAI_API_KEY") ... subprocess.run(["openclaw", "gateway", "config.get"], ...)
Recommendation

Use dedicated, limited-scope API keys where possible and confirm remote scanning is intentional.

What this means

Running this helper can introduce supply-chain risk from unpinned dependencies.

Why it was flagged

The optional helper installs latest unpinned packages from the package ecosystem, even though the main scanner is documented as standard-library-only.

Skill content
pip install --quiet --upgrade pip
pip install --quiet openai anthropic
Recommendation

Avoid the helper unless needed, or pin package versions and verify dependencies before installing.