360 Secure SkillHub
360 安全技能中心

Skill Sentinel

ClawShield 在不执行目标内容的前提下静态扫描 Skill 目录,依据 5 条规则识别下载即执行、混淆执行、可疑回调、社工式指令和 shell 包装执行,可输出 table、json、sarif 结果并按 Safe/Caution/Avoid 分级,支持抑制文件与 CI 失败阈值。

分类:安全
mike007jd
mike007jd
热度 30.31
最近更新 2026-05-11 17:37:12

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add mike007jd/skill-sentinel
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
clawshield
description
Scan OpenClaw skill directories for high-signal security risks such as download-and-execute chains, obfuscated execution, and suspicious callbacks.
homepage
https://github.com/mike007jd/openclaw-skills/tree/main/clawshield
metadata
{"openclaw":{"emoji":"🛡️","requires":{"bins":["node"]}}}

ClawShield

Scan a skill directory without executing it and return a risk level that can be enforced in review or CI.

When to use

  • You want a fast static review before installing or publishing a skill.
  • You need machine-readable findings for CI or release gates.
  • You want a narrow ruleset aimed at common high-risk supply-chain patterns.

Command

node {baseDir}/bin/clawshield.js scan /path/to/skill --format table
node {baseDir}/bin/clawshield.js scan /path/to/skill --format json
node {baseDir}/bin/clawshield.js scan /path/to/skill --format sarif > clawshield.sarif
node {baseDir}/bin/clawshield.js scan /path/to/skill --format table --fail-on caution

Rules

Rule ID Severity Description
CS001_CURL_PIPE_SH high curl or wget piped directly into a shell
CS002_OBFUSCATED_EXEC high obfuscated or dynamic execution such as eval, new Function, or base64 decode flows
CS003_SUSPICIOUS_CALLBACK medium suspicious outbound callback endpoints such as raw IPs, ngrok, or webhook collectors
CS004_SOCIAL_ENGINEERING_PROMPT medium instructions that pressure users to bypass safety controls
CS005_SHELL_WRAPPER_EXEC high bash -c wrappers that hide remote execution

Risk levels

  • Safe: no findings after suppressions
  • Caution: one or more medium-severity findings
  • Avoid: one or more high-severity findings

Suppressions

Create .clawshield-suppressions.json in the target skill directory:

[
  {
    "ruleId": "CS001_CURL_PIPE_SH",
    "file": "install.sh",
    "line": 15,
    "justification": "Reviewed manually; uses a pinned artifact with signature verification."
  }
]

Suppressions without justification are ignored.

CI example

- run: node {baseDir}/bin/clawshield.js scan . --format sarif --fail-on caution

Boundaries

  • ClawShield is a static scanner. It does not sandbox or execute the target skill.
  • The rule set is intentionally narrow and should be treated as a high-signal first pass, not a full security audit.