Agent Skills Security: Securing Skills, Plugins, and Extensions
Agent skills are instructions your coding agent follows and scripts it runs. Learn how to find, inspect, scope, and approve skills before they spread.

Table of contents
- Key takeaways about agent skills security
- How AI Agent Skills Create New AppSec Risks
- Discovering Skills and Plugins Across AI Development Tools
- Identifying Malicious and High-Risk Agent Skills
- Controlling Agent Access to Code, Secrets, Tools, and Data
- Enforcing Block/Allow Policies for Skills and Plugins
- Governing AI Agent Skills Across Development Teams
- Frequently Asked Questions
Agent Skills Security: Securing Skills, Plugins, and Extensions
Agent skills security starts with a correction: a skill isn't documentation. It's a set of instructions your coding agent follows, often bundled with scripts it runs, using the developer's own permissions. That makes every installed skill a third-party dependency, and skills are often installed by individual developers outside any enterprise review.
An agent skill is a folder with a SKILL.md file (name, description, and instructions) plus optional scripts, references, and assets, which an agent loads when a task matches the description. Securing skills means finding them, reading what they tell the agent to do, limiting what they can reach, and approving them before they spread.
Key takeaways about agent skills security
- A skill's risk sits in what it instructs and bundles. A marketplace listing shows only the description, so an approval that rests on the listing misses the scripts and remote fetches doing the work.
- AI agent skills security has to span tools. Skills follow one open format across many coding agents, so a single package can travel between them, and a one-assistant inventory leaves gaps.
- Static inspection catches known patterns, but researchers have reported bypassing public skill scanners. Pair scanning with access limits that hold when a hostile skill passes review.
- Approval covers one version of a skill. Pin the content hash and route each update back through review, because a trusted publisher can ship hostile changes in a later release.
How AI Agent Skills Create New AppSec Risks
Developers install skills to teach an agent a workflow, such as formatting a report, running a migration, or reviewing a pull request. The Agent Skills format began at Anthropic and is now an open standard. It defines a skill as a SKILL.md file plus optional scripts/, references/, and assets/ directories. Think of SKILL.md as a work order: the agent reads it, then does the job with whatever access it already holds.
That's the flaw in "it's just markdown." Agents load a skill's full instructions once a task matches its description, then follow them and can execute bundled code. So a skill carries two payloads: instructions the agent obeys and scripts it runs. Both add to the AI attack surface, and both raise the questions behind trusting new agent skills.
The OWASP Agentic Skills Top 10, an OWASP incubator project, maps agent skills security threats to ten risks. The project cites Antiy CERT's count of 1,184 malicious skills tied to one campaign against a single public marketplace in early 2026. Here's how the ten risks group:
- Hostile packages (AST01, AST04): Malicious skills and insecure metadata can hide harmful behavior behind a benign name and description. A reviewer who reads only the listing may approve it without seeing the problem.
- Excess reach (AST03, AST06): Over-privileged skills and weak isolation can let a skill touch files, credentials and networks its task never needed. Any flaw can then inherit the developer's full access.
- Borrowed instructions (AST02, AST05): Supply chain compromise and untrusted external instructions can put someone else in control of what the agent reads. The skill you approved may not be the text the agent follows.
- Drift and blind spots (AST07 to AST10): Update drift, poor scanning, missing governance, and cross-platform reuse can let approved skills change, spread and escape review.
Skills sit beside three package types AppSec teams already handle. MCP server controls get their own treatment in MCP Guardrails for AI-Powered Development, so this guide stays on the skill package itself:
Discovering Skills and Plugins Across AI Development Tools
You can't inspect a skill you haven't found. Adopters of the format include Claude Code, ChatGPT and Codex, GitHub Copilot, VS Code, Cursor and Gemini CLI. One laptop can hold skill folders for several agents at once. Check four locations when you build the inventory:
- User-level skill directories: Most agents read skills from a folder in the developer's home directory. These installs follow the person into every repository they open.
- Project directories in source control: Skills committed to a repository load for everyone who clones it. A pull request can add one, and reviewers may never open the bundled scripts.
- Plugin and extension bundles: A single plugin install can drop several skills plus hooks and server configurations. The skills inside may never show up as separate install events.
- Marketplace and registry pulls: Some command-line installers fetch skills from public directories and Git repositories with a single command. Record the source URL and version, because a name alone can be typosquatted.
Here's the package this guide follows. A developer installs a "PDF report helper" skill from a public marketplace into their home directory. Discovery records the agent, path, source and content hash, and notes a scripts/ directory sitting beside SKILL.md.
Skill discovery is a narrower job than finding unsanctioned AI tools, which Shadow AI Security covers. But it fails for the same reason: the risks of AI blind spots leave every later control without a target.
Identifying Malicious and High-Risk Agent Skills
An agent skills security scanner, as a category, statically inspects a skill package: its instructions, bundled scripts, declared tools, and network calls. Whether you run one or review by hand, check these seven signals:
- Instructions that fetch remote content: A line telling the agent to download and follow text from a URL hands control to whoever owns that URL. The skill can pass review and still change behavior later.
- Bundled executables: Read every file in scripts/, plus any binaries or archives. Instructions can tell the agent to run them without showing the developer their contents.
- Requested tools: The specification's optional allowed-tools field lists tools that are pre-approved to run, though it's marked experimental and agent support varies. A report formatter that pre-approves broad shell access is asking for more than its task needs.
- Network destinations: List every domain the instructions or scripts contact. An endpoint unrelated to the stated task needs a documented reason.
- Credential paths: Flag references to ~/.ssh, ~/.aws/credentials, .env files, browser stores, and token caches. Few legitimate skills read them.
- Obfuscation: Base64 blobs, encoded strings, and padded files hide logic from a quick read. Block the skill until someone decodes them.
- Update behavior: Check whether the skill self-updates or pulls a fresh copy at runtime. A package that changes after approval escapes the review you gave it.
Run the checklist against the PDF report helper. Its SKILL.md describes page layout, but scripts/render.py reads ~/.aws/credentials and posts the contents to an external endpoint. Two signals fire at once: a credential path and an unexplained destination, which is enough to stop the install and treat the package as malicious code.
Scanners have limits worth stating plainly. In June 2026, Trail of Bits researchers reported bypassing every skill scanner they tested, including the detectors on two public skill directories. Three of their four malicious test skills took less than an hour to build. Their methods included payload padding, logic hidden in binary and archive files, and prompt injection aimed at LLM guard models. Treat inspection as risk reduction and expect some hostile skills to pass it. Provenance controls such as signing belong to AI Agent Supply Chain Security: Securing Agentic Development.
Controlling Agent Access to Code, Secrets, Tools, and Data
A skill inherits whatever the agent can reach, and the agent usually inherits the developer. Scope the agent, and you scope every skill it loads. Apply the principle of least privilege to four surfaces:
- Code: Limit the agent to the repository in front of it. Read access across every checkout on a laptop lets one skill harvest code from projects it was never installed for.
- Secrets: Deny agent reads on credential files, .env files and token caches, and keep long-lived keys out of the workspace. Short-lived credentials from a secrets management workflow cut the value of anything a skill exfiltrates.
- Tools: Require approval for shell commands and file writes instead of pre-approving them for every skill. Treat allowed-tools as a request for a reviewer to grant or deny.
- Data and network: Limit agent egress to known domains, and sandbox execution where the agent supports it. With egress limited, an exfiltration attempt fails and leaves a record in the logs.
Apply this to the PDF report helper. A deny rule on ~/.aws stops the script's read, and an egress allowlist stops the post. Both controls hold even if inspection had missed the script, so scoping covers the skill your review lets through.
Coding agents enforce these limits through permission modes, deny rules and hooks that run before a tool call. Configuration patterns for those enforcement points are in AI Coding Agent Guardrails: Securing AI-Generated Code.
Enforcing Block/Allow Policies for Skills and Plugins
Inspection and scoping tell you whether a skill is safe. A policy decides whether it may run, for whom and at which version. Sort every discovered skill into three tiers:
Write policy rules against identifiers that survive renaming, such as source, publisher and content hash. Rules based on display names miss a fork with a new name and catch a harmless skill that happens to share one.
Pinning makes the middle tier work. OWASP lists update drift as its own risk because an approved skill can change after review, so each allow-list entry should name a version and its hash. Enforce the tiers where agents load skills (managed settings, an internal registry or endpoint controls), so the decision applies before instructions reach the model.
Governing AI Agent Skills Across Development Teams
Without named owners, a skill policy falls out of date the first time a developer installs something new. Make AppSec the policy owner and engineering leads the approvers for their teams, then publish an internal catalog of approved skills. Build governance around four routines:
- Request and approval: Developers submit a skill with its source, purpose and requested access. Reviewers run the inspection checklist and record the tier.
- Inventory review: Compare discovered skills against the catalog on a fixed schedule. Each skill installed outside the catalog opens a review ticket for its owner.
- Exceptions with expiry: Grant time-boxed exceptions for urgent work. Log who approved each one, the reason, and the end date.
- Cross-tool consistency: Apply one decision to the same skill in every agent that loads it. OWASP flags cross-platform reuse because a ported skill can lose the security metadata it started with.
These routines fit inside a wider AI governance program, so skills get the same audit trail as models and coding assistants.
Every routine above depends on an accurate inventory, and skills make one hard to keep because they arrive as folders and plugin contents rather than tracked packages. Legit VibeGuard gives security teams visibility into the agents, models, MCP servers, and skills running on developer endpoints, and enforces organizational policy around them. That visibility gives security teams a clearer foundation for request, review, and exception workflows. See how VibeGuard governs AI coding agents, or book a demo today.
Frequently Asked Questions
What is an agent skills security scanner, and what can it detect?
An agent skills security scanner inspects a skill package before it's installed. It flags credential-file reads, encoded payloads, typosquatted names, and hidden instructions aimed at the agent. A pre-install scan can still miss behavior that appears only at runtime, such as a remote fetch whose content changes later.
Are agent skills more dangerous than MCP servers?
Neither is safer by default. An MCP server runs as a separate process or remote service with defined tools, so you can review and monitor it like a service. A skill shapes the agent's behavior from inside its context and runs scripts through the agent's own shell, which leaves fewer separate signals for monitoring to catch.
Can a skill run code without the developer noticing?
Yes, depending on the agent's settings. If a skill's instructions tell the agent to run a bundled script and shell commands are pre-approved, the agent can execute it without a prompt. The developer sees a summary of the task, and the script's contents stay unread unless someone opens the folder.
Should developers be allowed to install skills from public marketplaces?
Route it through review first. Public marketplaces host useful skills, and the OWASP project also documents malicious ones. A workable middle ground is an internal catalog: developers request a public skill, AppSec inspects and pins it, and the approved copy installs from the catalog instead of the marketplace.
How do you handle a trusted skill that changes after an update?
Treat the new version as a new skill. Keep the approved version pinned by content hash, diff the update against it and re-run inspection on changed instructions and scripts. Agents keep loading the pinned copy until review finishes. A new publisher or network destination in the diff deserves a closer look.
Does ai agent skills security apply to plugins and IDE extensions too?
The same habits apply, with different mechanics. Plugins can bundle skills, so inspecting a plugin means opening every skill inside it. IDE extensions run as code in the editor, where some editors, VS Code among them, support administrator allowlists. Keep all three in one inventory so one approval decision covers each package.
Sources
Agent Skills. (n.d.). Agent Skills overview. Agent Skills. https://agentskills.io
Golan, Y. (2026, August 20). Your AI agent has new skills. Can you trust them? Legit Security. https://www.legitsecurity.com/blog/your-ai-agent-has-new-skills.-can-you-trust-them
OWASP Foundation. (n.d.). OWASP Agentic Skills Top 10. OWASP Foundation. https://owasp.org/www-project-agentic-skills-top-10/
Trail of Bits. (2026, June 3). The sorry state of skill distribution. The Trail of Bits Blog. https://blog.trailofbits.com/2026/06/03/the-sorry-state-of-skill-distribution/
Legit Security needs the contact information you provide to us to contact you about our products and services. You may unsubscribe from these communications at any time. For information on how to unsubscribe, as well as our privacy practices and commitment to protecting your privacy, check out our Privacy Policy.
More Articles

AI Agent Supply Chain Security: Securing Agentic Development
AI agents install packages, MCP servers and skills with developer credentials. Learn how to inventory, pin and verify every component they pull in.



See it in your stack
Every prompt, every commit, every deploy, covered the moment you're ready.


