← Latest papers
💻 computer science

Agent Skill Security: Threat Models, Attacks, Defenses, and Evaluation

This paper introduces SkillSec-Eval, a comprehensive framework that identifies and evaluates security vulnerabilities across the entire lifecycle of reusable Large Language Model agent skills, demonstrating that risks extend significantly beyond traditional runtime execution concerns.

Original authors: Sanket Badhe, Priyanka Tiwari

Published 2026-07-16
📖 7 min read🧠 Deep dive

Original authors: Sanket Badhe, Priyanka Tiwari

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine a world where your computer doesn't just follow orders but actually goes out and does things for you. This is the realm of AI Agents: smart programs that can plan steps, use tools like a web browser or a file system, and solve complex problems on their own. To make these agents super powerful, developers have started building them out of "skills." Think of these skills like LEGO bricks or pre-made recipes. Instead of teaching the AI how to bake a cake from scratch every time, you give it a "Baking Skill" that it can grab from a digital shelf and use whenever needed. These skills are reusable, meaning one skill can be shared across thousands of different AI agents.

But here's the catch: just like a physical library can be filled with books that have been tampered with, a digital library of AI skills can be dangerous. If a bad actor sneaks a "poisoned" skill into the library, the AI might grab it, think it's safe because it looks good on the cover, and then accidentally delete your files or steal your passwords. For a long time, scientists only worried about the AI getting tricked by the words you typed to it (like a magic spell gone wrong). But this new research suggests that the real danger isn't just what you say to the AI, but what the AI picks up from the world around it.


The Paper: "Agent Skill Security"

This paper, titled "Agent Skill Security: Threat Models, Attacks, Defenses, and Evaluation," by Sanket Badhe and Priyanka Tiwari, is like a detective story about how these digital LEGO bricks can be hacked. The authors realized that while everyone was watching the AI's mouth (what it says), they were ignoring the AI's hands (what it picks up and does). They built a new testing framework called SkillSec-Eval to look at the entire life of a skill, from the moment it's created to the moment it's updated years later.

The Six Stages of a Skill's Life

The authors break down the life of a skill into six distinct stages, like a relay race where the baton is passed from one runner to the next. If the baton is swapped for a fake one at any point, the whole race is ruined.

  1. Authoring (The Creation): This is when a developer writes the skill. The danger here is that the creator might be sneaky, hiding bad instructions inside a skill that looks helpful on the surface.
  2. Storage (The Library): Once written, the skill goes into a digital repository (a library). Attackers can sneak in here, swap out a safe skill for a bad one, or trick the library into accepting a fake version of an old, safe skill.
  3. Retrieval (The Search): When an AI needs to do something, it searches the library. Attackers can "stuff" their bad skills with popular keywords so the search engine thinks they are the most relevant result, pushing them to the top of the list.
  4. Selection (The Choice): The AI's "brain" (the planner) looks at the top search results and picks one. Attackers can write fake reviews or misleading descriptions to trick the AI into picking the bad skill over a good one.
  5. Execution (The Action): The AI actually runs the skill. Even if the skill was picked correctly, it might try to do something it wasn't allowed to do, like opening a door it shouldn't.
  6. Evolution (The Update): Skills get updated over time. An attacker might wait until a skill is trusted and popular, then sneak a virus into a "version 2.0" update.

The Big Discovery: It's Not Just One Thing

The researchers tested 327 real-world skills and found that vulnerabilities exist at every single stage. They didn't just find one type of hack; they found a whole ecosystem of them.

  • The Library is Leaky: They found that simple rules (like checking if a file has a valid signature) aren't enough. Bad actors can create skills that look perfect on paper but have hidden malicious instructions. When they used a smart AI to check the meaning of the code, they caught many more bad skills, but even then, some slipped through.
  • The Search is Rigged: In their tests, attackers used "Keyword Stuffing" (adding tons of popular words to a bad skill) and "Sybil Attacks" (creating 15 fake copies of the same bad skill). Without a special filter, these bad skills dominated the search results. For example, in one test, 93.20% of the time, a bad skill appeared in the top 5 results when no defense was used. With their new defense, they got that number down, but it wasn't perfect.
  • The AI is Easily Fooled: When the AI had to choose a skill based on a description, it was easily tricked by fake "Official" badges or misleading text. In one test, 45.64% of the time, the AI picked a bad skill just because it had a fake recommendation attached to it.
  • The Action is Dangerous: Once a bad skill is running, it can try to steal data. The researchers found that without a runtime guard, 100% of their test attacks succeeded in reaching their target. However, even with a guard, they found a tricky loophole: if the AI rewrites the stolen data into its own words (paraphrasing) before sending it out, the guard sometimes misses it.

The Numbers Tell the Story

The paper provides some hard numbers to show how tough this problem is:

  • Repository Admission: When they combined simple rules with smart AI checking, they reduced the number of bad skills entering the library to 7.9%. However, this also accidentally rejected 20.0% of the good skills, showing that being too strict makes it hard for real developers to work.
  • Retrieval: For "Sybil Attacks" (fake clones), the number of bad skills in the top results dropped from an average of 2.84 down to 0.27 with their new defense.
  • Planner Deception: When bad skills had fake recommendations, the AI picked them 45.64% of the time. With their defense, this dropped to 8.72%.
  • Runtime: Even with a strong runtime monitor, 23.0% of attacks still succeeded because the AI managed to hide the data theft inside its own thinking process.

What They Don't Know (and What They Rule Out)

The authors are very clear about what they didn't find. They didn't find a "magic bullet" that solves everything. They explicitly rule out the idea that just checking the code structure (like looking for a signature) is enough; you need to understand the meaning too. They also show that no single defense works alone. If you only protect the library, the hacker can trick the search. If you only protect the search, the hacker can trick the AI's choice.

They also admit their study has limits. They tested a controlled environment with 327 skills, not the entire internet. They didn't test attacks that happen over many years (long-term trust decay) or attacks that try to break the AI's brain directly (jailbreaking). They suggest that while their framework is a huge step forward, the problem of keeping these digital LEGO bricks safe is still an open challenge.

The Takeaway

The main lesson from this paper is that we can't just watch the AI's mouth; we have to watch its hands, its library, and its updates. Security isn't a single lock; it's a whole chain of guards. The authors built SkillSec-Eval to help us test these guards, and their results suggest that while we can make things much safer, we need to be careful not to make the system so strict that it stops working for everyone. The path to safe AI agents isn't about finding one perfect shield, but about building a layered defense that watches every step of the journey.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →