/plugin-audit:plugin-security-scanfrom plugin-audit
Use when the user asks whether their installed Claude Code plugins, skills, hooks or MCP servers are safe, before or after installing a new plugin or marketplace, or when a hook, skill or MCP server behaves unexpectedly (network calls, reads of secrets, odd instructions).
Ships in plugin-audit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Read-only. A plugin's hooks run as you, with your files and your network, on every event they match. A SKILL.md is text Claude obeys. Audit both. The script finds candidates; you confirm each one by reading the line.
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/scan.py" > <scratchpad>/plugin-scan.txt from the project root. Roots: installed plugins (installPath in ~/.claude/plugins/installed_plugins.json), ~/.claude/plugins/synced, ~/.claude/skills, ~/.claude/settings*.json, and .claude/, plugins/, skills/, .mcp.json in the current directory. --root DIR ... scans other places. Uninstalled catalog entries in ~/.claude/plugins/marketplaces/ are skipped on purpose.scan.py --inventory: every hook (event, matcher, command) and MCP server. A finding in a file a hook or MCP server runs outranks the same finding in a doc.| Area | Ask |
|---|---|
| Hooks | Which events and matchers? .* or * on PreToolUse/PostToolUse runs on every tool call. Inline node -e/bash -c hides logic. Does it send data out, and is that gated by an env var the user set? |
| Network out | Which host, what payload (prompt, tool input, file contents, env)? Telemetry on by default? |
| Secrets | Reads .env, ~/.ssh, ~/.aws, keychain, or API-key env vars and then calls the network? Key-shaped literals outside tests? |
| Prompt text | SKILL.md, agents or commands telling Claude to ignore the user, hide actions, skip permission checks, or send data to a URL? |
| Permissions | bypassPermissions, bare Bash or Bash(*) in allow, --dangerously-skip-permissions run by a script? |
| MCP | npx/uvx/bunx with no version pin or @latest: the next publish runs with your rights. Remote url servers: who runs them? |
| Remote fetch | curl | sh, raw.githubusercontent.com/.../main/, pip install git+... with no commit: code that can change under you. |
| Provenance | Marketplace owner known? gitCommitSha present in installed_plugins.json? |
bypassPermissions or bare Bash allow; curl | sh in a hook; a real key in a loaded file.<file>:<line> [SEVERITY] <rule>
Runs when: <hook event+matcher | MCP start | Claude reads the skill | never (doc/test)>
Risk: <who> gets <what> because <why>
Fix: <pin to x.y.z | remove allow entry | uninstall plugin | set env var off>
Secrets: report file:line and type only (anthropic key, aws key). Never print or paste the value.
## Verdict: CLEAN | REVIEW | REMOVE <plugin>
Scanned: <roots>, <n> files. Candidates: Critical a, High b, Medium c, Low d.
### Confirmed findings
### Dismissed candidates (one line each: file:line, why)
### Not checked
.env, key or credential files; the script skips them.Key decisions in this skill: a Critical or High verdict, recommending that a plugin be removed, and dismissing a High candidate in a hook as benign.
Before acting on one, get a second opinion: call the Agent tool with model: "opus" (subagent_type Plan, read-only). Give it the decision, each option in one line, the evidence (file:line, the hook event and matcher, the code around the line) and the constraints. Ask for a pick, the main risk of that pick, and what would change its mind. Do not send secrets or .env contents.
Advisor: <decision> -> <pick> (<agreed | overruled because ...>).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ashishyd/ashish-claude-skills --plugin plugin-audit2 skills in this plugin