AI agent skill risks: what a skill can do on your Mac
A skill is a folder that teaches your AI agent one task. It holds a SKILL.md file with instructions, and often scripts the agent runs. It works with the full permissions of the agent that loads it. That is why the main AI agent skill risks are hidden instructions, bundled scripts and content fetched later from the web. Treat a new one like software you are about to install, and read every file in the folder first. Anthropic's docs say to use them only if you made them yourself or got them from Anthropic.
Claude Code, Cursor and other agents let you add skills from the internet, and anyone can publish one. On ClawHub, a public marketplace for them, publishing takes the instructions file and a GitHub account that is one week old. There is no security review and no sandbox by default, and no code signing, which is a digital stamp that shows who made a file. This page covers the AI agent skill risks on your Mac: what such a folder can do, what researchers measured, and what to check before you add one.
To see what you already have, run these two commands. The first lists the ones that apply to every project on your Mac, the second those inside the project folder you are in.
ls ~/.claude/skills/
ls .claude/skills/01What a skill is, and why it gets so much power
A skill packages instructions, metadata and optional resources such as scripts and templates, and the agent uses it automatically when the task fits. When the instructions mention a script, Claude runs it through bash, the standard command shell. At startup the agent loads only the name and description of each folder, and opens the full file when a task matches. That description is always in front of the model, even for folders you never use.
Here is the part that matters. A normal software package runs in an isolated context. This does not: it works with the full permissions of the agent it extends. Snyk lists what that includes: shell access, read and write access to your files, credentials kept in environment variables and config files, and the ability to send messages. Installing one is like adding a third-party library to a project: instructions and executable code join the agent's work.
02The AI agent skill risks, one by one
| Risk | What happens |
|---|---|
| Hidden instructions | Malicious text sits in the instructions file, including the description that is always loaded |
| Bundled scripts | A script in the folder runs through bash with your permissions |
| Silent network calls | The instructions tell the agent to run curl, a command that sends data to a web address. The data goes to the author's server and you see nothing |
| Content fetched later | A folder that reads outside URLs can turn harmful when those pages change |
| Change after review | It passes the first scan, then its repository is edited to add malicious instructions |
| Silent overwrite | Installing one with the name of an existing one replaces the old one, whatever the source |
| Fake popularity | Install counts can be inflated with one unauthenticated request, which is a request that needs no login |
The first row is prompt injection: text that the model treats as an instruction, here placed in the folder itself. It works because a model can't reliably separate instructions from data. The general case is on the page about indirect prompt injection.
03What the measurements say about AI agent skill risks
Snyk scanned 3,984 skills from ClawHub, and a human review confirmed 76 with malicious payloads, meaning harmful instructions, in their text. In all, 534 skills (13.4%) had at least one critical issue. Every confirmed malicious one contained malicious code patterns, and 91% also used prompt injection. Hardcoded secrets, which are passwords or keys typed straight into a file, appeared in 10.9% of the whole marketplace. In February 2026 researchers documented the first coordinated malware campaign against Claude Code and OpenClaw users, an agent platform like Claude Code. It used more than 30 malicious skills spread through ClawHub.
Most of these measurements come from community marketplaces, but the danger is not limited to them. A malicious one can direct Claude to call tools or run code that does not match its stated purpose. The result could be data exfiltration, which means your data leaving the machine without your say, or unauthorized system access.
04Cases you can picture
Cisco's scanner found nine problems, two of them critical, in a third-party skill it tested, called What Would Elon Do?. Its instructions told the agent to run a curl command that sent data to a server controlled by the author, and the call was silent.
Mitiga built a legitimate-looking skill that silently copied an entire codebase. A one-click install, which adds it before you have read anything, is the real red flag.
On the Mac itself, Trend Micro tied the Atomic stealer, a known Mac data thief, to malicious skills. Hidden instructions in the skill files made the agent show the user fake setup requirements, and a fake password dialog tricked the user into typing the password. That variant ignored .env files but took keychains, where macOS keeps saved passwords, and documents. More on this family: Atomic Stealer.
05Where skills live on your Mac
Personal ones sit in the first folder above and apply to every project on your machine. Project ones sit in the second, inside a repository, so a repository you clone can bring its own.
A folder can also pull the output of a shell command into the prompt. The docs example is a !git diff HEAD line, which puts your uncommitted changes into the prompt before Claude reads it. If you do not want that, the setting disableSkillShellExecution turns such lines into placeholders.
The block at the top of the instructions file can list tools under allowed-tools, and during the turn that runs the skill Claude uses them without asking you. Claude Code applies a project skill's allowed-tools even when you trusted only a parent folder, and in a claude -p run, so check that field in any repository you clone before you start the agent there. Scripts the skill runs get the rights of the agent. Edits to the files are picked up inside the running session without a restart, so a review you did yesterday does not cover a file edited since.
06Before you add a skill
- Read every file in the folder: instructions, scripts, images and other resources. Look for network calls you did not expect, odd file access, and anything that does not match the stated purpose. Be most careful with a skill that fetches outside URLs, because even a trustworthy one can be compromised when its dependencies change.
- Do not rely on badges or install counts. Read the definition and review the source repository by hand.
- Pin it to a specific commit, which is one saved version of its repository, instead of tracking the latest, when your tool supports it. Be wary of a name that matches one you already have.
- Try it first in a throwaway project folder with approvals on, not in a repository that holds real keys. Unvalidated skills should be tested in a controlled environment.
- Give the agent only the tools the task needs, and treat all outside data as untrusted.
For the wider picture of agent hardening, see AI agent security, Claude Code security and the page on coding agents. A folder that calls servers meets the same risks as MCP servers, and a script that runs npm install meets the problems on the npm malware page.
Reading the files first cannot show you what a script did after you approved it. A skill can leave something behind that keeps running: the free, open-source core of Artificial Immunity lists the places where programs set themselves to start and installed packages on your Mac and reports them when you or your agent ask.
07The short version
The AI agent skill risks come from one fact: the folder borrows the whole power of your agent and arrives from outside. Add only what you wrote or trust, read every file first, and keep the agent's access to files and secrets as small as the task allows.
FAQ
What are the risks of using an AI agent?
The agent can misuse its tools, leak data through tool calls, take big actions without a person watching, and run compromised third-party parts. OWASP lists tool abuse, data exfiltration, excessive autonomy and supply chain attacks as the key risks.
What do AI agents struggle with?
Telling instructions from data. A language model can't reliably separate the two inside a single context window, which is all the text it reads at once, so text in a web page or a skill file can steer it.
What is one major risk of agentic AI?
Taking high-impact actions without enough human oversight. OWASP calls it excessive autonomy. For skills, the matching risk is a skill that makes the agent run code that does not fit its stated purpose.
What are the top 3 AI security risks?
The first three entries of the OWASP LLM Top 10 for 2025 are prompt injection, sensitive information disclosure and supply chain. For skills, supply chain is the one that bites: installing a skill is like adding a third-party library to your project.
Are agent skills safe to install?
Only if you created them yourself or got them from Anthropic, which is the line Anthropic's docs draw. For anything else, audit every file in the folder before you use it.
Can a skill that looked fine become dangerous later?
Yes. A skill that fetches data from outside URLs can be compromised when those dependencies change, and a marketplace scan at publishing time does not stop a later edit.
Related guides
Sources
- Anthropic docs: Agent Skills overview
- Claude Code docs: skills
- Snyk: ToxicSkills study of ClawHub skills
- SafeDep: Agent Skills threat model
- Cisco: personal AI agents are a security nightmare
- Mitiga Labs: silent codebase exfiltration via skills
- Orca Security: AI agent skill supply chain
- Trend Micro: OpenClaw skills used to distribute Atomic macOS Stealer
- OWASP: AI Agent Security Cheat Sheet
- OWASP GenAI: LLM Top 10
- Artificial Immunity