Skip to content
AI Skills Central

Type to search Agent Skills, workflows, tutorials, tools and the glossary.

Agent Skills guide

Are Agent Skills safe? A security checklist for third-party skills

Are agent skills safe? What can go wrong when you install someone else's skill, what researchers found in public registries, and a fifteen-minute review.

By Intermediate · Updated 25 November 20268 min read
Bookmark

Bookmarks are kept in your free account, so you can find this page again on any device.

Sign in to bookmark
On this page

Agent Skills are as safe as the files inside them. Most published skills are fine, but researchers confirmed malicious skills in public registries in 2026, and a skill’s scripts and instructions run with your agent’s permissions. Check where a skill comes from, read every file, and install the exact commit you reviewed.

A skill is instructions plus, often, code, and both run with your agent’s permissions. In a local agent such as Claude Code or Codex that usually means your files, your shell, your network and whatever credentials sit in your home directory. Installing a skill is closer to installing a package than to reading a blog post, and it deserves the same care. If you are not sure what a skill contains, what Agent Skills are explains the parts; this guide covers how each part can go wrong.

What has actually gone wrong with skills

This is not a theoretical risk. Two studies from 2026 looked at public skill registries, and a third report pulled the findings together:

  • Snyk’s “ToxicSkills” report (February 2026) scanned 3,984 skills from ClawHub and skills.sh. About 37% had at least one security flaw, 13% had a critical issue, and 76 contained confirmed malicious payloads after human review. Techniques included downloading malware (sometimes in password-protected archives to dodge scanners), obfuscated exfiltration of credentials and disabling security controls.
  • A paper titled “Do Not Mention This to the User” (Liu et al., arXiv 2602.06547; first posted 6 February 2026, revised to version 4 on 10 June 2026 and accepted to USENIX Security 2026) analysed 98,380 skills from two community registries and confirmed 157 malicious ones, about 0.16%, with 632 distinct vulnerabilities between them. The two main strategies were stealing credentials through code execution and manipulating the agent through instructions hidden in documentation. More than half came from one actor impersonating well-known brands. The registries removed all 157 after the authors reported them.
  • The Cloud Security Alliance’s research note “Agent Context Poisoning” (6 May 2026) treats SKILL.md, CLAUDE.md and AGENTS.md files as a supply-chain surface: their payload is plain language the model follows, which code scanners are not built to catch. It highlights invisible Unicode Tag characters that hide instructions in a file that looks clean, and recommends filtering them, checking where skills come from and approving skills like any other dependency.

How to read these numbers: the two studies measured different things. Snyk’s 37% counts any flaw its scanners and reviewers found, including careless code; the paper’s 0.16% counts only skills confirmed as deliberately malicious, using pattern matching followed by running the suspect skills to verify their behaviour. Neither is a rate for skills from vendor repositories, and the paper does not name its two registries in the abstract. The CSA note ran no experiments of its own: it summarises Snyk, Check Point and Johann Rehberger’s work, and the Unicode demonstration it cites succeeded in test setups that did not strip those characters. Its statement that Claude Code has filtered Unicode Tags since a February 2026 release comes from Rehberger’s write-up, not from Anthropic.

Most skills are fine. But popularity counts and star ratings did not protect anyone in these cases, and registries vary a lot in how much they check. If you install from ClawHub, our OpenClaw skills guide covers its verify command and the install flags to avoid.

Where the risk lives in a skill

  1. The instructions. Text in SKILL.md or a reference file is a prompt. It can tell the agent to do things you did not ask for, to hide what it is doing, or to fetch more instructions from a URL.
  2. The scripts. Bundled code runs on your machine. A setup script can read ~/.ssh or ~/.aws/credentials as easily as it can format a file.
  3. Install steps. A skill may tell the agent to install a CLI, a global npm package or a binary from somewhere else.
  4. Change over time. A skill you reviewed can be edited upstream. Auto-updating plugins, unpinned installs and skills that fetch instructions at runtime all let a safe skill become a different one.
  5. Pre-approved tools. allowed-tools can let the agent run shell commands without asking while the skill is active.
  6. Project skills. Cloning a repository that contains .claude/skills/ or .agents/skills/ gives your agent those skills in that folder.

The fifteen-minute skill security review

Do this once per skill, at a specific commit, before you install it. Download or clone the source rather than reading it only in a web view, so you see hidden files too.

1. Check where it comes from

Is the publisher the vendor it describes, a known team, or an account created last week? Does the repository have history, issues and other contributors? Is the skill name suspiciously close to a well-known one? Brand impersonation was the most common pattern in the research above.

2. List every file

find skill-name -type f | sort
du -sh skill-name

Look for things that do not fit the skill’s purpose: binaries, archives, minified JavaScript, .env files, very large files. An archive you cannot read without extracting it deserves extra suspicion.

3. Read SKILL.md and every reference file

Read them in full, including HTML comments, which do not show up in rendered Markdown. Watch for:

  • Instructions to keep something from the user (“do not mention”, “silently”, “without asking”).
  • Instructions to fetch and follow content from a URL at runtime.
  • Steps that touch credentials, environment variables, shell profiles or SSH keys.
  • Anything unrelated to what the description says the skill does.

