inferwire
/
Cybersecurity·3 min read

AI Agent Skills Can Be Attacked Long Before They Run, Study Finds

SkillSec-Eval tests attacks on reusable agent skills from repository admission to later updates, using 327 real-world skills, and finds that no single defense is enough.

TL;DR

  • SkillSec-Eval, a new framework, tests attacks on reusable AI agent skills at five stages, from repository admission to updates, using 327 real-world skills [^1].
  • Fabricated trust labels swayed the planner in 45.64 percent of queries, and the authors conclude that no single defense is enough [^1].

Background

A skill is a packaged capability that an AI agent can discover and call on its own: a workflow of one or more tools, plus a description, permissions and version information [^1]. Developers publish skills to local or shared repositories, where agents search for them [^1]. According to the authors, security research has so far focused on prompt injection and on what happens at run time, leaving the rest of a skill's life largely unexamined [^1].

What happened

In a paper posted to arXiv on July 15, Sanket Badhe and Priyanka Tiwari present SkillSec-Eval [^1]. It models a skill's life in six stages: authoring, storage, retrieval, selection by the agent's planner, execution and later updates. Attacks are sorted by the stage whose trust assumption they break [^1]. For the tests, the authors built a controlled repository of 327 benign skills from the public SkillMCP collection, grouped into 15 clusters of 20 to 25 similar skills in areas such as DevOps, cloud operations and project management [^1]. Each attack was measured at its own stage, so the results for one stage don't depend on the defenses at the next [^1].

At admission, rule-based checks such as signature and hash validation still let 52.9 percent of malicious skills in. Adding an LLM that compares a skill's instructions with its declared permissions cut that to 7.9 percent, but it also wrongly rejected 20.0 percent of benign skills [^1]. In search, an attacker who published 15 clones of a malicious skill got at least one into the top five results for 93.20 percent of queries; a validation filter lowered that to 26.59 percent [^1]. At selection, fabricated trust labels such as "Official Skill" led the planner, a Gemini model, to pick the malicious candidate in 45.64 percent of queries. Prompt injection written into a skill description worked in only 4.69 percent [^1].

Without monitoring at run time, all evaluated attacks reached their target [^1]. The authors' runtime guard, which tracks sensitive data and checks a policy before every tool call, blocked 87.0 percent of unauthorized calls, yet 23.0 percent of attacks still succeeded. When the model was told to paraphrase or summarize data before sending it, the guard lost track of that data [^1]. Updates were the last gap: without revalidation, every malicious update inherited the trust of earlier versions. Treating each update as a new submission caught 92.5 percent of them but also flagged 37.0 percent of benign updates [^1].

Why it matters

The paper's main point is that an agent can be steered wrong before any skill code runs. In the experiments, the planner saw only a skill's description and permissions, not its workflow, so persuasive text did the damage. The authors conclude that the planner weaknesses come mainly from that metadata rather than from flaws in the underlying model [^1].

Every defense in the study also has a cost. The admission and update checks reject legitimate work, and the runtime guard misses paraphrased data, which the authors call an open problem [^1]. Their conclusion is that each stage needs its own control, because removing any one of them exposes attacks that later stages can't reliably stop [^1]. The results come from a controlled repository rather than a production deployment, and the authors note that real ecosystems may be larger and more varied [^1].

Practical example

Say your team's agent picks skills from a shared internal repository. A new skill appears labeled "Official Skill," with a description promising local-only processing while it requests network access. Going by the study, the label alone can tip a planner toward it [^1]. So before the planner sees any candidates, you strip trust labels and marketing language, check that each skill's instructions match its declared permissions and treat every update as a fresh submission [^1]. You also add a policy check in front of tool calls, knowing from the paper that it may miss data the agent paraphrases first [^1].

Sources

  1. [1]arXiv — Agent Skill Security: Threat Models, Attacks, Defenses, and Evaluation