ClawVet

Static and install-time security scanner for AI agent skills, rules, hooks, plugins, and MCP configs (OpenClaw, Claude Code, Cursor, Codex, Windsurf, Gemini CLI). ClawVet vets SKILL.md and every bundled script it references for prompt injection, credential theft, remote code execution, typosquatting, and rug-pull updates. It runs fully offline by default, with optional LLM (--semantic) and OSV.dev (--osv) passes when you turn them on.
Try it with zero install: clawvet.vercel.app (100% client-side WebAssembly Tree-sitter AST dataflow, nothing uploaded).

Quick start
# Install once, then run the copy you installed
npm install -g clawvet
# Audit all installed skills, rules, hooks, plugins & MCP configs on your machine (prints Machine Permissions Summary)
clawvet audit --summary
# One-command setup: OpenClaw installPolicy plus edit guards for Claude Code, Codex and Cursor (supports --dry-run)
clawvet init
# Scan a single skill (prints grade, Permissions summary, and findings)
clawvet scan ./my-skill/
# JSON output for CI/CD
clawvet scan ./my-skill/ --format json --fail-on high
# Download a whole bundle from ClawHub (or a GitHub URL) and scan it
clawvet scan weather-forecast --remote
scan --format json has a versioned schema and fixed exit codes: 0 pass, 1 the scan ran and failed, 2 the scan could not run. See docs/json-schema.md. To run ClawVet as a ClawScan scanner, see integrations/clawscan.
Install globally rather than running npx clawvet: a fresh npx fetch executes whatever version the registry serves at that moment, and cache cleanup breaks gate configs. Update deliberately with npm update -g clawvet, and verify signed npm provenance with npm view clawvet dist.attestations.
What audit reads and init sets up
clawvet audit reads the same files the agents load. Hook commands, MCP server commands and plugin monitors are scanned as shell. When a hook names a script inside the repo, plugin or config folder it runs from (for example "${CLAUDE_PLUGIN_ROOT}"/scripts/check.sh), the script is scanned with it. A config that is too large (256 KiB per file, 16 MiB for ~/.claude.json) or does not parse is reported as incomplete and fails the audit. It is never skipped.
| Agent | Files |
|---|
| OpenClaw | skill folders under skills/, .agents/skills/, the state dir and workshop dirs |
| Claude Code | skills, commands/, agents/ (subagent frontmatter hooks and MCP servers too), CLAUDE.md, settings.json hooks, installed plugins (plugin.json, hooks/hooks.json, .mcp.json, .lsp.json, monitors, plugin skills, agents and commands), marketplace catalogs |
| Codex | skills, AGENTS.md, hooks.json and config.toml ([hooks] and [mcp_servers.*]) in the repo's .codex/ and in $CODEX_HOME |
| Cursor | .cursorrules, .cursor/rules/, .cursor/hooks.json in the repo and in your home folder |
| Gemini CLI | hooks and mcpServers in .gemini/settings.json, project and user |
| Windsurf | .windsurfrules, .windsurf/rules/ |
| MCP | .mcp.json, .cursor/mcp.json, .vscode/mcp.json (JSONC and inputs allowed), the VS Code user mcp.json, Copilot's mcp-config.json, ~/.claude.json (user and per-project servers), Claude Desktop, Windsurf mcp_config.json |
Use --ecosystem <name> to audit one of them.
clawvet init adds a guard hook to each agent it finds. The hook scans a file the agent just wrote when that file is a skill, rule, hook config or MCP config, and warns about anything graded C or worse. Ordinary source files are ignored.
| Agent | Where | Event |
|---|
| Claude Code | ~/.claude/settings.json | PostToolUse, matcher Write|Edit |
| Codex | $CODEX_HOME/hooks.json (default ~/.codex) | PostToolUse, matcher apply_patch|Edit|Write |
| Cursor | ~/.cursor/hooks.json | afterFileEdit |