Agent State Backup

PassAudited by ClawScan on May 1, 2026.

Overview

This skill is a local backup/restore guide for agent state, and its sensitive file access and cron persistence are disclosed and aligned with that purpose.

Before installing or using this skill, verify the referenced backup, restore, and cron setup scripts on your machine. Treat the generated .tgz archives as sensitive because they may contain user details, memories, identity/personality files, and knowledge-base content. Restore only from trusted backups because it can overwrite the current agent state.

Findings (4)

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

Backups may preserve private user information or old/poisoned agent context and carry it into a restored environment.

Why it was flagged

The backup includes long-term memory, daily memory, user information, and knowledge-base content, which may contain sensitive or behavior-shaping agent context.

Skill content
- `MEMORY.md` - 长期记忆
- `memory/*.md` - 每日记忆
- `USER.md` - 用户信息
- `knowledge/**/*` - 知识库
Recommendation

Store backup archives securely, review what is included, and only restore archives you trust.

What this means

A restore could replace the current agent state with older or incorrect files.

Why it was flagged

The restore workflow is explicitly documented as overwriting current files, which is a high-impact but disclosed and purpose-aligned mutation.

Skill content
恢复操作 - 会覆盖当前文件,建议先备份当前状态
Recommendation

Create a fresh backup before restoring and confirm the archive is the intended one.

What this means

Once enabled, backups may continue running daily until the cron entry is removed.

Why it was flagged

The skill sets up ongoing scheduled behavior via cron, but this persistence is clearly disclosed and central to the backup purpose.

Skill content
设置自动备份 (每日凌晨 2 点)
```bash
~/.openclaw/workspace/scripts/setup-backup-cron.sh
```
Recommendation

Enable cron only if you want automatic backups, and check your crontab if you later want to disable it.

What this means

The security of the backup and restore operations depends on the local scripts that are not included in the reviewed artifact.

Why it was flagged

The skill references local helper scripts, while the supplied artifact set contains only SKILL.md and no script contents for review.

Skill content
~/.openclaw/workspace/scripts/agent-backup.sh
~/.openclaw/workspace/scripts/agent-restore.sh
~/.openclaw/workspace/scripts/setup-backup-cron.sh
Recommendation

Inspect the referenced scripts before running them, especially because they handle agent memory and overwrite state during restore.