ClawHub reputation checker for ClawSec suite. Enhances guarded skill installer with VirusTotal Code Insight reputation scores and additional safety checks.
Enhances the ClawSec suite's guarded skill installer with ClawHub reputation checks. Adds a second layer of security by checking VirusTotal Code Insight scores and other reputation signals before allowing skill installation.
clawhub install - Intercepts skill installation requestsThis skill must be installed after clawsec-suite:
# First install the suite
npx clawhub@latest install clawsec-suite
# Then install the checker
npx clawhub@latest install clawsec-clawhub-checker
# Run the setup script to integrate with clawsec-suite
node ~/.openclaw/skills/clawsec-clawhub-checker/scripts/setup_reputation_hook.mjs
# Restart OpenClaw gateway for changes to take effect
openclaw gateway restart
After setup, the checker adds enhanced_guarded_install.mjs and
guarded_skill_install_wrapper.mjs under clawsec-suite/scripts and updates the advisory
guardian hook. The original guarded_skill_install.mjs is not replaced.
After setup, run the wrapper (drop-in path) or the enhanced script directly:
# Recommended drop-in wrapper
node scripts/guarded_skill_install_wrapper.mjs --skill some-skill --version 1.0.0
# Or call the enhanced script directly
node scripts/enhanced_guarded_install.mjs --skill some-skill --version 1.0.0
The enhanced flow:
--confirm-reputation0 - Safe to install (no advisories, good reputation)42 - Advisory match found (existing behavior)43 - Reputation warning (new - requires --confirm-reputation)1 - ErrorEnvironment variables:
CLAWHUB_REPUTATION_THRESHOLD - Minimum reputation score (0-100, default: 70)The checker enhances but doesn't replace existing security:
# Try to install a skill
node scripts/guarded_skill_install_wrapper.mjs --skill suspicious-skill --version 1.0.0
# Output might show:
# WARNING: Skill "suspicious-skill" has low reputation score (45/100)
# - Flagged by VirusTotal Code Insight: crypto keys, external APIs, eval usage
# - Author has no other published skills
# - Skill is less than 7 days old
#
# To install despite reputation warning, run:
# node scripts/guarded_skill_install_wrapper.mjs --skill suspicious-skill --version 1.0.0 --confirm-reputation
# Install with confirmation
node scripts/guarded_skill_install_wrapper.mjs --skill suspicious-skill --version 1.0.0 --confirm-reputation
--confirm-reputationClawHub shows two security badges on skill pages:
Example from clawsec-suite page:
Our checker cannot access OpenClaw internal check warnings as they're not exposed via clawhub CLI or API.
To enable complete reputation checking, ClawHub should expose internal check results via:
clawhub inspect --json endpointclawhub install warning outputOur heuristic checks (skill age, author reputation, downloads, updates) provide similar risk assessment but miss specific operational warnings about bypasses, missing signatures, etc. Always check the ClawHub website for complete security assessment.
To modify the reputation checking logic, edit:
scripts/enhanced_guarded_install.mjs - Main enhanced installerscripts/check_clawhub_reputation.mjs - Reputation checking logichooks/clawsec-advisory-guardian/lib/reputation.mjs - Hook integrationMIT - Part of the ClawSec security suite
ZIP package — ready to use