360 Secure SkillHub
360 安全技能中心

ClawSec Audit

通过本地 CLI 以 ClawHub slug 或本地目录为对象扫描 Skill,执行依赖、静态分析、密钥、YARA、IOC、行为与提示注入共 7 项检查,交叉比对 9 个威胁情报源,输出 pass/warn/fail 判定与分级发现;扫描在本地进行,同步时仅访问公开情报源

jchandler187
jchandler187
热度 16.02
最近更新 2026-05-24 03:38:37
分类:安全依赖:代码执行 / 读写文件 / 第三方 API应用场景:代码审查 / 报告撰写 / 工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add clawsec-audit
Metadata
name
clawsec-audit
description
Scan ClawHub skills for security vulnerabilities before installing -- 9 threat intel sources, 7 autonomous checks, slug or local path scan.
version
2.4.1
metadata
{"openclaw":{"emoji":"⚡","homepage":"https://github.com/jchandler187/clawsec","requires":{"bins":["python3","clawhub"],"anyBins":["gitleaks","semgrep","yara"]},"install":[{"kind":"node","package":"@lowwattlabs/clawsec","bins":["clawsec"]}],"envVars":[{"name":"CLAWSEC_HOME","required":false,"description":"Base directory for intel cache and reports (default: ~/.clawsec)"},{"name":"CLAWSEC_INTEL_DIR","required":false,"description":"Override intel cache directory (default: CLAWSEC_HOME/intel)"},{"name":"CLAWSEC_REPORTS_DIR","required":false,"description":"Override reports output directory (default: CLAWSEC_HOME/reports)"}]}}

⚡ ClawSec

Security verification for ClawHub skills. Scan any skill -- by ClawHub slug or local path -- against 9 continuously-updated threat intelligence sources using 7 autonomous security checks.

When to use

Use ClawSec before installing a skill from ClawHub to verify it is safe. Also use it when developing your own skills -- scan before publishing to catch issues early.

Quick start

clawsec scan weather-forecast        # Scan by ClawHub slug (downloads, scans, cleans up)
clawsec scan ./my-skill              # Scan a local skill directory
clawsec scan ./my-skill --checks dep-scan,secret-scan   # Run specific checks only
clawsec scan ./my-skill --json       # JSON output for programmatic use

First run sets up a Python venv and syncs threat intel automatically. After that, clawsec scan works with zero configuration.

Parameters

When an agent invokes this skill through OpenClaw:

  • target (required) -- Local directory path or ClawHub skill slug (e.g. weather-forecast). If a slug is given, the skill is downloaded to a sandboxed temp directory, scanned, and removed.
  • checks (optional) -- Comma-separated list: dep-scan, static-analysis, secret-scan, yara-scan, ioc-match, behavioral, prompt-inject. Default: all 7.
  • json (optional) -- Output results as JSON for programmatic use.

Output

ClawSec returns a structured report with:

  • verdict -- pass, warn, or fail
  • findings -- Array of issues, each with severity (critical, high, medium), description, and file location
  • report_id -- Full UUID for later retrieval via clawsec report <id>

Exit codes: 0 = pass, 1 = warn, 2 = fail

Checks

Check What it does
dep-scan Cross-references dependencies against CISA KEV and OSV databases
static-analysis Runs Semgrep rules for security anti-patterns
secret-scan Scans for hardcoded API keys, tokens, and credentials using Gitleaks
yara-scan Matches files against YARA rules for malware patterns
ioc-match Matches IPs, domains, URLs, and file hashes against ThreatFox, URLhaus, MalwareBazaar, and Feodo Tracker
behavioral Detects eval usage, shell injection, data exfiltration vectors, DNS tunneling
prompt-inject Detects prompt injection and instruction-hiding patterns in SKILL.md

Threat intel sources (9)

CISA KEV, OSV (npm + PyPI), EPSS, MalwareBazaar, URLhaus, ThreatFox, Feodo Tracker, YARA Rules, Semgrep Rules

Run clawsec sync to refresh the intel cache. First clawsec scan auto-syncs if no cache exists.

Security and Privacy

  • No data leaves your machine. All scanning is local. No telemetry, no phone-home, no analytics.
  • Slug scans are sandboxed. Downloaded skills go to a 0700 temp directory with execute bits stripped and npm scripts suppressed. Cleaned up after scanning.
  • During scan, zero network requests. All intel is read from the local cache.
  • During sync, only public threat intel feeds are contacted. No skill code or scan targets are ever transmitted externally.

Local files

  • Read: ~/.clawsec/intel/ (threat intel cache), skill directory passed as target
  • Written: ~/.clawsec/intel/, ~/.clawsec/reports/, ~/.clawsec/venv/, ~/.clawsec/clawsec.log
  • First clawsec sync (or auto-sync) downloads approximately 50–100 MB of threat intel data

Install

npm install -g @lowwattlabs/clawsec

Or let OpenClaw install it via the skill install spec above.

License

MIT-0