| 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":["[Truncated]"]}} |
๐ Crabukit
Security scanner for OpenClaw skills. Prevents installation of malicious or vulnerable skills by static analysis. Integrates with Clawdex for comprehensive protection.
Quick Start
crabukit install youtube-summarize
crabukit scan ./suspicious-skill/
crabukit scan /opt/homebrew/lib/node_modules/clawdbot/skills/unknown-skill
crabukit scan ./my-skill --fail-on=high
crabukit list-rules
๐ Clawdex Integration
Crabukit automatically integrates with Clawdex if installed:
clawdhub install clawdex
Layered Protection:
- Clawdex: Database of known-bad skills (fast lookup)
- Crabukit: Behavior analysis for zero-days (static analysis)
What It Detects
| Category | Issues |
|---|
| External DB | Known malicious skills (via Clawdex) |
| Secrets | Hardcoded API keys, private keys, passwords |
| Code Injection | eval(), exec(), subprocess(shell=True) |
| Shell Risks | curl | bash, rm -rf, unquoted variables |
| Permissions | Dangerous tool requests without safety guidance |
| Metadata | Suspicious patterns in SKILL.md descriptions |
Risk Scoring
Crabukit assigns a score (0-100) based on findings:
| Score | Level | Action |
|---|
| 0 | Clean | Safe to install |
| 1-9 | Low | Minor issues |
| 10-24 | Medium | Review findings |
| 25-49 | High | Careful review required |
| 50+ | Critical | Do 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
- name: Scan skill
run: |
pip install crabukit
crabukit scan ./my-skill --fail-on=medium
Installation
clawdhub install crabukit
pip install crabukit
git clone https://github.com/tnbradley/crabukit.git
cd crabukit
pip install -e .