4. Read every script

You do not need to understand every line, but you should know what each script does. Search for the patterns that matter:

grep -rnE "curl|wget|fetch\(|requests\.|urllib|http\.client|socket" skill-name
grep -rnE "\.ssh|\.aws|\.config/gcloud|\.netrc|keychain|\.env\b" skill-name
grep -rnE "base64|eval\(|exec\(|\| *(sh|bash)\b|sudo|chmod 777|crontab" skill-name

Each hit needs a reason. A web-scraping skill calling curl is expected; a spreadsheet skill doing it is not.

5. Look for hidden characters

Zero-width characters, bidirectional control characters and Unicode Tag characters (the range U+E0000 to U+E007F, which most editors do not draw at all) can hide text from a human reader while the model still sees it. With GNU grep in a UTF-8 locale:

grep -rnP "[\x{200B}-\x{200F}\x{202A}-\x{202E}\x{2066}-\x{2069}\x{FEFF}\x{E0000}-\x{E007F}]" skill-name

Any match in a skill is worth investigating.

6. Check the frontmatter

Note any allowed-tools. Pre-approving broad shell access (Bash, Bash(*), shell) on a skill you did not write removes the confirmation step that would otherwise catch a bad command. GitHub’s Copilot docs explicitly warn against pre-approving shell for unreviewed skills. In Claude Code, also look for hooks, which run commands outside the model’s control.

7. Note what it needs

Does it need network access, an account, an API key, a CLI? Requirements are not bad in themselves, but they tell you what the skill can reach. Our directory lists them on every skill page under “What this skill can do”.

8. Install the version you read

Pin to the commit you reviewed. With the skills CLI that is npx skills add owner/repo@<commit-sha> --skill name; with GitHub CLI, gh skill install owner/repo path --pin <commit-sha>. Plugin marketplaces generally track a branch, so if you install a plugin, turn off auto-update for third-party marketplaces or review updates when they arrive. When a new version comes out, update Agent Skills safely by reading the diff before you move the pin.

Patterns that are not malicious but still matter

Some legitimate skills use designs you should know about:

  • Remote instructions. Vercel’s web-design-guidelines downloads its rules from GitHub on every run. Convenient, but you are trusting whatever that URL serves at the time.
  • CLI-served instructions. agent-browser is a stub that loads its real guide from the installed CLI. Reviewing the SKILL.md tells you little; you are trusting the binary.
  • Unpinned packages. Skills that run npx some-tool@latest will run whatever is published that day.

None of these is a reason to avoid the skill. They are reasons to know what you are trusting.

Running untrusted skills more safely

  • Try new skills in a container, a dev VM or a throwaway user account with no credentials in it.
  • Keep your agent’s permission prompts on for shell and network commands, at least until you trust the skill.
  • Do not keep production credentials in environment variables in the shell you run agents from.
  • On claude.ai Enterprise, admins can turn on skill content scanning for uploaded skills.
  • Gemini CLI and Antigravity show a consent prompt naming the directory a skill will access. Read it rather than passing --consent.

Skills that help with security review

Some skills are themselves security tools, and they pair well with this checklist. Sentry’s gha-security-review and Trail of Bits’ agentic actions auditor check the CI workflows that install and run skills. fp-check verifies whether a suspected issue a scanner reported is real before you spend time on it. And for Firebase projects, firebase-security-rules-auditor audits the rules that decide who can read your data. The same caution applies to them as to any skill: read before you run.

Skill security for teams

Keep an approved list of skills with the commit each was reviewed at, and install from that list. Commit skills-lock.json if you use the skills CLI, so restores fetch the same commit. Treat changes to .claude/skills/ and .agents/skills/ in pull requests like changes to CI configuration: they change what runs on everyone’s machine. A private plugin marketplace gives that approved list a single home.

For the hands-on version of this review with scanners, follow the workflow to scan and audit a skill before installing. If you write skills that others will review, bundling scripts in skills covers how to make them easy to trust, and every entry in our Agent Skills directory records the commit we read and whether the skill ships scripts.

Check your understanding

Security checklist for third-party skills quiz

Where risk lives in a skill, the fifteen-minute review, hidden characters, allowed-tools, pinning and safer ways to try skills.

7 questions · pass mark 70%

Question 1 of 70 answered
  1. Why is installing a third-party skill closer to installing a package than reading a document?
  • Scan a third-party Agent Skill before you install it

    Read every file, grep scripts for risky patterns, run a skill scanner, then record a yes or no and pin it.

    WorkflowBeginner20 min6 steps

  • Prompt injection

    Input that overrides or subverts a model's instructions, either typed in directly or hidden in content the model reads while it works.

    Glossary

  • Prompt injection basics for builders

    How direct and indirect prompt injection work, why agents with tools raise the stakes, and the design choices that limit the damage when no complete fix exists.

    TutorialBeginner30 min

  • AI security

    Defending against prompt injection, data leakage and over-permissioned agents.

    SkillIntermediate

  • OpenClaw skills: folders, ClawHub and what to check before you install

    Where OpenClaw loads skills from and in what order, how openclaw skills install, update and verify work with ClawHub, and the checks to run before any install.

    Skill guideIntermediate

Back to top