FC claw-sos
Install, run, and manage the SOS emergency recovery tool for OpenClaw instances. Use when (1) the bot stops responding on Telegram/Discord and needs diagnosis or recovery, (2) you need to install SOS on a new or existing machine, (3) autofix, rollback, network check, or Telegram test is needed, (4) the user mentions "sos", "recovery", "bot is down", "not responding", or "emergency fix".
As a process C 55/100 · Has gaps — weak spots: result and completion, when it triggers, inputs and preconditions
What is at stake
The skill contains fragments that, in the wrong hands, cost money or data. Below: what the installer risks and what the author should do.
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
- Address the high-severity findings: each costs 18 safety points. If one is a false positive, add the rule id to guard.allow in spec.yaml.
- 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 · 18
-
high Dangerous commands
cmd-persistencescripts/sos.sh:224Persistence mechanism (cron / launchd / scheduled task / autorun registry)if ls ~/Library/LaunchAgents/*openclaw* &>/dev/null 2>&1 || ls /Library/LaunchDaemons/*openclaw* &>/dev/null 2>&1; then
-
high Dangerous commands
cmd-persistencescripts/sos.sh:240Persistence mechanism (cron / launchd / scheduled task / autorun registry)local plist=$(ls ~/Library/LaunchAgents/*openclaw* /Library/LaunchDaemons/*openclaw* 2>/dev/null | head -1)
-
high Dangerous commands
cmd-persistencescripts/sos.sh:244Persistence mechanism (cron / launchd / scheduled task / autorun registry)launchctl load "$plist" 2>/dev/null || true
-
high Dangerous commands
cmd-persistencescripts/sos.sh:257Persistence mechanism (cron / launchd / scheduled task / autorun registry)launchctl load "$plist" 2>/dev/null || true
Medium and low: 14
-
medium Dangerous commands
cmd-pipe-to-shellscripts/install.sh:35Downloads and executes remote code from an unrecognised host (pipe to shell) (string literal in code, not executed)echo -e "${YELLOW}Try: INSTALL_DIR=~/.local/bin bash <(curl -fsSL ...)${NC}"code literal -
medium Dangerous commands
cmd-privilegescripts/install.sh:50Privilege escalation / world-writable permissions$SUDO curl -fsSL "$RAW_URL" -o "${INSTALL_DIR}/${SCRIPT_NAME}" -
medium Dangerous commands
cmd-privilegescripts/install.sh:52Privilege escalation / world-writable permissions$SUDO wget -qO "${INSTALL_DIR}/${SCRIPT_NAME}" "$RAW_URL" -
medium Dangerous commands
cmd-privilegescripts/install.sh:60Privilege escalation / world-writable permissions$SUDO chmod +x "${INSTALL_DIR}/${SCRIPT_NAME}" -
medium Dangerous commands
cmd-privilegescripts/uninstall.sh:23Privilege escalation / world-writable permissions$SUDO rm -f "${INSTALL_DIR}/${SCRIPT_NAME}" -
medium Dangerous commands
cmd-pipe-to-shellskill-card.md:25Downloads and executes remote code from an unrecognised host (pipe to shell) (quoted — discussed, not commanded)Mitigation: Prefer the bundled script or a pinned, reviewed release and avoid unattended `curl | bash` installs. <br>
quoted -
medium Dangerous commands
cmd-pipe-to-shell-known-hostSKILL.md:26Pipe-to-shell installer from a well-known host (still executes remote code)curl -fsSL https://raw.githubusercontent.com/clawsos/claw-sos/main/install.sh | bash
-
low Dangerous commands
cmd-pipe-to-shell-known-hostscripts/install.sh:5Pipe-to-shell installer from a well-known host (still executes remote code) (code comment)# Usage: curl -fsSL https://raw.githubusercontent.com/clawsos/claw-sos/main/install.sh | bash
comment -
low Dangerous commands
cmd-pipe-to-shell-known-hostscripts/install.sh:6Pipe-to-shell installer from a well-known host (still executes remote code) (code comment)# Or: wget -qO- https://raw.githubusercontent.com/clawsos/claw-sos/main/install.sh | bash
comment -
low Dangerous commands
cmd-background-processscripts/sos.sh:270Starts a background / autostarted processnohup node "$OC_BIN" gateway --port 18789 &>/dev/null &
-
low Exfiltration
exfil-webhook-urlscripts/sos.sh:402Webhook / callback URL commonly used for exfiltration (verify the destination) (placeholder value)chat_id=$(timeout 5 curl -sf "https://api.telegram.org/bot${token}/getUpdates?limit=1" 2>/dev/null \placeholder -
low Exfiltration
net-credential-usescripts/sos.sh:402Credential used in a network call (verify the destination is the intended service) (the skill's own vendor host)chat_id=$(timeout 5 curl -sf "https://api.telegram.org/bot${token}/getUpdates?limit=1" 2>/dev/null \vendor-host -
low Exfiltration
exfil-webhook-urlscripts/sos.sh:422Webhook / callback URL commonly used for exfiltration (verify the destination) (placeholder value)local result=$(timeout 10 curl -sf -X POST "https://api.telegram.org/bot${token}/sendMessage" \placeholder -
low Exfiltration
net-credential-usescripts/sos.sh:422Credential used in a network call (verify the destination is the intended service) (the skill's own vendor host)local result=$(timeout 10 curl -sf -X POST "https://api.telegram.org/bot${token}/sendMessage" \vendor-host
Files scanned: 5. Evidence is masked. Grey chips explain why severity was lowered.
Against the Agent Skills spec
✓ No remarks against the Agent Skills spec
Process rating: all ten parameters 55/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
- 30Running it twice. 3 mutating operations with no state check
- 60Tools and files. Uses tools (bash) that frontmatter does not declare
- 100Steps. 17 steps
- 100Failures and branches. 1 branches, has a failure section
- 100Consistency. Name and required fields are in place
- 100Execution cost. Instruction body is 802 tokens
- 100Progress reporting. Reports progress
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
- +4Description does not say when NOT to use the skill (false activations)
- +3Output format is not stated: the model decides each time
- -212 emoji in the instructions: noise for the model
- -31 of 3 scripts are never mentioned in SKILL.md
- +1No license
- +2Single-language instructions
- +5Description quotes 4 example trigger phrases
- +3Description length 389: enough signal without eating the budget
- +4Structure: 12 headings
- +3Step-by-step instructions: 17 items
- +4Has examples (6 code blocks)
Quality base 70; lint remarks subtract, signals add up to 100. Result: 84.