How to Audit Claude Code Plugins, Skills and Hooks

A Claude Code plugin is a folder from a git-hosted marketplace that can add skills, slash commands, subagents, MCP servers and hooks, and hooks run shell commands automatically. This guide shows where each piece lives, how to review them on a machine, and which managed settings limit them.

By Kuntur team · Published

What a plugin can contain

ComponentWhat it doesRuns code?
Skills (skills/*/SKILL.md)Instructions and resources the agent loads when relevant; can include helper scriptsThe agent may run bundled scripts through its tools
Slash commands (commands/*.md)Saved prompts the user invokesNo, they are prompts
Subagents (agents/*.md)Specialised agents with their own prompt and tool listThrough their allowed tools
Hooks (hooks/hooks.json)Shell commands run automatically on events such as session start or before and after tool useYes, as the user, without a prompt
MCP servers (.mcp.json or plugin.json)Tools the agent can callYes, local servers are processes

Marketplaces are git repositories (or URLs and local paths) that list plugins. Anthropic publishes official ones; anyone can publish another, and a project's .claude/settings.json can register marketplaces and enable plugins for everyone who trusts that folder.

Where everything lives

WhatLocation
Installed plugins~/.claude/plugins/installed_plugins.json and the plugin folders it points to
Registered marketplaces~/.claude/plugins/known_marketplaces.json
Enabled or disabled per scopeenabledPlugins in user, project or local settings
User skills, subagents, commands~/.claude/skills/, ~/.claude/agents/, ~/.claude/commands/
Project skills, subagents, commands.claude/skills/, .claude/agents/, .claude/commands/ in the repository
Hooks outside pluginshooks key in ~/.claude/settings.json, .claude/settings.json, .claude/settings.local.json

On Windows, ~ is %USERPROFILE%. Skills and plugins can also arrive from an organization's claude.ai account to the desktop app; those land in synced folders under ~/.claude.

List what is installed

Read-only, run as the user (macOS, Linux, or Git Bash/WSL pointed at the Windows profile):

# Installed plugins (name@marketplace) and whether they are enabled
jq -r '.plugins | keys[]' ~/.claude/plugins/installed_plugins.json 2>/dev/null
jq -r '.enabledPlugins // {} | to_entries[] | "\(.key)\t\(.value)"' ~/.claude/settings.json 2>/dev/null

# Marketplaces the user added, and where they come from
jq -r 'to_entries[] | "\(.key)\t\(.value.source.repo // .value.source.url // .value.source.path)"' \
  ~/.claude/plugins/known_marketplaces.json 2>/dev/null

# User-level skills, subagents and slash commands
ls ~/.claude/skills/*/SKILL.md ~/.claude/agents/*.md ~/.claude/commands/*.md 2>/dev/null

# Hooks: user settings and every installed plugin
jq '.hooks // empty' ~/.claude/settings.json 2>/dev/null
find ~/.claude/plugins -path '*hooks/hooks.json' 2>/dev/null

Review hooks and skills

Hooks are the part to read line by line. A hook that formats code after an edit is routine; a hook that sends the transcript, the diff or environment variables to a URL is data leaving the machine on every event, with no prompt. Malware uses hooks too: in November 2026 the strutil-core gem added SessionStart hooks to AI tool settings so it would run again with every session (how to check for it). Several npm packages do the same with SessionEnd, PreToolUse and PostToolUse hooks; see npm packages that hijack Claude Code, Cursor and Codex.

# Hook commands that reach the network (curl, wget, Invoke-WebRequest, raw URLs)
{ jq -r '.. | .command? // empty' ~/.claude/settings.json 2>/dev/null
  find ~/.claude/plugins -path '*hooks/hooks.json' -exec jq -r '.. | .command? // empty' {} \; 2>/dev/null
} | grep -nEi 'curl|wget|invoke-webrequest|iwr |https?://'

# Scripts shipped inside skills (skills can include executable helpers)
find ~/.claude/skills ~/.claude/plugins -path '*skills*' -type f \( -name '*.sh' -o -name '*.py' -o -name '*.js' -o -name '*.ps1' \) 2>/dev/null

For skills, read SKILL.md for instructions that tell the agent to fetch remote content, disable checks or handle credentials, and read any bundled scripts as you would any downloaded code. Plugin MCP servers get the same review as any other; see the MCP security checklist or paste the plugin's .mcp.json into the MCP config auditor.

Restrict them with managed settings

Claude Code's managed settings (deployed by file, MDM or the claude.ai admin console) include keys made for this:

{
  "strictKnownMarketplaces": [
    { "source": "github", "repo": "anthropics/claude-plugins-official" },
    { "source": "github", "repo": "acme-corp/claude-plugins" }
  ],
  "allowManagedHooksOnly": true
}

Check the settings reference for the exact value format on your version before deploying; the marketplace names above are examples.

The same idea in other agents

Codex keeps skills and prompts under ~/.codex/ and plugins in config.toml; Gemini CLI and Qwen Code install extensions under ~/.gemini/extensions/ and ~/.qwen/extensions/, each with a manifest that can declare MCP servers; Cursor uses .cursor/rules and commands; GitHub Copilot reads .github/copilot-instructions.md and prompt files. Repositories increasingly carry AGENTS.md, CLAUDE.md or GEMINI.md. All of these are instructions an agent will follow, which makes them worth an inventory.

Automate it

On one machine, the free Kuntur scanner lists Claude Code plugins with their marketplace, the skills, subagents, commands, hooks and MCP servers inside each plugin, user and project skills, and extensions of Codex, Gemini CLI and Qwen Code.

  1. Download scan.ps1.
  2. Read it. It's plain text; here's what it does.
  3. Check its SHA-256 against the published hash: Get-FileHash .\scan.ps1 -Algorithm SHA256
  4. Run it: powershell -ExecutionPolicy Bypass -File .\scan.ps1

Windows shortcut, if you trust the source (PowerShell)

irm https://app.kuntur.io/scan.ps1 | iex

macOS and Linux (Terminal)

curl -fsSL https://app.kuntur.io/scan.sh | sh

It needs no account and no admin rights, writes an HTML report to the Desktop (or home folder) and uploads nothing. You can read scan.ps1 or scan.sh before running it; what it collects is documented.

Across a fleet, the Kuntur agent raises PLUGIN_THIRD_PARTY_MARKETPLACE for marketplaces outside anthropics/* and PLUGIN_HOOK_NETWORK when a hook command uses curl, wget, Invoke-WebRequest or a URL, with secrets in the command redacted. You approve or reject each plugin once and keep an audit trail; enforcement stays with the managed settings above.

Free for up to 5 endpoints. Pro is US$3 per endpoint per month (or US$30 per endpoint per year) for 10 to 30 endpoints. The trial needs no credit card. Kuntur detects and reports; it does not block or uninstall anything.

FAQ

Do Claude Code hooks run without asking?
Yes. Hooks are shell commands that run automatically on the events they are registered for, with the user's permissions. That is why allowManagedHooksOnly exists.
Where are Claude Code plugins installed?
They are listed in ~/.claude/plugins/installed_plugins.json, with marketplaces in ~/.claude/plugins/known_marketplaces.json.
Can I restrict which plugin marketplaces developers use?
Yes, with the strictKnownMarketplaces managed setting, which allowlists marketplace sources.
Are skills dangerous?
A skill is mostly instructions, but it can bundle scripts the agent runs, and its instructions can steer the agent. Review third-party skills like any downloaded code.

Sources

  1. Claude Code docs: Plugins
  2. Claude Code docs: Plugin marketplaces
  3. Claude Code docs: Hooks reference
  4. Claude Code docs: Agent skills
  5. Claude Code docs: Settings reference

More guides and tools: