FB quick-backup-restore
Restic-powered encrypted time machine for OpenClaw: hourly incremental snapshots, fast restore by time/snapshot/file, local-only privacy defaults, integrity checks, retention, and optional alerts. Setup can run with sudo, install dependencies, create systemd/cron persistence, restore over current files, and prune or purge recovery data.
As a process B 65/100 · Nearly there — weak spots: result and completion, when it triggers, inputs and preconditions
What is at stake
Medium-severity findings: the skill is probably honest, but read what alarmed the scanner.
Below is the worst case for this category. The finding here is medium: the guard saw a sign, not a proof.
The skill contains commands that delete files, rewrite disks or execute code fetched from the network. The agent may run them without asking if it believes the instructions require it.
Replace destructive commands with safe equivalents that ask for confirmation, scope them to one folder, and stop piping curl into a shell: pin a version and a checksum.
How to improve
- Say in the description WHEN to use the skill ("use when…", example requests): that is the agent's main cue.
- Your own cases (evals/evals.json, 4–6 real requests with expected answers): the full check would then run those instead of a model-drafted suite.
- A spec.yaml with trigger phrases and assertions — a behaviour contract for CI; `skilltest init` writes a template.
Guard findings · 24
✓ No critical or high findings
Medium and low: 24
-
medium Dangerous commands
cmd-persistencebin/setup.sh:92Persistence mechanism (cron / launchd / scheduled task / autorun registry) (string literal in code, not executed)echo " - Register /etc/cron.d/time-clawshine (preserves schedule.cron exactly)"
code literal -
medium Dangerous commands
cmd-persistencebin/setup.sh:98Persistence mechanism (cron / launchd / scheduled task / autorun registry) (string literal in code, not executed)echo " - Register /etc/cron.d/time-clawshine"
code literal -
medium Dangerous commands
cmd-persistencebin/setup.sh:122Persistence mechanism (cron / launchd / scheduled task / autorun registry) (string literal in code, not executed)[[ -f "/etc/cron.d/quick-backup-restore" ]] && v2_a…cts+=("/etc/cron.d/quick-backup-restore")code literal -
medium Dangerous commands
cmd-persistencebin/setup.sh:415Persistence mechanism (cron / launchd / scheduled task / autorun registry) (string literal in code, not executed)CRON_FILE="/etc/cron.d/time-clawshine"
code literal -
medium Dangerous commands
cmd-persistencebin/status.sh:87Persistence mechanism (cron / launchd / scheduled task / autorun registry) (string literal in code, not executed)CRON_FILE="/etc/cron.d/time-clawshine"
code literal -
medium Dangerous commands
cmd-persistencebin/uninstall.sh:32Persistence mechanism (cron / launchd / scheduled task / autorun registry) (string literal in code, not executed)echo " - Cron job (/etc/cron.d/time-clawshine)"
code literal -
medium Dangerous commands
cmd-persistenceCHANGELOG.md:15Persistence mechanism (cron / launchd / scheduled task / autorun registry) (quoted — discussed, not commanded)- Fall back to `/etc/cron.d/time-clawshine` for cron expressions that cannot be
quoted -
medium Dangerous commands
cmd-persistenceCHANGELOG.md:247Persistence mechanism (cron / launchd / scheduled task / autorun registry) (quoted — discussed, not commanded)- `/etc/cron.d/quick-backup-restore` → `/etc/cron.d/time-clawshine`
quoted -
medium Dangerous commands
cmd-pipe-to-shellREADME.md:333Downloads and executes remote code from an unrecognised host (pipe to shell) (quoted — discussed, not commanded)use `curl | bash`.
quoted -
medium Dangerous commands
cmd-privilegeSETUP_GUIDE.md:180Privilege escalation / world-writable permissionssudo bash {baseDir}/bin/setup.sh -
medium Dangerous commands
cmd-privilegeSETUP_GUIDE.md:192Privilege escalation / world-writable permissionssudo bash {baseDir}/bin/status.sh -
medium Dangerous commands
cmd-privilegeSETUP_GUIDE.md:204Privilege escalation / world-writable permissionssudo bash {baseDir}/bin/uninstall.sh -
medium Dangerous commands
cmd-privilegeSETUP_GUIDE.md:211Privilege escalation / world-writable permissionssudo bash {baseDir}/bin/uninstall.sh --purge -
medium Dangerous commands
cmd-privilegeSKILL.md:20Privilege escalation / world-writable permissionssudo bash {baseDir}/bin/setup.sh -
medium Dangerous commands
cmd-privilegeSKILL.md:74Privilege escalation / world-writable permissionssudo bash {baseDir}/bin/status.sh -
medium Dangerous commands
cmd-privilegeSKILL.md:82Privilege escalation / world-writable permissionssudo bash {baseDir}/bin/setup.sh -
medium Dangerous commands
cmd-privilegeSKILL.md:86Privilege escalation / world-writable permissionssudo bash {baseDir}/bin/setup.sh --no-system-install -
low Dangerous commands
cmd-background-processbin/setup.sh:387Starts a background / autostarted processsystemctl enable --now time-clawshine.timer
-
low Dangerous commands
cmd-persistencebin/setup.sh:394Persistence mechanism (cron / launchd / scheduled task / autorun registry) (detector / deny-list definition; string literal in code, not executed)for legacy_cron in "/etc/cron.d/quick-backup-restore" "/etc/cron.d/time-clawshine"; do
detectorcode literal -
low Dangerous commands
cmd-persistencebin/uninstall.sh:77Persistence mechanism (cron / launchd / scheduled task / autorun registry) (detector / deny-list definition; string literal in code, not executed)for cron_file in "/etc/cron.d/time-clawshine" "/etc/cron.d/quick-backup-restore"; do
detectorcode literal -
low Secrets in code
secret-telegram-botconfig.yaml:61Telegram bot token (placeholder value)# Exemplo: 1234…AHx…
placeholder -
low Exfiltration
exfil-webhook-urllib.sh:228Webhook / callback URL commonly used for exfiltration (verify the destination) (placeholder value)"https://api.telegram.org/bot${TG_TOKEN}/sendMessage" \placeholder -
low Dangerous commands
cmd-privilegeskill.json:59Privilege escalation / world-writable permissions (string literal in code, not executed)"command": "sudo bash {baseDir}/bin/setup.sh"code literal -
low Dangerous commands
cmd-privilegeSKILL.md:4Privilege escalation / world-writable permissions (detector / deny-list definition; security demo / example)metadata: { "openclaw": { "emoji": "⏱", "requires": { "bins": ["bash", "openssl", "curl", "jq"], "auto_install": ["restic", "yq"] }, "install": [{ "id": "setup", "kind": "shell", "label": "Run Time Cldetectordemo
Files scanned: 20. Evidence is masked. Grey chips explain why severity was lowered.
Against the Agent Skills spec
- warning
description-no-whendescription does not say WHEN to use the skill (no "use when")
Process rating: all ten parameters 65/100
- 0Result and completion. Does not say what the result is
- 0Inputs and preconditions. Does not say what the process needs to start
- 20When it triggers. No condition that starts the skill
- 100Tools and files. No external tools needed
- 100Steps. 28 steps
- 100Failures and branches. 4 branches, has a failure section
- 100Consistency. Name and required fields are in place
- 100Execution cost. Instruction body is 2460 tokens
- 100Running it twice. Mutating operations check current state
- 100Progress reporting. Reports progress
- medium Safety rules and hard prohibitions inside a skill: they belong in the system prompt, here they protect nothing
- low 13 top-level sections: this looks like several domains in one skill
Everything here is measured from the skill text rather than judged by a model, so the numbers are checkable. A parameter weighs more when it is a more common reason for the process to stall.
Quality signals
- +5Description has no quoted example phrases that should trigger the skill
- +4Description does not say when NOT to use the skill (false activations)
- +3Output format is not stated: the model decides each time
- +2Single-language instructions
- +3Description length 338: enough signal without eating the budget
- +4Structure: 16 headings
- +3Step-by-step instructions: 28 items
- +4Has examples (28 code blocks)
- +1License stated
Quality base 70; lint remarks subtract, signals add up to 100. Result: 73.