Agent State Backup

PassAudited by VirusTotal on May 9, 2026.

Overview

Type: OpenClaw Skill Name: agent-state-backup Version: 1.0.0 The skill bundle describes high-risk operations including shell script execution and persistence via cron jobs for agent state backup. However, the actual script files (agent-backup.sh, agent-restore.sh, and setup-backup-cron.sh) are missing from the bundle, preventing a full security audit of the commands being executed or the potential for data exfiltration.

Findings (0)

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.