So far this series has argued three things. Skills are procedure, not authority. One agent with skills is the right design when the work has one owner and one trust boundary. And everywhere else, agents should be scoped to a job. This part looks at the same argument through a security lens, because that is where the omni-agent stops looking merely untidy and starts looking dangerous. A skill holds no permissions of its own. It borrows its agent’s. So an agent that can load every skill effectively holds every key those skills will ever need, and anyone who can get a skill into its library gets to use them.

A skill borrows its agent’s keys
Least privilege is usually applied to tools. Which systems can this agent reach, and with which rights? That’s the right question, and earlier posts on this blog answered it in code: Nobody Told It No — Scope Is an Allowlist argued for three allowlists (reachable systems, reachable people, writable places), and Give Every Agent a Name — Identity Is the Missing Control Plane argued that an agent’s permission scope is its blast radius.
Skills change the arithmetic. Under the open skills specification, a skill is a folder with a required instruction file and an optional scripts/ directory, which the specification describes as executable code that agents can run. Nothing in that folder carries its own identity. When the agent follows the instructions or runs the script, it does so with the agent’s credentials, the agent’s network access and the agent’s write rights.
So the agent’s real permission set isn’t what any one task needs. It’s the union of what every skill in its library might need. Give an agent a skill that reads the ledger, one that posts to a team channel and one that writes to a shared drive, and you have granted all three, all the time, to every other skill that agent loads. In an omni-agent, the skill library is the permission model. Usually nobody has written it down.
The library is already a supply chain
This would be theoretical if every skill were written in-house. Skills are portable by design, public registries already hold tens of thousands of them, and it is tempting to install one the way teams once installed packages: because the name looked right and it saved an afternoon.
Part 1 of this series cited the first large study of that ecosystem. Its January 2026 paper analysed 31,132 skills from two marketplaces. Beyond its headline figures, two findings matter for this post. The vulnerabilities fell into 14 patterns across four categories: prompt injection, data exfiltration, privilege escalation and supply-chain risk. And the two most common were exactly the ones an over-permissioned agent turns into incidents: data exfiltration in 13.3% of skills and privilege escalation in 11.8%. Skills that bundled executable scripts were 2.12 times more likely to contain a vulnerability than skills made of instructions alone.
A second study, first published in February 2026 and accepted to a major academic security conference, went from “vulnerable” to “confirmed malicious”. The authors collected 98,380 skills from two registries, then combined static pattern matching with dynamic checks of how each skill actually behaved. They confirmed 157 skills as malicious, carrying 632 vulnerabilities across 13 attack techniques, an average of 4.03 each. Their reading is that these were deliberate, not accidents. They found two dominant strategies: stealing credentials by running remote code, and manipulating the agent through adversarial instructions hidden in a skill’s documentation. More than half of the confirmed cases came from a single threat actor impersonating well-known brands from a template, at scale.
Two honest caveats. The first study’s “likely malicious” share is a pattern-based estimate, and the second study’s 157 is a much smaller confirmed count from a different, larger sample, so the two numbers shouldn’t be read as one measurement. And the registries responded well: after responsible disclosure, their maintainers removed all 157 reported skills. That is good news, but removal happens after someone looks. Any agent that installed one of those skills before then ran it with whatever keys it held.
Instructions are an attack surface too
The second strategy needs no code at all. In Your MCP Server Is an Attack Surface I argued that tool output is untrusted input: anything a tool returns can carry text meant to redirect the agent. A skill is worse in one respect. Tool output arrives as data the agent was asked to process. A skill arrives as procedure the agent was asked to follow. Its instructions are meant to steer behaviour. That is the whole point of a skill, and it is exactly what an attacker wants.
The description matters too. Progressive disclosure means an agent reads every installed skill’s name and description at start-up, to decide which skill fits the task. That makes the description a small piece of text the agent always reads and acts on. A skill that describes itself too broadly can get itself picked for work it was never meant to do. A scanner that only checks scripts will miss a skill whose instructions are the payload.
So “it’s only a text file” is the wrong instinct. Text an agent follows as its own instructions, under its own identity, deserves the same scrutiny as code.
Least privilege for the skill library
The fix for the omni-agent’s security problem is the same one this series keeps arriving at from other directions: scope the agent to the job. Then apply least privilege to its skills, not just its tools.
- Allowlist skills per agent. Each job-scoped agent loads a named list of skills that its job needs, and nothing else. The list is data, held in version control and changed through review, like the allowlists for systems, people and writable places. “It can load anything in the library” is not a scope.
- Size the agent’s permissions to its skills, not the other way round. Before you add a skill, ask what new access it would need. If the answer is access this agent’s job shouldn’t have, the skill belongs in a different agent. That is the seam from part 2: split where the permissions must differ.
- Don’t treat a skill’s tool list as a fence. The specification has an experimental field for tools a skill may use without asking, and support for it varies between agent products. It pre-approves tools. It doesn’t restrict what the agent can do. The boundary is still the agent’s identity and its allowlists, enforced in code.
- Keep the irreversible behind a person. A skill can make an agent better at drafting a payment or a message to a customer. It shouldn’t be the reason the agent can send one. My family bot holds no card at all, so no skill or prompt can talk it into paying for anything. The same principle scales: if no skill can complete an irreversible action on its own, a malicious skill can do much less damage.
Scoping limits the blast radius. It doesn’t stop a bad skill getting in.
Treat a skill like a dependency
We already know how to manage code someone else wrote that runs with our privileges: we treat it as a dependency. Skills deserve the same three disciplines.
- Pinned. An agent loads a specific, recorded version of each skill, never “whatever is latest in the registry”. The specification leaves versioning to a free-form metadata entry, so pin it yourself: record the source and a content hash, and treat any change as a new version that goes back through review. A skill that can change under you without a review is a skill an attacker can change under you.
- Owned. Every skill in use has a named owner who can say what it does, why this agent needs it and when it was last checked. That is the same owner principle from Who Owns the Agent?, one level down. A skill nobody owns is a skill nobody will notice when it goes wrong.
- Reviewed. A person reads the instructions, the description and every bundled script before the skill reaches an agent with real permissions. Scripts first, given what the first study found. Then again on every update, because a pinned version only helps if moving the pin is a decision.
None of this is exotic. On weekends, the playbooks my coding agents load are ones I wrote myself, and their work goes through gates nobody gets to bypass, even when the agents run on a long leash. A third-party skill is someone else’s judgment running inside your agent. It deserves at least the gate you’d give your own.
The last part of this series takes this further, into architecture: a skill registry that records where every skill came from, alongside the other principles for an estate of job-scoped agents.
The question to ask
For leaders building products and digital platforms on AI and Data, the skill library is now part of the attack surface and part of the supply chain, whether or not anyone has said so in a review. So for each agent you run, ask three things. Which skills can it load? What is the union of permissions those skills need? And for each one, who owns it, which version is pinned, and who last read the scripts?
If the answer to the first question is “all of them”, you don’t have a capable assistant. You have one identity holding every key, waiting for the one skill nobody read. Scope the agent to the job, give it only the skills that job needs, and treat a skill like a dependency: pinned, owned and reviewed.
Scoped by the Job — a five-part series on skills, agents and the architecture that follows
- Skills Are Not Agents
- When One Agent Is Right
- Scope the Agent to the Job
- The Omni-Agent Holds Every Key — you are here
- Architecture Principles for a Job-Scoped Agent Estate
Related: Your MCP Server Is an Attack Surface · Give Every Agent a Name — Identity Is the Missing Control Plane · Nobody Told It No — Scope Is an Allowlist · Who Owns the Agent?.




Leave a Reply