ClawHub agent skills: most injected attacks run in the agent's shell, not skills
A study of all 48,682 skills on ClawHub, a public registry of add-ons for AI agents, finds many known flaws on paper. Few are reachable in practice, and the biggest exposure comes from how agents run commands.
scienceunderway.com/articles/clawhub-agent-skills-most-injected-attacks-run-in-the-agent-s-shell-not-skills

AI illustrationWhat the study shows
Agent skills are small packages that give an AI agent new abilities. Each bundles scripts, third-party libraries and a plain-text instruction file, called SKILL.md, that tells the agent how to use it. The agent fills in the skill's inputs from the user's request and from outside content such as web pages or emails. That opens the door to indirect prompt injection, where an attacker hides instructions in content the agent later reads.
The authors, from Nanyang Technological University and Nankai University, scanned every skill on ClawHub as of March 2026. They screened all skills automatically, then reviewed by hand the 3,428 cases flagged by their four main detectors. Finally, they ran samples in a sealed test environment and with a live agent. The paper is a preprint and has not been peer reviewed.
The authors report that about half of the skills whose libraries could be pinned to exact versions use a version with a known, publicly listed flaw. That is about 3% of the whole registry. Most of these skills were flawed on the day they were published, and almost none were fixed six months later.
In the skills' own code, manual review confirmed 315 skills where agent input can reach a command that runs code. Risky install steps, such as downloading and running a script in one go, sat mostly in SKILL.md rather than in installer scripts. Leaked passwords and keys printed to the screen were rare: 22 confirmed.
The key result is about reachability. In sandbox tests, flaws in the skills' own code were exploited in 21 of 22 cases, while known flaws in libraries were exploited in none of 14. With a live agent, the planted payload ran in about half of 200 sampled skills. But in almost all of those it ran in the agent's own command line, before the skill started. It reached a flaw inside the skill in only 5% of the sample.
Our reading
In our reading, the headline lesson is that counting known flaws is a poor guide to risk. A dependency scanner would light up about half of the skills it can check. Yet only 47 of those 1,555 skills had a library flaw that agent input could actually reach. Flaws in the author's own code were far fewer on paper but almost always exploitable once the input arrived.
The more striking finding concerns the agent, not the skills. The test agent passed commands through a standard shell, the text-based command interpreter. Attackers disguised a command as, for example, a destination city in an email. The shell ran it before any skill code executed. This worked on skills that review had judged safe as well as on flawed ones.
A concrete example: a travel-booking skill asks the agent to fill in a city from a travel-approval email. If the email's city field hides a command, an agent that pastes it into a shell line runs that command with the user's permissions. Swapping the shell tool for one that passes arguments as a plain list stopped most of these attacks without changing a single skill.
The rest of this story is for members. Membership is free: read it at scienceunderway.com/articles/clawhub-agent-skills-most-injected-attacks-run-in-the-agent-s-shell-not-skills
Read the rest of this story
Membership is free. You get every article in full, and can save stories and follow topics.
We send a sign-in link, no password needed. Already a member? Sign inReadiness assessment
| Level | Status | Evidence |
|---|---|---|
| I Lab only | Met | The work is a measurement study with a defined method, a static screen, a manual census and sandbox and live-agent experiments. |
| II Benchmarked | Met | Results are reported on a public registry of 48,682 skills, with a labelled recall benchmark (159 cases), inter-rater statistics and paired controls. This is a measurement study, not a model benchmark, so the level fits loosely. |
| III Open source | Not yet | The paper links no code, SKILLTRIAGE detectors, harness, labels or data. The only URLs are third-party references. A release may exist that the paper does not mention. |
| IV In production | Not yet | No named organisation is documented as using SKILLTRIAGE. The authors say they responsibly disclosed findings to the registry operators, and one flagged skill was removed after their report. That is not production use of the tool. |
What would move it up
Releasing SKILLTRIAGE, the sandbox harness, the census labels and the skill list (with hashes, given the registry may change) would reach level 3. Adoption by a registry operator or agent host, for example reachability-ranked alerts or an argument-vector tool in place of a shell, would support level 4.
The study
Kaixuan Li, Wenbo Guo, Sen Chen et al.. Carried-Over and Agent-Native Threats in the Supply Chain of LLM Agent Skills. arXiv, 23 November 2026. Read the paper
Notes
- Li, Guo, Chen and Liu, 'Carried-Over and Agent-Native Threats in the Supply Chain of LLM Agent Skills', arXiv preprint, November 2026, CC BY 4.0. Source
- ClawHub agent skill registry, the corpus studied (48,682 skills from 17,130 authors, March 2026 snapshot). Source
- Library scan: 3,128 skills with resolved versions; 1,555 (49.6%) use a version with a known CVE, 3.2% of the registry. 78.3% born vulnerable per skill (58.5% per skill-CVE pair, 57.1% on author-pinned versions only); median 676 days since disclosure. Six months on, 88.7% of advisories remained and 1.7% were fixed.
- First-party code: 848 flagged, 315 confirmed (37.1%); 347 after extending the screen to .mjs and .cjs files. Install steps: SKILL.md holds 6.6 to 22.8 times as many genuine risky instructions as install.sh. Stdout leaks: 22 confirmed of 433 credential-classified flags.
- Reachability: sandbox 21 of 22 first-party flaws exploited, 0 of 14 library CVEs; 47 of 1,555 dependency-vulnerable skills (3.0%) have a reachable path. Live agent (gpt-4o-mini): payload ran in 97 of 200 (48.5%); reached the skill's own flaw in 10 of 200 (5.0%). Paired control: 92 of 97 under shell tool, 10 of 97 under argument-list tool.
- OSV, the open vulnerability database used for the library scan. Source
- No code or data release is linked in the paper.
Edited and signed by
Stefan PerdalEditor and publisher140 stories editedStefan read the study, set the readiness level and approved this story. An AI system found the paper and wrote the first draft.
How this was made
An AI model read the study and wrote this article in the structure Science Underway uses. An editor reviewed it and approved it for publication. Check the original study before you rely on the details.
How we workNo corrections


