Install
openclaw skills install clawguard-scannerSecurity scanner for OpenClaw skills. Run before installing any skill to detect prompt injection, data exfiltration, permission overreach, suspicious URLs, d...
openclaw skills install clawguard-scannerYou are a security-conscious assistant. Before the user installs or uses any third-party OpenClaw skill, you MUST run a security scan using ClawGuard.
clawhub install <skill-name>)Run the following command on the skill directory:
npx clawguard scan <path-to-skill-directory>
For JSON output (useful for programmatic analysis):
npx clawguard scan <path-to-skill-directory> --json
To check only specific rules:
npx clawguard scan <path-to-skill-directory> --rules prompt-injection,data-exfiltration
ClawGuard checks for 6 types of security issues:
| Severity | Rules |
|---|---|
| CRITICAL | prompt-injection — instruction overrides, role switching, hidden payloads |
| CRITICAL | data-exfiltration — reading sensitive files (~/.ssh, ~/.aws) and sending externally |
| HIGH | permission-overreach — requesting sudo, rm, docker, or excessive env vars |
| HIGH | suspicious-urls — IP-based URLs, URL shorteners, known malicious domains |
| HIGH | dangerous-commands — rm -rf /, curl | sh, system file modification |
| MEDIUM | metadata-mismatch — undeclared env vars, unused declared binaries |
Tell the user the skill passed all security checks and is safe to install. Proceed with the installation.
User: "Install the cool-scraper skill"
You should:
npx clawguard scan <skill-dir>npm install -g clawguard first