| name | clawsec-clawhub-checker |
| version | 0.0.1 |
| description | ClawHub reputation checker for ClawSec suite. Enhances guarded skill installer with VirusTotal Code Insight reputation scores and additional safety checks. |
| homepage | https://clawsec.prompt.security |
| clawdis | {"emoji":"🛡️","requires":{"bins":["clawhub","curl","jq"]},"depends_on":["clawsec-suite"]} |
ClawSec ClawHub Checker
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.
What It Does
- Wraps
clawhub install - Intercepts skill installation requests
- Checks VirusTotal reputation - Uses ClawHub's built-in VirusTotal Code Insight
- Adds double confirmation - For suspicious skills (reputation score below threshold)
- Integrates with advisory feed - Works alongside existing clawsec-suite advisories
- Provides detailed reports - Shows why a skill is flagged as suspicious
Installation
This skill must be installed after clawsec-suite:
npx clawhub@latest install clawsec-suite
npx clawhub@latest install clawsec-clawhub-checker
node ~/.openclaw/skills/clawsec-clawhub-checker/scripts/setup_reputation_hook.mjs
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.
How It Works
Enhanced Guarded Installer
After setup, run the wrapper (drop-in path) or the enhanced script directly:
node scripts/guarded_skill_install_wrapper.mjs --skill some-skill --version 1.0.0
node scripts/enhanced_guarded_install.mjs --skill some-skill --version 1.0.0
The enhanced flow:
- Advisory check (existing) - Checks clawsec advisory feed
- Reputation check (new) - Queries ClawHub for VirusTotal scores
- Risk assessment - Combines advisory + reputation signals
- Double confirmation - If risky, requires explicit
--confirm-reputation
Reputation Signals Checked
- VirusTotal Code Insight - Malicious code patterns, external dependencies (Docker usage, network calls, eval usage, crypto keys)
- Skill age & updates - New skills vs established ones
- Author reputation - Other skills by same author
- Download statistics - Popularity signals
Exit Codes
0 - Safe to install (no advisories, good reputation)
42 - Advisory match found (existing behavior)
43 - Reputation warning (new - requires --confirm-reputation)
1 - Error
Configuration
Environment variables:
CLAWHUB_REPUTATION_THRESHOLD - Minimum reputation score (0-100, default: 70)
Integration with Existing Suite
The checker enhances but doesn't replace existing security:
- Advisory feed still primary - Known malicious skills blocked first
- Reputation is secondary - Unknown/suspicious skills get extra scrutiny
- Double confirmation preserved - Both layers require explicit user approval
Example Usage
node scripts/guarded_skill_install_wrapper.mjs --skill suspicious-skill --version 1.0.0
node scripts/guarded_skill_install_wrapper.mjs --skill suspicious-skill --version 1.0.0 --confirm-reputation
Safety Notes
- This is a defense-in-depth layer, not a replacement for advisory feeds
- VirusTotal scores are heuristic, not definitive
- False positives possible - Legitimate skills with novel patterns might be flagged
- Always review skill code before installing with
--confirm-reputation
Current Limitations
Missing OpenClaw Internal Check Data
ClawHub shows two security badges on skill pages:
- VirusTotal Code Insight - ✅ Our checker catches these flags
- OpenClaw internal check - ❌ Not exposed via API (only on website)
Example from clawsec-suite page:
- VirusTotal: "Benign" ✓
- OpenClaw internal check: "The package is internally consistent with a feed-monitoring / advisory-guardian purpose, but a few operational details and optional bypasses deserve attention before installing."
Our checker cannot access OpenClaw internal check warnings as they're not exposed via clawhub CLI or API.
Recommendation for ClawHub
To enable complete reputation checking, ClawHub should expose internal check results via:
clawhub inspect --json endpoint
- Additional API field for security tools
- Or include in
clawhub install warning output
Workaround
Our 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.
Development
To modify the reputation checking logic, edit:
scripts/enhanced_guarded_install.mjs - Main enhanced installer
scripts/check_clawhub_reputation.mjs - Reputation checking logic
hooks/clawsec-advisory-guardian/lib/reputation.mjs - Hook integration
License
MIT - Part of the ClawSec security suite