Personality Backup

PendingStatic analysis audit pending.

Overview

No static analysis result has been recorded yet. Pattern checks will appear here once the artifact has been analyzed.

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

A backup could contain all OpenClaw secrets and account credentials, not just personality files.

Why it was flagged

The script copies every non-hidden file from the configured secrets directory into the backup by default. That may include API keys, tokens, or other account credentials.

Skill content
if [ "$CFG_BACKUP_SECRETS" = "true" ] && [ -d "$CFG_SECRETS_DIR" ]; then ... cp -r "$CFG_SECRETS_DIR"/* "$BACKUP_DIR/secrets/"
Recommendation

Use an explicit allowlist for secrets, disable secret backup unless necessary, and verify the archive recipient and encryption password before running.

What this means

Users may believe every backup is safely encrypted, but a misconfigured password file could lead to a failed, hanging, or weakly protected backup workflow.

Why it was flagged

If the password file is missing or the expected field is not found, the password remains empty and is still exported for the backup script instead of failing closed.

Skill content
password = ""
if pw_file and os.path.isfile(pw_file):
    with open(pw_file) as f:
        ...
pairs = {
    "CFG_PASSWORD": password,
Recommendation

Fail immediately when the password is missing or empty, and do not deliver any archive unless encryption has been verified.

ConcernHigh Confidence
ASI10: Rogue Agents
What this means

Sensitive backups may continue running and emailing after setup, and existing scheduled jobs could be lost if the command is copied directly.

Why it was flagged

The documented setup creates a recurring cron job for automated backups, and the command form can replace the user's existing crontab rather than safely appending.

Skill content
echo "0 3 * * * bash $(pwd)/scripts/backup.sh /path/to/backup-config.json" | crontab -
Recommendation

Require explicit user approval for scheduled backups, document how to remove the cron job, and use a safer append flow such as preserving `crontab -l` output.

What this means

Private or stale memory contents, including any bad instructions already stored there, could be restored into a new agent environment.

Why it was flagged

Backing up and restoring memory is central to the skill, but it means persistent agent memory and identity context are carried forward across installations.

Skill content
"backup_memory": true,
...
The backup includes a generated `RESTORE.md` with step-by-step instructions for restoring onto a fresh OpenClaw installation.
Recommendation

Inspect memory and personality files before restore, and keep encrypted archives tightly controlled.

What this means

Dependency and credential requirements may not be visible during installation or preflight checks.

Why it was flagged

The registry metadata does not declare dependencies or credentials even though SKILL.md lists p7zip/Python and the scripts can use SMTP credentials.

Skill content
Required binaries (all must exist): none
Env var declarations: none
Primary credential: none
Recommendation

Declare required binaries such as 7z, python3, and rsync, and declare optional SMTP credential environment variables.