360 Secure SkillHub
360 安全技能中心

Skill Sentinel

核心功能为静态扫描OpenClaw技能目录,检测下载执行链、混淆执行、可疑回调等5类高风险规则,划分安全、警示、规避三级风险等级,支持配置排除已确认风险。典型场景含技能安装/发布前审查、CI安全门禁。通过命令行调用,支持表格、JSON、SARIF等输出格式,可设置阈值触发CI失败。

mike007jd
mike007jd
热度 45.93
最近更新 2026-05-11 17:37:12
分类:安全依赖:代码执行 / 读写文件应用场景:DevOps / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add 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.