Zero Labs
Industry News / AI

Before You Install 25 Agent Skills, Check These 7 Permission Risks

Source · Towards AI By Aditya Kumar Puri

From the publisher’s feed, collected in the ZeroLabs newsroom.

The dangerous part of an agent skill may be a shell script.It may also be three polite lines of Markdown telling the agent to read a secret and send it somewhere else.Seven risks make a useful checklist. They are not a claim that every batch of twenty-five skills contains exactly seven offenders. The real ecosystem scans are larger and messier.Snyk scanned 3,984 skills from ClawHub and skills.sh. It reported at least one security issue in 36.82%, a critical issue in 13.4%, and 76 confirmed malicious payloads [1]. A separate empirical study analyzed 31,132 skills and found at least one vulnerability in 26.1% [2].Different corpora, different scanners, same uncomfortable message: installing a skill transfers trust to code and instructions you may not have read.A skill is a package, not a promptAnthropic defines a skill as a directory with a required SKILL.md and optional scripts and resources [3]. Its enterprise guidance says a malicious skill can direct Claude to run code, access sensitive files, or transmit data externally [4].The short marketplace description is only the label on the box. The box may also contain:shell and Python scripts;package installation commands;external URLs;tool and permission instructions;references loaded later, after the friendly description has left the context.Progressive loading is good for token use. It is not a security review.The 7 permission risks1. Broad shell accessBash(*), unrestricted shell access, or instructions to approve arbitrary commands give a skill far more power than most jobs require.A formatter may need to run one local formatter. It does not need the keys to the building, the van, and your weekend plans.2. Sensitive reads plus network accessFile access alone can be legitimate. Network access alone can be legitimate. Together, they create the classic exfiltration path.Look for reads of .env, ~/.ssh, ~/.aws, cloud config, package tokens, browser data, and source code followed by curl, wget, WebFetch, SDK calls, or outbound HTTP.3. Mutable remote setupCommands such as curl ... | bash, unpinned installers, and “download latest helper” steps can change after your review. The skill you approved on Tuesday may fetch different code on Friday.Prefer a reviewed commit, release, checksum, or local script. “Latest” is convenient until it develops a personality.4. Hidden executable pathsDo not stop at SKILL.md. Inspect every file under scripts/, referenced helpers, agent definitions, hooks, and package manifests.The large empirical study found skills with scripts were 2.12 times more likely to contain vulnerabilities than instruction-only skills [2]. That does not make every script malicious. It makes “I only read the Markdown” an incomplete audit.Source: Image by the author. The tiers are an editorial review framework.5. Permission bypass modesAnything that requests bypassPermissions, tells users to skip prompts, or assumes universal approval deserves special scrutiny.Claude Code documents bypassPermissions for isolated containers or virtual machines, not ordinary workstations [5]. A capability can be legitimate in a disposable sandbox and reckless in your home directory. Context is doing real work in that sentence.6. Secrets inside the skillHardcoded API keys, tokens, passwords, private URLs, or example credentials that happen to be real are immediate failures.Secrets should come from a proper secret store or environment at runtime. Even then, ask whether the skill needs the secret at all. A Markdown linter does not need your AWS account, no matter how ambitious its roadmap is.7. Unpinned or lookalike sourcesTyposquat names, thin repositories, anonymous maintainers, floating versions, and one-click marketplace installs all increase supply-chain risk.Popularity is useful context, not a signature. Pin the reviewed version and review upgrades as dependency changes.A seven-minute auditRun this before the skill enters a trusted directory:Confirm the source. Open the repository and maintainer history.Read the frontmatter. Does the description match the actual job?List the full tree. Include scripts, hooks, agents, and references.Search for execution. Find shell, Python, JavaScript, package installs, and dynamic commands.Search for data paths. Find environment reads, credential paths, and source-code collection.Search for egress. Find HTTP calls, uploads, remote instructions, and downloads.Compare capability to purpose. Reject anything the stated task does not need.Anthropic’s enterprise checklist recommends the same basic review: inspect every file, verify scripts match the stated purpose, look for external URLs, identify tools, check credentials, and hunt exfiltration paths [4].Make the harness say noClaude Code evaluates permission rules in deny, ask, allow order. A matching deny wins [5]. That makes deny rules useful, but they are not an operating-system sandbox.For example:{ "permissions": { "defaultMode": "default", "deny": [ "Bash(curl *)", "Bash(wget *)", "Read(~/.ssh/**)", "Read(~/.aws/**)" ] }}Two caveats matter:A Read deny controls Claude’s built-in read tool, not every shell process. If Bash remains broad, cat can become another route.Command-pattern filtering is fragile. Use sandbox filesystem and network boundaries when you need a hard limit [5].The safest policy is layered: trusted sources, human review, least privilege, deny rules, and a sandbox.A policy small teams can actually keepAgent skill policy1. First-party or reviewed sources only.2. New skill arrives through a pull request.3. Review SKILL.md, scripts, hooks, and referenced files.4. Pin the approved commit or release.5. No broad shell, network, or secrets without a documented reason.6. Untrusted execution happens only in a sandbox.7. Re-audit every upgrade.OWASP’s Agentic Skills Top 10 now treats malicious skills, supply-chain compromise, and over-privileged skills as distinct risks [6]. That is a useful reminder: “the skill is not obviously malware” is not the same as “the skill has appropriate access.”ConclusionThe public data is larger and less convenient than a neat twenty-five-skill sample.Before installing a skill, check broad shell, sensitive reads plus egress, remote setup, hidden executables, bypass modes, embedded secrets, and unpinned sources.Treat installation as trust transfer. Read the whole directory. Then make the runtime enforce the limits your review assumes.The marketplace button says “add.” Security still has to ask, “add what?”References[1] Snyk, “ToxicSkills,” Feb. 5, 2026. https://snyk.io/blog/toxicskills-malicious-ai-agent-skills-clawhub/[2] Y. Liu et al., “Agent Skills in the Wild: An Empirical Study of Security Vulnerabilities at Scale,” arXiv:2601.10338. https://arxiv.org/abs/2601.10338[3] Anthropic, “Agent Skills.” https://platform.claude.com/docs/en/agents-and-tools/agent-skills/overview[4] Anthropic, “Skills for enterprise.” https://platform.claude.com/docs/en/agents-and-tools/agent-skills/enterprise[5] Anthropic, “Configure permissions.” https://code.claude.com/docs/en/permissions[6] OWASP, “Agentic Skills Top 10.” https://owasp.org/www-project-agentic-skills-top-10/Before You Install 25 Agent Skills, Check These 7 Permission Risks was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.