Claude Code plugin security: what a plugin can run, and how to check it
Installing a plugin is closer to running an install script than to adding a bookmark. The files you review can change later, and the code they run is not covered by the permission rules you set for Claude's tool calls.
This page owns trust: what a plugin can reach, how to check one, and how to get rid of one. The plugins guide owns installing and enabling, and the publish guide owns shipping your own.
Sources read November 26, 2026. By the Omniscio team. Updated .
What an installed plugin can do
A plugin carries two kinds of content: things that run code on your machine, and things that enter Claude's context as instructions. Both matter before you install.
MCP is the Model Context Protocol and LSP is the Language Server Protocol.
| Part of the plugin | What it does once installed |
|---|---|
| Hooks | Run as shell commands at points in Claude Code's lifecycle, such as before or after a tool call |
| Monitors | Run as background shell commands that Claude Code starts on its own at session start, on a plugin reload, or the first time a named skill runs |
| Mods | Run JavaScript inside Claude Code with your permissions |
| MCP and LSP servers | A stdio MCP server runs as a process Claude Code starts on your machine; Claude Code also starts the language servers the plugin declares |
bin/ | Added to the Bash tool's PATH, so Claude's Bash commands can run any executable in it |
| Skills, commands and agents | Enter Claude's context as instructions, so they influence what Claude does with the tools it already has |
| Updates | When auto-update is on for that marketplace, the files you reviewed can change on disk in the background |
The boundary that surprises people: Claude Code's permission rules and sandbox cover the tool calls Claude makes, not the code a plugin runs by itself. Hooks, monitors, MCP servers, LSP servers and the processes a mod starts all run outside the sandbox, with your full user permissions. A call to one of the plugin's MCP tools, and a Bash command that runs an executable from the plugin's bin/, are tool calls, so your rules do apply to those.
Installing also enables the plugin, unless its manifest or marketplace entry sets defaultEnabled: false and you have not enabled it yourself.
Auto-update is per marketplace. When it is on, the plugins guide covers where to check it and turn it off.
Which marketplaces are Anthropic's
A marketplace's name places it in one of three tiers. Claude Code accepts the official and community names only for marketplaces sourced from github.com/anthropics/ repositories, and a marketplace a coworker or your organization publishes is third-party.
| Tier | Which marketplaces |
|---|---|
| Official | The official names below, such as claude-plugins-official |
| Community | claude-community, claude-plugins-community, and healthcare |
| Third-party | Every other marketplace |
The official names are claude-plugins-official, claude-code-marketplace, claude-code-plugins, anthropic-marketplace, anthropic-plugins, agent-skills, anthropic-agent-skills, life-sciences, knowledge-work-plugins, claude-for-legal, claude-for-financial-services, financial-services-plugins, first-party-plugins and claude-tag-plugins.
Where the claude-community catalog pins a plugin to a commit SHA — which it does for nearly every entry — Claude Code refuses to install a different commit. That pin is about which commit is fetched, not about whether the code inside it is safe.
Review a plugin before you install it
Four checks, in the order that costs least first. Run them whatever marketplace the plugin comes from.
1. Check the marketplace's source
claude plugin marketplace listThe command prints the source each marketplace was added from, such as a GitHub repository or a directory.
2. Read the details pane
In a session, run /plugin and select the plugin. The Will install section lists its commands, agents, skills, hooks, and MCP and LSP servers. For a plugin Anthropic has no published component data for, the section shows what the marketplace entry declares, or a note: Components will be discovered at installation for a plugin stored inside the marketplace, or Component summary not available for remote plugin for one fetched elsewhere.
3. Read the plugin's source
In the details pane, select Open homepage or View on GitHub. If the pane offers neither, open the marketplace repository you found in step 1 and find the plugin's directory there. When the pane has component data, the Will install section shows that a hook exists but not what it runs, so read these three things in the plugin's directory:
hooks/hooks.json, for the command each hook runs.mcp.json, for each server's command or URLbin/, for every file in the directory
4. List what the plugin contains
Clone the repository that holds the plugin's directory, then run this from your shell. It reads the plugin's files without starting a session and prints a Component inventory listing the plugin's skills and commands, agents, hooks with each hook's event, and MCP and LSP servers.
claude --plugin-dir <plugin directory> plugin details <plugin name>After you install, claude plugin details <plugin name> prints the same inventory for the installed copy under ~/.claude/plugins/cache/<marketplace>/<plugin>/<version>/.
Remove a plugin you no longer trust
claude plugin uninstall <plugin> --scope <scope>Then check what the uninstall removed and what it left:
- Persistent data: deleted by default when that was the last scope the plugin was installed at.
--keep-datakeeps it. - Cached files: stay under
~/.claude/plugins/cache/for 14 days before a background sweep removes them. To delete them now, remove the plugin's directory under~/.claude/plugins/cache/<marketplace>/<plugin>/yourself. After you uninstall your last plugin, orphaned directories stay until you install another plugin. - The marketplace: if you do not trust its owner either, remove the marketplace too, which uninstalls every plugin you installed from it.
When Claude Code warns or refuses
Every plugin shows the same trust warning in the details pane, whatever marketplace it comes from: plugins can run code on your computer with access to your files and shell, Anthropic does not control what MCP servers, files or other software they include, and you should check the plugin's homepage. If your organization sets pluginTrustMessage in managed settings, Claude Code appends that text to the warning.
It refuses rather than warns in cases such as these, each with its own message:
- Marketplace is registered from an untrusted source: a marketplace uses an official or community name but is sourced from outside
github.com/anthropics/. Claude Code stops loading the marketplace and the plugins you installed from it. - Plugin archive integrity check failed: a marketplace entry pins an
archivesource to asha256digest and the downloaded file does not match. The install is refused.
Controls for an organization
With managed settings (the settings an organization deploys), an administrator can enforce these plugin controls:
- Allowlist or blocklist marketplace sources
- Force-enable plugins
- Turn off the
--plugin-dirand--plugin-urlflags and theCLAUDE_CODE_PLUGIN_DIRSvariable - Limit hooks to those from managed settings and force-enabled plugins
- Stop plugins from members' claude.ai accounts from loading, with
syncClaudeAiPlugins
What telemetry reports
If your organization exports OpenTelemetry, the plugin loaded event reports official-tier names as they are and reports community and third-party plugin and marketplace names as the literal string third-party unless OTEL_LOG_TOOL_DETAILS=1 is set. The plugin installed event omits the name fields for non-official plugins unless that variable is set, and the Analytics API reports the official and community tiers by name and every other plugin as third-party.
Sources
Every line on this page rests on this page of Anthropic's documentation, read on the date beside it.
- Plugin security and trust, for what a plugin can run, the marketplace tiers and names, the review steps, uninstall behaviour, the trust warning, the refusals, the organization controls and the telemetry naming. Read November 26, 2026.
No plugin was installed or reviewed for this page. Every command, path and message is transcribed from that page.
Common questions
Can a Claude Code plugin run commands on my machine?
Yes. A plugin can carry hooks and monitors that run as shell commands, mods that run JavaScript, stdio MCP servers and LSP servers that Claude Code starts, and executables in its bin/ directory, all with your user privileges. Claude Code's permission rules and sandbox cover the tool calls Claude makes, not the code a plugin runs by itself.
Which Claude Code marketplaces are Anthropic's?
Official names include claude-plugins-official, claude-code-marketplace, claude-code-plugins, anthropic-marketplace, anthropic-plugins, agent-skills, anthropic-agent-skills, life-sciences, knowledge-work-plugins, claude-for-legal, claude-for-financial-services, financial-services-plugins, first-party-plugins and claude-tag-plugins. Community names are claude-community, claude-plugins-community and healthcare. Every other marketplace is third-party.
How do I check a Claude Code plugin before installing it?
Run claude plugin marketplace list to see where the marketplace came from, open /plugin and read the Will install section, read the plugin's hooks/hooks.json, .mcp.json and bin/ directory in its repository, and run claude --plugin-dir on the plugin's directory, then plugin details with its name, for a full component inventory without starting a session.
Does uninstalling a Claude Code plugin delete its files?
Its cached files stay under ~/.claude/plugins/cache/ for 14 days before a background sweep removes them, and you can delete them yourself. Persistent data is deleted when that was the last scope you installed it at, unless you keep it; after you uninstall your last plugin, orphaned directories stay until you install another plugin.
Why does Claude Code refuse a marketplace or a plugin install?
Two cases. A marketplace that uses an official or community name but is sourced from outside github.com/anthropics/ stops loading, with Marketplace is registered from an untrusted source. And when a marketplace entry pins an archive to a sha256 digest and the downloaded file does not match, the install is refused with Plugin archive integrity check failed.
Every session, one window
Omniscio runs several agent sessions side by side in one window, each with its own context and its own diff view. Any model, any harness: Claude Code, Codex, OpenCode, Devin, Pi, and Hermes all supported.