← 返回
安全合规 中文

Skill Install Guardian

Security and due diligence layer for installing external skills from ClawHub. Performs DEEP content scanning for malicious patterns, security checks, integra...
用于安装ClawHub外部技能的安全与尽职调查层。对恶意模式执行深度内容扫描、安全检查及完整性验证。
zendenho7
安全合规 clawhub v1.3.0 1 版本 99798.8 Key: 无需
★ 0
Stars
📥 992
下载
💾 11
安装
1
版本
#ai#due-diligence#installation#latest#security

概述

Skill Install Guardian

> "Trust but verify. Always."

This skill protects your workspace by performing security and due diligence checks before installing any external skill.


Purpose

Before installing any external skill from ClawHub, this skill:

  1. Deep Content Scan - Fetches and analyzes actual file contents for malicious patterns
  2. Verifies the skill is safe (security checks via ClawHub API)
  3. Analyzes file metadata from ClawHub (filenames, structure)
  4. Checks if it fits your architecture (integration check)
  5. Reports findings to owner
  6. Requires confirmation before install

Deep Content Scanning

What It Does

This skill performs actual content analysis on skill files:

  • Fetches SKILL.md and script files (.py, .js, .sh)
  • Scans for dangerous patterns in file contents
  • Detects: command injection, API keys, hardcoded secrets, obfuscated code

Security Patterns Detected

PatternSeverityExample
----------------------------
eval()CRITICALCode execution
exec()CRITICALCode execution
subprocessHIGHShell commands
API keys/tokensCRITICALsk-xxx, ghp_xxx
base64 decodeMEDIUMObfuscation
__import__MEDIUMDynamic imports

⚠️ Security Notes

  • Does NOT execute any fetched code - only analyzes text
  • Can produce false positives - always review findings
  • Owner must confirm - automated check, not definitive
  • Read-only - only fetches and scans, never executes

Workflow

Phase 1: Security Check v1 - ClawHub Report

# Get skill security report
npx clawhub inspect <skill-slug> --security

What to check:

  • Known vulnerabilities
  • Malicious code patterns
  • Suspicious API calls
  • Data exfiltration risks

Action if flagged: → ABORT immediately


Phase 2: Security Check v2 - Code Analysis

# Fetch skill files
npx clawhub inspect <skill-slug> --files

# Analyze each file for:
# - Prompt injection patterns
# - Suspicious API calls (curl, fetch to unknown domains)
# - Hardcoded secrets/keys
# - Eval() or code execution
# - Base64 encoded strings (potential obfuscation)
# - External network calls without justification

Analysis criteria:

PatternRisk LevelAction
-----------------------------
eval(CRITICALABORT
subprocess without paramsHIGHFlag for review
curl to unknown domainHIGHFlag for review
Hardcoded API keyCRITICALABORT
Base64 encoded blobMEDIUMFlag for review
External URL fetchMEDIUMFlag for review
Clean codeLOWPass

Assumption: All external skills are potentially malicious until proven otherwise.


Phase 3: Integration Check - Architecture Fit

Questions to answer:

  1. Purpose: Does this skill solve a real need?
  2. Conflict: Does a similar skill already exist?
  3. Value: Will this be used, or just clutter?
  4. Architecture: Does it fit the workspace structure?

Check existing skills:

npx clawhub search <related-topic>
ls skills/*/SKILL.md | xargs grep -l "<topic>"

Conflict detection:

  • Similar functionality → Flag as potential duplicate
  • No clear use case → Flag as low value

Phase 4: Report to Owner

Generate a report with:

## Skill Install Report: <skill-name>

### Security Status
- [ ] PASSED / [ ] FAILED

### Security Details
- ClawHub report: <status>
- Code analysis: <findings>

### Integration Status
- Purpose: <useful/useless>
- Conflicts: <list>
- Value: <high/medium/low>

### Recommendation
[PROCEED] / [ABORT] / [REVIEW]

### Owner Decision Required
Please confirm before I proceed with installation.

Usage

Run Full Security Check

python3 skills/skill-install-guardian/scripts/check.py <skill-slug>

Quick Check (skip analysis)

python3 skills/skill-install-guardian/scripts/check.py <skill-slug> --quick

Install After Approval

npx clawhub install <skill-slug>

Integration with Workflow

Before Any Install

1. Owner: "Install skill X"
2. Me: Run skill-install-guardian
3. Guardian: Security Check v1
4. Guardian: Security Check v2 (if v1 passes)
5. Guardian: Integration Check
6. Guardian: Report to owner
7. Owner: Confirm or abort
8. If confirmed: Install

Output Format

{
  "skill": "example-skill",
  "version": "1.0.0",
  "security": {
    "v1_clawhub": "PASS",
    "v2_code_analysis": {
      "status": "PASS",
      "issues_found": []
    }
  },
  "integration": {
    "purpose": "useful",
    "conflicts": [],
    "value": "high"
  },
  "recommendation": "PROCEED",
  "owner_decision": "PENDING"
}

Safety Principles

Always Assume

  • External skills may contain malicious code
  • Authors may have good intentions but poor security
  • New versions could introduce threats
  • Hidden payloads may exist in encoded strings

Never

  • Auto-install without owner confirmation
  • Skip security checks for "trusted" authors
  • Assume recent updates are safe
  • Ignore warnings from security tools

Do

  • Verify every skill manually
  • Check recent reviews/issues
  • Search for known vulnerabilities
  • Analyze code even for popular skills

Related Skills

  • [[workspace-analyzer]] - Analyze installed skills
  • [[skill-creator]] - Create skills safely

Changelog

v1.3.0 (2026-02-21)

  • DEEP CONTENT SCANNING - Now actually fetches and scans file contents
  • Scans SKILL.md, .py, .js, .sh files for dangerous patterns
  • Detects: subprocess, API keys, tokens eval(), exec(),, obfuscation
  • Added comprehensive security patterns list
  • Clear security notes about what it does/doesn't do

v1.2.0 (2026-02-21)

  • Fixed documentation to accurately reflect limitations
  • Removed unused curl from required binaries
  • Added limitation notes (no content analysis, reads local skills dir)
  • Clarified this provides warnings, not definitive security

v1.1.0 (2026-02-21)

  • Fixed command injection vulnerability (slug validation)
  • Changed from shell=True to list-based subprocess calls
  • Fixed typo in SAFE_DOMAINS
  • Added slug validation function
  • Stricter handling of invalid slugs

v1.0.0 (2026-02-21)

  • Initial release
  • Two-layer security check
  • Integration analysis
  • Owner confirmation workflow

Security first. Always verify.

版本历史

共 1 个版本

  • v1.3.0 当前
    2026-03-29 10:24 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,211 📥 266,254
developer-tools

Scrapling

zendenho7
自适应网页爬取框架,支持反爬绕过和爬虫爬行
★ 6 📥 6,034
security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,592