FC lobsterguard
Bilingual security auditor for OpenClaw. 68 checks across 6 categories, 11 auto-fixes, OWASP Agentic AI Top 10 coverage, forensic detection, real-time threat interception, and guided hardening.
Bilingual security auditor for OpenClaw.
As a process C 60/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 instructions or scripts send data out: environment variables, keys, file contents, chat history. You may never notice, because the agent performs the upload as "part of the task".
If the upload is not needed for the task, remove it: catalogs flag such skills and delist them. If it is needed, name the destination explicitly, say what leaves the machine, and give the user a switch.
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
- 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.
- 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 · 52
-
high Exfiltration
exfil-post-credential-filescripts/check.py:58Uploads a credential/secret file to a remote endpoint (detector / deny-list definition)r"curl.*-d.*\.env", # Credential exfiltration via curl
detector
Medium and low: 51
-
medium Dangerous commands
cmd-persistenceinstall.sh:201Persistence mechanism (cron / launchd / scheduled task / autorun registry) (string literal in code, not executed)su - "$OC_USER" -c "(crontab -l 2>/dev/null; echo '$CRON_LINE') | crontab -"
code literal -
medium Dangerous commands
cmd-persistencescripts/check.py:1558Persistence mechanism (cron / launchd / scheduled task / autorun registry) (string literal in code, not executed)("ls /etc/cron.daily/*backup* 2>/dev/null", "daily backup script"),code literal -
medium Dangerous commands
cmd-persistencescripts/check.py:1793Persistence mechanism (cron / launchd / scheduled task / autorun registry) (string literal in code, not executed)("ls /etc/cron.d/ 2>/dev/null", "cron.d directory"),code literal -
medium Dangerous commands
cmd-persistencescripts/check.py:1817Persistence mechanism (cron / launchd / scheduled task / autorun registry) (code comment)# Check /etc/cron.d for unusual files
comment -
medium Dangerous commands
cmd-persistencescripts/check.py:1818Persistence mechanism (cron / launchd / scheduled task / autorun registry) (string literal in code, not executed)cron_d_stdout, _, _ = run_command("ls -la /etc/cron.d/ 2>/dev/null")code literal -
medium Dangerous commands
cmd-pipe-to-shellscripts/check.py:4215Downloads and executes remote code from an unrecognised host (pipe to shell) (string literal in code, not executed)" curl -fsSL https://get.docker.com | sudo sh",
code literal -
medium Dangerous commands
cmd-pipe-to-shellscripts/check.py:4240Downloads and executes remote code from an unrecognised host (pipe to shell) (string literal in code, not executed)" curl -fsSL https://get.docker.com | sudo sh",
code literal -
medium Dangerous commands
cmd-persistencescripts/fix_engine.py:720Persistence mechanism (cron / launchd / scheduled task / autorun registry) (string literal in code, not executed)"command": "(crontab -l 2>/dev/null; echo '0 2 * * * ~/.openclaw/backup.sh') | crontab -",
code literal -
medium Exfiltration
exfil-webhook-urlscripts/telegram_utils.py:60Webhook / callback URL commonly used for exfiltration (verify the destination) (quoted — discussed, not commanded)url = f"https://api.telegram.org/bot{bot_token}/sendMessage"quoted -
low Dangerous commands
cmd-privilegedocs/docker-setup-guide.md:35Privilege escalation / world-writable permissions (documentation of a security skill)sudo chmod a+r /etc/apt/keyrings/docker.gpg
security skill -
low Dangerous commands
cmd-privilegedocs/docker-setup-guide.md:41Privilege escalation / world-writable permissions (documentation of a security skill)sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
security skill -
low Dangerous commands
cmd-privilegedocs/docker-setup-guide.md:179Privilege escalation / world-writable permissions (documentation of a security skill)sudo bash install.sh
security skill -
low Dangerous commands
cmd-privilegeinstall.sh:35Privilege escalation / world-writable permissions (string literal in code, not executed)log_info "Uso: sudo bash install.sh"
code literal -
low Dangerous commands
cmd-cron-mentioninstall.sh:198Mentions editing / listing crontab (string literal in code, not executed)if su - "$OC_USER" -c "crontab -l 2>/dev/null" | grep -q "cleanup.py"; then
code literal -
low Dangerous commands
cmd-cron-mentioninstall.sh:201Mentions editing / listing crontab (string literal in code, not executed)su - "$OC_USER" -c "(crontab -l 2>/dev/null; echo '$CRON_LINE') | crontab -"
code literal -
low Dangerous commands
cmd-cron-mentioninstall.sh:255Mentions editing / listing crontab (string literal in code, not executed)if su - "$OC_USER" -c "crontab -l 2>/dev/null" | grep -q "cleanup.py"; then
code literal -
low Dangerous commands
cmd-cron-mentioninstall.sh:256Mentions editing / listing crontab (detector / deny-list definition; string literal in code, not executed)su - "$OC_USER" -c "crontab -l 2>/dev/null | grep -v cleanup.py | crontab -"
detectorcode literal -
low Dangerous commands
cmd-privilegeinstall.sh:302Privilege escalation / world-writable permissions (string literal in code, not executed)printf " ${YELLOW}Desinstalar: sudo bash install.sh --uninstall${NC}\n\n"code literal -
low Dangerous commands
cmd-privilegeREADME.es.md:78Privilege escalation / world-writable permissions (documentation of a security skill)sudo bash install.sh
security skill -
low Dangerous commands
cmd-privilegeREADME.es.md:94Privilege escalation / world-writable permissions (documentation of a security skill)sudo bash install.sh --uninstall
security skill -
low Dangerous commands
cmd-privilegeREADME.md:78Privilege escalation / world-writable permissions (documentation of a security skill)sudo bash install.sh
security skill -
low Dangerous commands
cmd-privilegeREADME.md:94Privilege escalation / world-writable permissions (documentation of a security skill)sudo bash install.sh --uninstall
security skill -
low Dangerous commands
cmd-privilegescripts/check.py:802Privilege escalation / world-writable permissions (string literal in code, not executed)" echo 'PermitRootLogin no' | sudo tee /etc/ssh/sshd_config.d/99-n…onf",
code literal -
low Dangerous commands
cmd-privilegescripts/check.py:820Privilege escalation / world-writable permissions (string literal in code, not executed)" echo 'PermitRootLogin no' | sudo tee /etc/ssh/sshd_config.d/99-n…onf",
code literal -
low Dangerous commands
cmd-privilegescripts/check.py:868Privilege escalation / world-writable permissions (string literal in code, not executed)" echo 'PasswordAuthentication no' | sudo tee /etc/ssh/sshd_config.d/99-n…onf",
code literal -
low Dangerous commands
cmd-privilegescripts/check.py:874Privilege escalation / world-writable permissions (string literal in code, not executed)" echo 'PasswordAuthentication no' | sudo tee /etc/ssh/sshd_config.d/99-n…onf",
code literal -
low Dangerous commands
cmd-background-processscripts/check.py:985Starts a background / autostarted process (string literal in code, not executed)" sudo systemctl enable fail2ban",
code literal -
low Dangerous commands
cmd-background-processscripts/check.py:993Starts a background / autostarted process (string literal in code, not executed)" sudo systemctl enable fail2ban",
code literal -
low Dangerous commands
cmd-privilegescripts/check.py:1107Privilege escalation / world-writable permissions (string literal in code, not executed)" sudo cp -r ~/.openclaw /home/openclaw/.openclaw",
code literal -
low Dangerous commands
cmd-background-processscripts/check.py:1391Starts a background / autostarted process (string literal in code, not executed)" sudo systemctl enable fail2ban",
code literal -
low Dangerous commands
cmd-background-processscripts/check.py:1397Starts a background / autostarted process (string literal in code, not executed)" sudo systemctl enable fail2ban",
code literal -
low Dangerous commands
cmd-cron-mentionscripts/check.py:1555Mentions editing / listing crontab (string literal in code, not executed)("crontab -l 2>/dev/null | grep -i 'backup\\|rsync\\|tar\\|borg\\|restic\\|duplicity'", "cron backup job"),code literal -
low Dangerous commands
cmd-cron-mentionscripts/check.py:1588Mentions editing / listing crontab (string literal in code, not executed)" sudo crontab -e",
code literal -
low Dangerous commands
cmd-cron-mentionscripts/check.py:1600Mentions editing / listing crontab (string literal in code, not executed)" sudo crontab -e",
code literal -
low Dangerous commands
cmd-cron-mentionscripts/check.py:1792Mentions editing / listing crontab (detector / deny-list definition; string literal in code, not executed)("crontab -l 2>/dev/null", "root crontab"),detectorcode literal -
low Dangerous commands
cmd-cron-mentionscripts/check.py:1797Mentions editing / listing crontab (string literal in code, not executed)stdout, _, code = run_command("crontab -l 2>/dev/null")code literal -
low Dangerous commands
cmd-background-processscripts/check.py:6144Starts a background / autostarted process (string literal in code, not executed)" sudo systemctl enable auditd",
code literal -
low Dangerous commands
cmd-privilegescripts/fix_engine.py:302Privilege escalation / world-writable permissions (string literal in code, not executed)"command": "sudo bash -c 'XDG_RUNTIME_DIR=/run/user/0 systemctl --user is-active openclaw-gateway' && sudo bash -c 'XDG_RUNTIME_DIR=/run/user/0 systemctl --user stop openclaw-gateway' && sudo kill $(p
code literal -
low Dangerous commands
cmd-privilegescripts/fix_engine.py:304Privilege escalation / world-writable permissions (detector / deny-list definition; string literal in code, not executed)"rollback": "sudo bash -c 'XDG_RUNTIME_DIR=/run/user/0 systemctl --user start openclaw-gateway'",
detectorcode literal -
low Dangerous commands
cmd-privilegescripts/fix_engine.py:313Privilege escalation / world-writable permissions (string literal in code, not executed; security demo / example)"command": f"sudo rm -f /root/.config/systemd/user/openclaw-gateway.service && sudo rm -f /root/.config/systemd/user/default.target.wants/openclaw-gateway.service && sudo bash -c 'XDG_RUNTIME_DIR=/run
code literaldemo -
low Dangerous commands
cmd-privilegescripts/fix_engine.py:315Privilege escalation / world-writable permissions (string literal in code, not executed; security demo / example)"rollback": f"sudo bash -c 'mkdir -p /root/.config/systemd/user/default.target.wants'",
code literaldemo -
low Dangerous commands
cmd-privilegescripts/fix_engine.py:324Privilege escalation / world-writable permissions (detector / deny-list definition; string literal in code, not executed)"command": f"mkdir -p {target_openclaw} && sudo bash -c 'cp -r /root/.openclaw/* {target_openclaw}/' && sudo chown -R {target_user}:{target_user} {target_openclaw}",detectorcode literal -
low Dangerous commands
cmd-disable-securityscripts/fix_engine.py:661Disables a security control (Defender, Gatekeeper, SIP, firewall, execution policy) (detector / deny-list definition; string literal in code, not executed)"rollback": "ufw disable",
detectorcode literal -
low Dangerous commands
cmd-cron-mentionscripts/fix_engine.py:720Mentions editing / listing crontab (string literal in code, not executed)"command": "(crontab -l 2>/dev/null; echo '0 2 * * * ~/.openclaw/backup.sh') | crontab -",
code literal -
low Dangerous commands
cmd-cron-mentionscripts/fix_engine.py:721Mentions editing / listing crontab (string literal in code, not executed)"validation": "crontab -l 2>/dev/null | grep -q backup",
code literal -
low Dangerous commands
cmd-cron-mentionscripts/fix_engine.py:722Mentions editing / listing crontab (detector / deny-list definition; string literal in code, not executed)"rollback": "crontab -l | grep -v backup.sh | crontab -",
detectorcode literal -
low Dangerous commands
cmd-background-processscripts/fix_engine.py:881Starts a background / autostarted process (string literal in code, not executed)"command": "sudo systemctl enable auditd && sudo systemctl start auditd",
code literal -
low Dangerous commands
cmd-background-processscripts/fix_engine.py:1224Starts a background / autostarted process (string literal in code, not executed)"command": "sudo systemctl enable openclaw",
code literal -
low Exfiltration
exfil-webhook-urlscripts/quarantine_watcher.py:19Webhook / callback URL commonly used for exfiltration (verify the destination) (placeholder value)TELEGRAM_API_URL = f"https://api.telegram.org/bot{BOT_TOKEN}/sendMessage"placeholder -
low Exfiltration
exfil-webhook-urlscripts/skill_scanner.py:350Webhook / callback URL commonly used for exfiltration (verify the destination) (placeholder value)f"https://api.telegram.org/bot{BOT_TOKEN}/sendMessage",placeholder
A further 1 matches are quotations in this security skill's documentation and are not counted as findings.
Files scanned: 17. 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 60/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
- 85Steps. 60 steps, 3 vague phrases
- 100Tools and files. No external tools needed
- 100Failures and branches. 2 branches, has a failure section
- 100Consistency. Name and required fields are in place
- 100Execution cost. Instruction body is 1673 tokens
- 100Progress reporting. Reports progress
- medium Safety rules and hard prohibitions inside a skill: they belong in the system prompt, here they protect nothing
- low 10 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
- -37 of 8 scripts are never mentioned in SKILL.md
- +1No license
- +2Single-language instructions
- +3Description length 193: enough signal without eating the budget
- +4Structure: 14 headings
- +3Step-by-step instructions: 60 items
- +4Has examples (2 code blocks)
- +4Reference files are cited in the instructions (1 of 1)
Quality base 70; lint remarks subtract, signals add up to 100. Result: 73.