← Latest papers
💻 computer science

MalSkillBench: A Runtime-Verified Benchmark of Malicious Agent Skills

This paper introduces MalSkillBench, the first runtime-verified benchmark comprising 3,944 malicious AI agent skills, to demonstrate that current detection tools fail to jointly analyze code and instructions, necessitating a new approach that reasons across task intent, code, and prompts to secure the agent supply chain.

Original authors: Wenbo Guo, Wei Zeng, Chengwei Liu, Xiaojun Jia, Yijia Xu, Lei Tang, Yong Fang, Yang Liu

Published 2026-06-08
📖 4 min read☕ Coffee break read

Original authors: Wenbo Guo, Wei Zeng, Chengwei Liu, Xiaojun Jia, Yijia Xu, Lei Tang, Yong Fang, Yang Liu

Original paper dedicated to the public domain under CC0 1.0 (http://creativecommons.org/publicdomain/zero/1.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 you've hired a super-smart robot assistant to help you write software. To make this robot even more powerful, you let it download "skills" from the internet—like little apps or plugins that tell the robot how to do specific tasks, like "calculate taxes" or "format this document."

These skills are a bit like a recipe card (instructions written in plain English) glued to a kitchen appliance (actual code that runs).

The Problem: The "Poisoned Recipe"

The researchers found that hackers are starting to poison these skills. They create fake skills that look helpful but contain hidden traps.

  • The Code Trap: The "kitchen appliance" part might secretly steal your passwords or delete your files.
  • The Instruction Trap: The "recipe card" part might trick the robot into ignoring its safety rules or doing something it shouldn't, like sending your private data to a stranger.

The scary part is that these two traps often work together. A skill might look innocent on the recipe card but have a dangerous machine attached, or vice versa.

The Big Gap: We Didn't Have a Good Test

Until now, security experts trying to build "skill detectors" (like antivirus software for these robot skills) were flying blind.

  • They didn't have a big enough list of bad skills to test against.
  • The few bad skills they had were mostly one type (like fake "crypto" scams), so detectors got really good at spotting those but terrible at spotting anything else.
  • It was like testing a fire alarm only on smoke from burning toast, then claiming it will catch a fire from a grease explosion.

The Solution: MalSkillBench (The "Stress Test")

The authors built MalSkillBench, the first giant, verified testing ground for these malicious skills.

How they built it:

  1. The Factory: They used an AI to generate thousands of fake malicious skills.
  2. The Sandbox: They didn't just guess if a skill was bad. They actually ran the skill inside a safe, isolated digital cage (a "sandbox").
  3. The Proof: If the skill actually did something bad (like tried to steal a file or trick the robot) while running in the cage, it got a "verified" label. If it failed to do the bad thing, they sent it back to the factory to try again.

They ended up with 3,944 verified bad skills and 4,000 good skills, covering 108 different types of attacks.

What They Discovered

When they tested current security tools against this new, massive test, the results were surprising:

  1. Code is easy to catch, words are hard: Detectors are great at spotting bad code (like a virus in a file) but terrible at spotting bad instructions (like a trick in the recipe). It's easier to see a bomb than to see a lie.
  2. The "Wild" Data is a Lie: If you only test detectors on the few bad skills found "in the wild" (on the internet), you get the wrong answer. One security tool looked like a hero on the wild data, but when tested on the full MalSkillBench, it was actually one of the worst. It was like a doctor who only treats colds and thinks they are a genius at curing everything, until you give them a patient with a broken leg.
  3. Old Tools Don't Fit: You can't just use tools designed for regular software (to catch bad code) or tools designed for chatbots (to catch bad prompts). A malicious skill is a hybrid. Using a tool for just one half of the problem leaves the other half wide open.
  4. The Real Danger: The most dangerous skills aren't just stealing files; they are tricking the robot's brain. Some skills try to rewrite the robot's identity, change its goals, or make it ignore its safety rules. Current tools are mostly blind to these "mind-hacking" attacks.

The Bottom Line

To keep our AI assistants safe, we can't just look at the code or just read the instructions. We have to understand the relationship between them: Does this instruction make sense for this task, or is it a trick?

The paper provides the first real "stress test" to help developers build better detectors that can spot these hybrid tricks, rather than just guessing based on old, incomplete data. They have made all their data and tools public so others can help solve this puzzle.

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 →