Sign in
Blog

Are Claude skills safe? What to check before you install

10 min read

A dark cable running through a dark file card on an orange background, with one line of the file highlighted in white where the cable passes

TL;DR

  • Not automatically. A skill can direct Claude to call tools or run code in ways its description never mentions. Read it first, as you would a dependency.
  • The big numbers count different things. 157 of 98,380 skills were confirmed malicious, 26.1% had at least one vulnerability, and scanners called 3.8% to 41.9% malicious. None of the three contradicts the others.
  • Read two things before anything else. The allowed-tools field and any line starting !`. Together, they can let a skill run a command with no prompt. That is our reading of the docs, untested.
  • A label is not a safety check. Marketplace names, scanner results and catalog badges each tell you less than they look like. Ask what was checked, then read the files.

The answer Anthropic gives, and ours

Not automatically. A malicious skill can direct Claude to call tools or run code in ways that don't match its stated purpose, so read it first, as you would a dependency. Confirmed malicious skills are a small share in the one study below that verified behavior, though its authors call that count a lower bound. The higher figures people quote count something else.

Anthropic's advice is short: "Use Skills only from trusted sources: those you created yourself or obtained from Anthropic."

We list community components, so we have a stake in this sentence. It is good advice. Our own rule for a community skill: read every file, scripts first, and use a pinned commit. When we reuse an upstream file, we copy it and record its repo, commit and license. Reading and pinning turns a name on a list into exact files you chose to trust. That is our reading, not Anthropic's.

Popularity will not do this for you. Kyle Kingsbury, writing about software in general and not about skills, says the signals we used to rely on as markers of a mature system are now easier to counterfeit. Applying that to star counts and polished READMEs is our step. The field guide makes the same point about files: a README describes intent, and the actual SKILL.md, hooks and scripts show how it works.

What can a skill do on your machine?

A skill is instructions plus optional code. The instructions steer Claude. These parts can act with less friction than you might expect:

PartWhat it doesWhat stops it
Body of SKILL.mdGives Claude instructions, which it follows with the tools it already hasYour permission rules, for each tool call Claude makes
allowed-toolsLets the listed tools run with no prompt during the turn that invokes the skillDeny and ask rules. Workspace trust does not gate it, even in a -p run in a folder you never trusted
!`command`Runs a shell command before the skill content reaches ClaudeYour permission rules. It never prompts. Outside auto mode, anything other than allow aborts the invocation
A bundled scriptRuns with no prompt when it is named in the skill's body and in an allowed-tools Bash ruleDeny and ask rules

Our reading, from the docs and not a test: list a command in allowed-tools, inject it with !, and it runs on invocation with no prompt. A deny or ask rule of yours still stops it. So read before the first invocation.

A plugin can do more. A Claude Code plugin can execute arbitrary code on your machine with your user privileges. Its hooks run as shell commands at points in Claude Code's lifecycle. Permission rules and the sandbox cover the tool calls Claude makes, not the code a plugin runs by itself: hooks, monitors and MCP servers run outside the sandbox.

A skill mostly acts through Claude's tools. A plugin hook does not need Claude to decide anything.

Why do the numbers disagree?

Because they answer different questions. Three preprints get quoted as if they measured one thing:

FigureWhat it countsHow it was found
157 of 98,380, about 0.16% (our arithmetic)Skills with confirmed malicious behaviorPattern matching, then dynamic verification of behavior
26.1% of 31,132Skills with at least one vulnerabilityA scanner the authors report at 86.7% precision and 82.5% recall
5.2% of the same setHigh-severity patterns that strongly suggest malicious intent or create immediate exploitation riskThe same scanner, so "suggest", not "confirmed"
3.8% to 41.9%What five scanners each classified as maliciousFive tools, with only 0.12% of commonly analyzed skills flagged by all of them
0.52% of 2,887Scanner-flagged skill and repository combinations still tied to suspicious repositoriesA re-check with repository context. A share of flagged items, not of all skills

Three corrections follow.

"26% of skills are malicious" is wrong. The authors use "vulnerability" broadly. It covers credential-stealing malware, and it also covers negligent code such as unpinned dependencies and risky patterns such as overly broad file access. They say their detection cannot reliably tell these apart.

"Only 0.16%" is wrong too. The authors call 157 a lower bound. In a 10% sample of the candidates they could not confirm, 93.2% contained dormant triggers. Their 60-second test window can miss delayed payloads, and a sophisticated attacker may detect the test environment and hold back.

None of these numbers describes your install. The 157 and 26.1% studies crawled the same two community registries, skills.rest and skillsmp.com, in January 2026 and December 2025. The scanner study is a separate set of 238,180 skills. The malicious-skills dataset leaves out private repositories, MCP servers and official, platform-curated collections.

We would use 0.16% to say one thing: confirmed cases were a small share of those two public registries at that date.

One detail from that study should change how you shop. Over half of the confirmed cases came from one actor using templated brand impersonation at scale. A familiar name in a listing can be the disguise.

What should you check before you install?

Start with a copy you can read, not an install. These commands are our own illustration and a starting list only: plain git and grep, nothing specific to any catalog. Replace <repo-url> and <skill-dir>. The first grep includes the fenced form of an injected command, a code block opened with three backticks and !.

bash
git clone <repo-url> skill-check
cd skill-check
git rev-parse HEAD                  # note the commit you are about to read
find <skill-dir> -type f            # every file, not only SKILL.md

# fields and lines that can act with no prompt
grep -rnE 'allowed-tools|hooks:|(^|[[:space:]])!`|^`{3}!' <skill-dir>

# network, secrets and encoded blobs
grep -rnE 'curl|wget|https?://|base64|\.env|\.ssh|\.aws' <skill-dir>

# invisible characters (needs a UTF-8 locale)
grep -rnP '[\x{200B}-\x{200D}\x{2060}\x{FEFF}]' <skill-dir>

A grep finds strings, not intent. An empty result proves nothing, and a match is only a place to start reading. Then work through these:

  1. Who published it. OWASP's checklist asks for a confirmed publisher and a name that is not a typosquat of a known skill. Check the account behind the repo, not the name in the listing.
  2. Every file, scripts first. Look for what does not fit the stated purpose.
    • Anthropic says to review SKILL.md, scripts, images and other resources, looking for unexpected network calls and file access.
    • Scripts deserve the most time. In the 26.1% study, skills bundling them were 2.12 times more likely to have a vulnerability.
    • OWASP's evidence list is a usable filter: no encoded payloads, no curl to unknown endpoints, no credential access beyond the stated function.
  3. The prose too. Instructions are part of the attack.
    • One of the two dominant strategies in the malicious-skills study is adversarial instructions embedded in documentation. That paper's title is "Do Not Mention This to the User".
    • Treat any line that tells Claude to hide something from you as a reason to stop. That rule is ours.
    • OWASP also asks about zero-width Unicode and base64 in metadata. The last two grep lines above are a rough first pass at that.
  4. allowed-tools, ! lines and hooks. Ask whether the job needs each grant. A skill's frontmatter can declare hooks as well, so read that field. A skill can grant itself broad tool access, and the docs tell you to review it before you run Claude Code in a repository that holds one.
  5. Anything that changes after you read it. The file you read may not be the code that runs.
    • Anthropic warns that fetched content might contain malicious instructions, and that even a trustworthy skill can be compromised if its dependencies change.
    • SafeDep, which sells related tooling, shows a script with unpinned dependencies that is benign at review and malicious later. That is a demonstration, not an observed incident.
  6. For a plugin, read three more places. They are hooks/hooks.json, .mcp.json and every file in bin/. The /plugin details pane has a Will install list, but it shows that a hook exists, not what it runs.

Two commands help with plugins. claude plugin marketplace list prints where each marketplace came from. claude --plugin-dir <plugin directory> plugin details <plugin name> inventories a cloned plugin without starting a session.

If you cannot say why a line is there, do not install the skill. It will cost you the odd useful tool.

We have not run this check, the grep lines or the claude commands on real skills, so there are no results of ours here. The steps come from the docs and studies linked above.

What changes after you install?

Your read covers one set of files, at one moment.

  • Auto-update. When it is on for a marketplace, Claude Code updates that marketplace's plugins in the background, so the files you reviewed can change on disk. You can turn it on or off per marketplace.
  • Abandoned repositories. Researchers found 121 skills that forward to seven repositories open to hijacking, and the most downloaded had 2,032 downloads. The authors reserved those account names to prevent attacks.
  • Pins. Where the claude-community catalog pins a plugin to a commit SHA, Claude Code refuses to install a different commit. For a skill you copied yourself, your pin is the commit you wrote down.
  • Removal. claude plugin uninstall is not the end of the files: they stay under ~/.claude/plugins/cache/ for 14 days.

Before you take a newer version of anything, read the diff.

What can a label tell you?

Less than it looks like, and that goes for marketplace names, scanners and catalog badges.

Marketplace names. A name tells you who publishes the catalog, not what each plugin in it does. It is still useful: Claude Code accepts official and community names only from github.com/anthropics/ repositories, so a third party cannot pose as one.

Scanners. In the scanner study, 8,402 skills were flagged by at least one of five scanners. 6,032 were flagged by only one, and 33 by all five. One clean result, or one alarming one, tells you little by itself.

Catalog badges. A word like "reviewed" means only what was checked. Ask any catalog these six questions:

  1. Who checks?
  2. What is checked?
  3. Is the component run?
  4. Is every entry read from the code?
  5. How much of the catalog is covered?
  6. What happens when the component changes later?

If it cannot answer them, its badge means little. Whatever the answers, the read is still yours to do.

Catalogs also make calls about what to list. We refuse repositories of leaked vendor system prompts, whatever their stars or license, and we left out one rules file with aggressive, profane instructions.

What should a team do?

A team needs this as a rule, not a habit.

  • Keep an inventory. OWASP's entry has name, version, hash, install date, installer identity and last scan status.
  • Withhold allowed-tools from repository skills. allowManagedPermissionRulesOnly in managed settings makes Claude Code ignore that field in project and personal skills, on v2.1.282 or later. /status lists each skill affected so far in the session.
  • Consider turning off injected commands. "disableSkillShellExecution": true replaces each one with a placeholder. It fits managed settings, where users cannot override it. Bundled and managed skills are not affected. A skill that relies on a command gets the placeholder and not the command's output.
  • Use the long version for approvals. OWASP's checklist is written for review, approval and periodic reassessment.

What to do next

Open the last skill you installed. Read its allowed-tools, its ! lines and its scripts, and write down the commit you read. If you are not sure which files load and when, the context lesson covers it.

To compare options with their source and install facts in view, explore the catalog, then read what you pick.

Build your Claude Code setup.

  • claude code skills

Sources

  1. platform.claude.com/docs/en/agents-and-tools/agent-skills/overview
  2. code.claude.com/docs/en/skills
  3. code.claude.com/docs/en/plugins/security
  4. arxiv.org/abs/2602.06547
  5. arxiv.org/abs/2601.10338
  6. arxiv.org/abs/2603.16572
  7. owasp.org/www-project-agentic-skills-top-10/checklist.html
  8. safedep.io/agent-skills-threat-model
  9. jepsen.io/analyses/particledb-1.1.4

Keep reading