Study of 48,682 agent skills finds flaws in their own code
Agent input reaches a flawed dependency in 3.0% of affected skills. In a sandbox, 21 of 22 sampled flaws in a skill code were exploited.
Researchers checked all 48,682 skills in ClawHub, a registry of agent skills. A skill is a package of scripts, external code and instructions that adds functions to an AI agent. The team examined 3,428 flagged items by hand. It then tested samples in a sandbox and with a live agent. The agent got prompt injection, which is hidden text that steers an agent.
How it works
An agent makes the arguments of a skill from user commands and untrusted external content. A flaw that an honest author left can then change a prompt injection into code execution. The study covers dependencies, first party code, install instructions and credentials that the skill prints.
The numbers
- 49.6% of skills with known dependencies use a version with a known CVE (a public security flaw).
- Agent input reaches the flawed function in 3.0% of the affected skills.
- A live agent operated the injected payload in 48.5% of sampled flagged skills, mostly in its own shell before the skill started.
- The payload reached a flaw in the skill in 5.0%.
What is not known
The study covers one registry. The live agent tests used samples only. The authors tell registries to rank first party flaws above dependency alerts.
Insight: The agent shell is a bigger risk than skill dependencies
Acronis says it found more than 575 malicious OpenClaw skills. Attacks on skills are in use. This study finds a different usual risk: the agent operates injected text in its own shell before the skill starts. This reads as a move of control to the builder of the runtime, because the repair is in the shell. Dependency alerts alone miss it.
Sources
Posted