✨

Pre-installation Security Check

Pre-installation Security Check · v1.0.0
可以安装,但有提示 HAS_SCRIPTS
安全 unknown 级 作者 marianachow0321 公开目录收录
481 下载 1 安装 1.1k 收藏 1 浏览

简介

Pre-installation Security Check

原始描述

Pre-installation security assessment for ClawHub skills. Run before any skill install.

通过你的 Agent 添加

安装目录:clawhub-security-check/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/pre-installation-security-check/
Codex CLI~/.codex/skills/pre-installation-security-check/
DeepSeek Harness~/.agents/skills/pre-installation-security-check/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: clawhub-security-check version: 1.0.0 author: marianachow0321 description: Pre-installation security assessment for ClawHub skills. Run before any skill install. homepage: https://github.com/marianachow0321/openclaw-preinstall-security-check triggers:

  • install skill
  • skill install
  • clawhub install
  • is this skill safe
  • check skill security

ClawHub Security Check

Mandatory pre-installation security assessment for ClawHub skills with optional sandbox testing.

When to Use

  • User wants to install a ClawHub skill (openclaw skill install, npx clawhub install)
  • User asks about skill safety or wants to check a skill before installing
  • BEFORE executing any skill installation command

Workflow

1. Extract Skill Info

Parse the skill identifier:

  • Full URL: https://clawhub.ai/author/skill-name
  • Short: skill-name or author/skill-name

2. Fetch ClawHub & GitHub Data

web_fetch("https://clawhub.ai/{author}/{skill-name}")
web_fetch("https://github.com/{author}/{repo}")

Extract: author, description, download count, stars, last commit date, verified status, file structure.

3. Calculate Risk Score

See references/risk-scoring.md for the full scoring table.

Score is 0–100 (higher = safer):

  • 80–100: Very safe → skip sandbox, approve
  • 60–79: Safe → approve, optional sandbox
  • 40–59: Moderate → sandbox required
  • 20–39: High risk → sandbox required
  • 0–19: Very high risk → reject immediately

4. Sandbox Testing (Conditional)

Run sandbox IF score is 20–79 AND skill has executables or unknown author.

Skip IF score ≥ 80 (trusted), documentation-only, or score < 20 (reject).

Spawn an isolated sub-agent session to install and analyze the skill:

  • List all files and executables
  • Grep for suspicious patterns (curl|sh, eval, exec, rm -rf, sudo, ~/.ssh, ~/.aws, base64.*decode)
  • Check for network calls
  • Return structured JSON with findings

See references/sandbox-procedure.md for the full sub-agent task template.

5. Generate Report

See references/report-templates.md for all report formats.

Present a concise security report with verdict (SAFE / NEEDS REVIEW / NOT SAFE), author info, trust rating, and a clear action instruction. If user asks "why" or "details", show expanded findings.

6. Handle User Response

  • yes → run openclaw skill install [skill-name]
  • no → cancel, suggest alternatives
  • details → show full analysis, then re-ask

Safety Rules

  • Never install without explicit user confirmation
  • Security check cannot be skipped or bypassed
  • Err on caution for unknown sources
  • If no internet, block installation entirely
  • Limit concurrent sandbox sessions to 1

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

没有标签

同类 Skill