← 返回 Skills 市场
jchandler187

SafeInstall

作者 jchandler187 · GitHub ↗ · v2.5.2 · MIT-0
cross-platform ⚠ pending
80
总下载
1
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install safeinstall
功能描述
Pre-install security audit and vulnerability scanner for ClawHub skills -- scan by slug or local path, 9 threat intel sources, 7 checks including malware sca...
使用说明 (SKILL.md)

⚡ SafeInstall

SafeInstall is a local-first security scanner for ClawHub skills. It runs 7 autonomous checks against 9 live threat intelligence feeds and returns a structured verdict -- pass, warn, or fail -- before you install.

Unlike instruction-card security skills that tell agents what to look for, SafeInstall actually runs the checks: dependency lookups against CISA KEV and OSV, credential scanning with Gitleaks, malware pattern matching with YARA, IOC matching against ThreatFox/URLhaus/MalwareBazaar/Feodo, behavioral analysis for eval and injection patterns, and prompt injection detection in SKILL.md files.

All scanning is offline. No telemetry. No phone-home. No data leaves your machine.

When to use

  • Before installing a skill from ClawHub -- verify it is safe
  • Before publishing your own skills -- catch issues early
  • When reviewing skills for your team or organization
  • As part of CI/CD or pipeline validation
  • When you want to verify a skill is safe before trusting it with your environment
  • Any time an agent encounters an untrusted skill and needs a security check

Quick start

safeinstall scan weather-forecast        # Scan by ClawHub slug
safeinstall scan ./my-skill              # Scan a local skill directory
safeinstall scan ./my-skill --checks dep-scan,secret-scan
safeinstall scan ./my-skill --json       # JSON output for pipelines

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

How it works

SafeInstall downloads the skill to a sandboxed 0700 temp directory, strips execute bits from all files, suppresses npm install scripts, runs all enabled checks against the local intel cache, produces a structured JSON report with findings, and cleans up the downloaded skill.

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 (offline, no phone-home)
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 scan auto-syncs if no cache exists.

Parameters

When an agent invokes this skill through OpenClaw:

  • target (required) -- Local directory path or ClawHub skill slug. 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.

Security and Privacy

  • No telemetry, no phone-home, no analytics. All scanning is local.
  • 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.
  • Slug scans are sandboxed: 0700 temp dir, execute bits stripped, npm scripts suppressed, cleaned up after scanning.

Local files

  • Read: ~/.clawsec/intel/ (threat intel cache), skill directory passed as target
  • Written: ~/.clawsec/intel/, ~/.clawsec/reports/, ~/.clawsec/venv/, ~/.clawsec/clawsec.log
  • First 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

如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install safeinstall
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /safeinstall 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.5.2
Adjusted description and content for search coverage. Cleaner, more technical tone.
v2.5.0
Security audit and vulnerability scanner for ClawHub skills.
元数据
Slug safeinstall
版本 2.5.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

SafeInstall 是什么?

Pre-install security audit and vulnerability scanner for ClawHub skills -- scan by slug or local path, 9 threat intel sources, 7 checks including malware sca... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 80 次。

如何安装 SafeInstall?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install safeinstall」即可一键安装,无需额外配置。

SafeInstall 是免费的吗?

是的,SafeInstall 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

SafeInstall 支持哪些平台?

SafeInstall 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 SafeInstall?

由 jchandler187(@jchandler187)开发并维护,当前版本 v2.5.2。

💬 留言讨论