跳至主要内容
小龙虾小龙虾AI
🔒

Crabukit

Security scanner for OpenClaw skills with Clawdex integration. Analyzes SKILL.md and scripts for dangerous permissions, hardcoded secrets, shell injection vu...

下载1.2k
星标2
版本0.1.3
安全合规
安全通过

技能说明


name: crabukit description: Security scanner for OpenClaw skills with Clawdex integration. Analyzes SKILL.md and scripts for dangerous permissions, hardcoded secrets, shell injection vulnerabilities, and malicious code patterns. Automatically uses Clawdex database if installed for known-malicious skill detection. Use when (1) installing a skill from an untrusted source, (2) developing a skill before publishing, (3) auditing installed skills, or (4) running CI/CD security checks. metadata: clawdbot: emoji: "🔒" category: "security" files: - "pyproject.toml" - "crabukit//*.py" - "scripts//" - "tests/**/" - "README.md" - "LICENSE" - "CHANGELOG.md" install: - id: pip kind: pip package: . bins: [crabukit] label: Install crabukit from source

🔒 Crabukit

Security scanner for OpenClaw skills. Prevents installation of malicious or vulnerable skills by static analysis. Integrates with Clawdex for comprehensive protection.

Quick Start

# Safely install a skill (scans before installing)
crabukit install youtube-summarize

# Scan a local skill before installing
crabukit scan ./suspicious-skill/

# Scan an installed skill
crabukit scan /opt/homebrew/lib/node_modules/clawdbot/skills/unknown-skill

# CI mode - fail on high severity or above
crabukit scan ./my-skill --fail-on=high

# List all detection rules
crabukit list-rules

🔌 Clawdex Integration

Crabukit automatically integrates with Clawdex if installed:

# Install Clawdex for database-based protection
clawdhub install clawdex

# Now crabukit will:
# 1. Check Clawdex database (known 824+ malicious skills)
# 2. Run behavior analysis (zero-day detection)
# → Defense in depth!

Layered Protection:

  • Clawdex: Database of known-bad skills (fast lookup)
  • Crabukit: Behavior analysis for zero-days (static analysis)

What It Detects

CategoryIssues
External DBKnown malicious skills (via Clawdex)
SecretsHardcoded API keys, private keys, passwords
Code Injectioneval(), exec(), subprocess(shell=True)
Shell Riskscurl | bash, rm -rf, unquoted variables
PermissionsDangerous tool requests without safety guidance
MetadataSuspicious patterns in SKILL.md descriptions

Risk Scoring

Crabukit assigns a score (0-100) based on findings:

ScoreLevelAction
0CleanSafe to install
1-9LowMinor issues
10-24MediumReview findings
25-49HighCareful review required
50+CriticalDo not install

Exit Codes

  • 0 - Scan completed, no findings at or above --fail-on threshold
  • 1 - Findings at or above threshold detected

CI/CD Integration

# .github/workflows/security.yml
- name: Scan skill
  run: |
    pip install crabukit
    crabukit scan ./my-skill --fail-on=medium

Installation

# Via ClawdHub (when published)
clawdhub install crabukit

# Or via pip
pip install crabukit

# Or from source
git clone https://github.com/tnbradley/crabukit.git
cd crabukit
pip install -e .

如何使用「Crabukit」?

  1. 打开小龙虾AI(Web 或 iOS App)
  2. 点击上方「立即使用」按钮,或在对话框中输入任务描述
  3. 小龙虾AI 会自动匹配并调用「Crabukit技能完成任务
  4. 结果即时呈现,支持继续对话优化

相关技能