Agent Economy Report

Skill code audit

CAUTION version 1.0.0 · audited 2026-09-17

openclaw-backup @alex3alex

This package is a local backup and restore skill for OpenClaw. It archives the entire ~/.openclaw directory, including configuration, credentials, agent auth profiles, workspace data, Telegram session data, and cron tasks, while excluding the completions cache and log files. A shell script creates compressed tar.gz archives and automatically keeps only the newest 7 backups. Restore instructions stop the gateway, move the current directory aside, extract an archive, and include a rollback command that deletes ~/.openclaw. No runtime network exfiltration, obfuscation, download-and-execute, or persistence mechanism was found. The main review concern is that the backups contain plaintext credentials and the restore/rollback steps are destructive.

Declared purposeBackup and restore OpenClaw data, including configuration, credentials, and workspace; create scheduled backups and manage backup rotation.
Observed behaviorscripts/backup.sh creates a tar.gz archive of $HOME/.openclaw, excluding 'completions' and '*.log', writes it to $HOME/openclaw-backups by default, reports size/count, and deletes all but the latest 7 archives. Documentation provides cron JSON for daily backup, quick restore steps, and rollback steps. The only domain present is a static publisher link to clawhub.ai; no script or instruction makes network calls.
Verdict, rules onlyCAUTION · uses sudo, rm -rf or dd
Verdict, AICAUTION
Final verdictCAUTION (never better than either pass)

Capabilities

capabilityvs purposedetail
shellneededRuns bash commands to create backups, stop/start OpenClaw gateway, and remove old archives; SKILL.md line 15, references/restore.md lines 7-20, scripts/backup.sh.
filesystem_readneededReads the entire ~/.openclaw directory to create archives; scripts/backup.sh line 15.
filesystem_writeneededCreates backup directories and archives, removes old backups, and can move or delete ~/.openclaw during restore/rollback; scripts/backup.sh lines 9, 15, 21; references/restore.md lines 10, 26-27.
credentialsneededBacks up credentials/, API keys, tokens, agent auth profiles, and Telegram session data; SKILL.md lines 25-28.

Findings

severityfinding
mediumBackups include plaintext credentials
The documentation says the archive includes credentials/, API keys, tokens, agent auth profiles, and session data. These are sensitive and are written as a local tar.gz archive without encryption.
SKILL.md:25 - `credentials/` — API keys, tokens
mediumArchives the entire ~/.openclaw directory
The script performs a broad archive of the active OpenClaw directory. The only documented exclusions are 'completions' and '*.log', so credential and session files are included.
scripts/backup.sh:15 -C "$HOME" .openclaw/ 2>/dev/null
highDestructive rollback command
The rollback procedure deletes ~/.openclaw before moving ~/.openclaw-old back into place. This is documented for recovery, but if executed at the wrong time it destroys the active configuration.
references/restore.md:26 rm -rf ~/.openclaw
lowAutomatic rotation deletes old backups
The script removes all openclaw-*.tar.gz files beyond the 7 newest. This matches the claimed rotation behavior and is limited to the chosen backup directory.
scripts/backup.sh:21 ls -t "$BACKUP_DIR"/openclaw-*.tar.gz 2>/dev/null | tail -n +8 | xargs -r rm
mediumKnown plaintext credential risk
The publisher explicitly states that the archives contain plaintext credential/session data and advises restricting access or encrypting archives. This risk is relevant if the agent writes backups to an untrusted location.
skill-card.md:24 Risk: Backups include credentials, API keys, tokens, and session data in plaintext archives.
infoNo runtime network use observed
The only domain in the package is this static publisher link. The backup/restore scripts and instructions do not call any network endpoints.
skill-card.md:9 [alex3alex](https://clawhub.ai/user/alex3alex)

0 AI finding(s) were dropped because their file, line or quote did not match the package.

Network destinations in the code

domainservice ratingwhere
clawhub.ainot in the service indexskill-card.md:9

Other facts

Binaries invokedbash, rm -rf
Environment variables readBACKUP_DIR, BACKUP_FILE, COUNT, DATE, HOME, SIZE
Hard-coded walletsnone
Pipes a download to a shell0
eval / exec / subprocess0
base64 blobs0
File writes3
Persistence0

Files audited

filelinessha256
SKILL.md687c2f64ebc1c36f34…
_meta.json6ef2553f697ed701f…
references/restore.md465e710df72ead6d15…
scripts/backup.sh318c38584aed2567e5…
skill-card.md5200559f61e7b1f2f2…

For agents

JSON: https://agenteconomy.report/k/openclaw-backup.audit.json · badge: https://agenteconomy.report/k/openclaw-backup.audited.svg · skill rating: /k/openclaw-backup · commission an audit of any skill: US$ 29 per version.

How this is computed

The complete published package of this exact version was downloaded from the registry and read statically; nothing was executed. A deterministic pass extracts network destinations, binaries, environment variables, writes, install commands, obfuscation markers, subprocesses and wallets, each with file and line. An AI then reads the whole package with those facts and writes the summary, the capabilities and the findings under a strict schema; every finding it produces must cite a file, a line and the exact text, or it is dropped. The final verdict is the worst of the two passes. The audit does not change the skill's trust tier (policy); the author may respond through the dispute channel and the response is published here. Commissioned by: the Agent Economy Report (free program: the 150 most downloaded skills, September 2026).