微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

clawsec-clawhub-checker

clawsec-clawhub-checker · v0.0.3
安全 unknown 级 作者 davida-ps 公开目录收录
1k 下载 0 安装 3.5k 收藏 1 浏览

简介

clawsec-clawhub-checker

原始描述

ClawHub reputation checker for clawsec-suite. Adds a standalone reputation gate before guarded skill installation.

通过你的 Agent 添加

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

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

或者手动安装

Claude Code~/.claude/skills/clawsec-clawhub-checker/
Codex CLI~/.codex/skills/clawsec-clawhub-checker/
DeepSeek Harness~/.agents/skills/clawsec-clawhub-checker/

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

技能正文


name: clawsec-clawhub-checker version: 0.0.3 description: ClawHub reputation checker for clawsec-suite. Adds a standalone reputation gate before guarded skill installation. homepage: https://clawsec.prompt.security clawdis: emoji: "🛡️" requires: bins: [node, clawhub, openclaw] depends_on: [clawsec-suite]

ClawSec ClawHub Checker

Adds a reputation gate on top of the clawsec-suite guarded installer.

Operational Notes

  • Required runtime: node, clawhub, openclaw
  • Depends on: installed clawsec-suite
  • Side effects: none on other skills; this package does not rewrite installed suite files
  • Advisory-hook wiring is optional and manual in this release
  • Network behavior: reputation checks call ClawHub inspect/search endpoints
  • Trust model: scores are heuristic and confirmation-gated

What It Does

  1. Reads skill metadata from ClawHub (inspect --json)
  2. Evaluates scanner status (including VirusTotal summary when present)
  3. Applies additional reputation heuristics (age, updates, author history, downloads)
  4. Requires explicit --confirm-reputation when score is below threshold

Installation

Install after clawsec-suite:

npx clawhub@latest install clawsec-suite
npx clawhub@latest install clawsec-clawhub-checker

Optional preflight check (validates local paths and prints recommended command):

node ~/.openclaw/skills/clawsec-clawhub-checker/scripts/setup_reputation_hook.mjs

Usage

Run the enhanced installer directly from this skill:

node ~/.openclaw/skills/clawsec-clawhub-checker/scripts/enhanced_guarded_install.mjs \
  --skill some-skill \
  --version 1.0.0

If a skill is below threshold, rerun only with explicit approval:

node ~/.openclaw/skills/clawsec-clawhub-checker/scripts/enhanced_guarded_install.mjs \
  --skill some-skill \
  --version 1.0.0 \
  --confirm-reputation

Optional Advisory-Hook Wiring (Manual)

This release does not auto-patch clawsec-suite hook files.
If you rely on advisory alerts that include reputationWarning / reputationWarnings, wire the checker module manually:

  • Source module: ~/.openclaw/skills/clawsec-clawhub-checker/hooks/clawsec-advisory-guardian/lib/reputation.mjs
  • Target hook file: ~/.openclaw/skills/clawsec-suite/hooks/clawsec-advisory-guardian/handler.ts

Treat that wiring as a deliberate local customization and review it before enabling.

Exit Codes

  • 0 safe to install
  • 42 advisory confirmation required (from clawsec-suite)
  • 43 reputation confirmation required
  • 1 error

Configuration

Environment variables:

  • CLAWHUB_REPUTATION_THRESHOLD - Minimum score (0-100, default: 70)

Safety Notes

  • This is defense-in-depth, not a replacement for advisory matching
  • Scanner outputs can produce false positives and false negatives
  • Always review skill code before overriding warnings

Development

Key files:

  • scripts/enhanced_guarded_install.mjs
  • scripts/check_clawhub_reputation.mjs
  • scripts/setup_reputation_hook.mjs
  • hooks/clawsec-advisory-guardian/lib/reputation.mjs

License

GNU AGPL v3.0 or later - Part of the ClawSec security suite

正文来自原始仓库, 版权归作者所有,许可:GPL。 权利人认为有不妥,可申请下架。

原始仓库

作者的项目地址:https://github.com/prompt-security/clawsec

标签

没有标签

同类 Skill