New to ShortSpan? We distil the AI-security research that matters into practitioner takeaways — edited by Ben Williams (NCC Group). Get the weekly email
// Analysis

Benchmark exposes agent skill detector cross-source gaps

Agents
Benchmark exposes agent skill detector cross-source gaps

A new benchmark aggregates 13 sources into 9,740 agent Skills and shows current detectors fall apart on unfamiliar sources. Learned models keep ~95% malicious recall but hit benign Skills with ~62% false positives; fixed scanners either miss almost everything or over-flag heavily. The message: cross-source generalisation is the real fight.

Agent Skills are installable instruction packs that bolt onto Large Language Model (LLM) agents and quietly become reusable authority: prompts, scripts, resources, service configs. That convenience also makes them a clean delivery channel for abuse. A new benchmark, MaliciousSkillBench, aggregates 13 public sources and finally gives us a single yardstick for spotting malicious Skills.

The authors froze and normalised the mess: 8,414 raw malicious records collapse to 7,539 unique identities grouped into 4,588 structural families. After tossing a small set of label conflicts, the primary benchmark lands at 9,740 Skills total: 7,505 malicious and 2,235 benign. They also mapped 4,983 malicious identities into 11 attack categories; Execution / Code Delivery dominates that subset with 3,320 identities. All evaluation uses static Skill instruction text only. No payloads run.

What breaks

On easy, random splits the learned text detectors look stellar: Macro-F1 between 0.882 and 0.932. Hold out entire sources and the shine comes off fast: Macro-F1 sinks to ~0.653–0.665. The strongest word TF‑IDF SVM posts 0.932 on random, 0.916 on structural-disjoint, and 0.665 on held-out sources. Worse, on those held-out sources it keeps high malicious recall (~94.4–95.7%) at the price of a brutal benign false-positive rate around 62.0–64.4%.

Off-the-shelf scanners are no refuge. Cisco and SkillSpector keep benign false positives tiny (about 1.1% and 0.55%) by mostly not finding anything: roughly 2.5% and 0% malicious recall at their frozen settings. SkillFortify goes the other way, catching about 25.3% of malicious Skills while flagging 49.9% of benign ones. Nobody manages both high recall and low over-flagging on unfamiliar sources.

How I’d abuse it

This benchmark quietly hands attackers a playbook. Cross-source heterogeneity is the gap: detectors trained on one ecosystem over-flag benign conventions from another. So you can package a harmless-looking Skill in the unfamiliar style to jam the pipeline with false positives, or dress a malicious Skill in the safe-but-ignored patterns that slip past fixed scanners. The 4,588 structural families show template reuse is rife; re-skinning a proven scaffold scales distribution without changing the core behaviour. Given Execution / Code Delivery dominates mapped attacks, you do not need much more than a persuasive instruction block and the right wrapping.

There are caveats. Source-Disjoint couples provenance, construction and labels, so it is a stress test for generalisation, not a universal hardness score. Benign coverage is narrower than malicious. And everything here is static text; runtime behaviour might tell a different story. But the direction of travel is clear: agent security lives or dies on cross-source generalisation and the ability to measure both detection and collateral damage. Right now, the numbers say we are not there.

Additional analysis of the original ArXiv paper

📋 Original Paper Title and Abstract

MaliciousSkillBench: A Comprehensive Benchmark for Malicious Agent Skill Detection

Authors: Yue Wang, Yi Liu, Gelei Deng, Ying Zhang, Yuekang Li, Zhenyu Chen, and Leo Zhang
Agent Skills extend LLM agents with reusable instruction packages that may also include scripts, resources, and service configuration. This creates a direct distribution channel for malicious behavior, yet existing malicious-Skill datasets are fragmented across sources, artifact formats, evidence regimes, and benign coverage; duplicated and structurally related content further complicates direct aggregation and evaluation. We present MaliciousSkillBench, a comprehensive benchmark for malicious Agent Skill detection. We consolidate 13 public sources, 11 of which contribute Core malicious artifacts, and reduce 8,414 raw malicious records to 7,539 normalized-unique identities in 4,588 operational structural families. After conservative cross-label conflict exclusion, the primary benchmark contains 9,740 Skills: 7,505 malicious and 2,235 benign. To characterize its coverage, we harmonize 11 attack categories for 4,983 malicious identities with supported source-native mappings and find substantial differences in threat composition across sources. We then evaluate three learned text detectors and three off-the-shelf Skill scanners. Learned detectors achieve 0.882-0.932 Random Macro-F1 but only 0.653-0.665 under Source-Disjoint evaluation; the strongest word TF-IDF SVM scores 0.932/0.916/0.665 on Random/structural-disjoint/Source-Disjoint while retaining 95.6% malicious recall but producing 62.4% benign FPR on held-out sources. Off-the-shelf scanners occupy different but also unsatisfactory operating regimes, reducing false positives only at the cost of sharply lower malicious recall. Together, these results show that reliable malicious-Skill detection requires both broader cross-source benchmark coverage and evaluation that jointly measures attack detection and benign over-flagging.

🔍 ShortSpan Analysis of the Paper

Problem

Agent Skills are installable packages that extend LLM agents with instructions, scripts, resources and service configuration. Because a Skill becomes reusable procedural authority inside an agent, Skills form a direct distribution channel for malicious behaviour such as credential theft, manipulation of agent goals, triggered backdoors and concealed unsafe side effects. Existing public resources for malicious Skills are fragmented in format, provenance, evidence strength and benign coverage, and they contain duplicated and structurally related content that complicates aggregation and evaluation. The paper addresses the need for a single, traceable detection benchmark and for evaluation that measures both attack detection and benign over-flagging.

Approach

The authors consolidated 13 frozen public sources, 11 of which met a Core-malicious-artifact rule, and canonicalised heterogeneous records while preserving source and evidence metadata. They deduplicated at exact and conservative text-normalised levels, modelled template-level structural reuse separately, and excluded cross-label conflicts. The frozen primary benchmark comprises 9,740 normalised-unique Skill identities, of which 7,505 are malicious and 2,235 are benign after conservative conflict exclusion. Malicious Core inputs reduced from 8,414 raw records to 7,539 normalised-unique identities organised into 4,588 operational structural families. Using only documented source-native labels and deterministic mappings, they harmonised 11 attack categories for 4,983 malicious identities. For evaluation they trained three learned static text detectors (word TF-IDF with logistic regression and linear SVM, and a character TF-IDF SVM) and compared them with three fixed off-the-shelf Skill scanners under three frozen protocols: Random splits, Malicious-Structural-Disjoint splits and Source-Disjoint (held-out-source) splits. They also ran two robustness controls: class balancing and a narrow scaffold-sanitisation applied before training and evaluation. All experiments used inert static Skill instruction text; no Skill code or payloads were executed.

Key Findings

  • Consolidation and audit: 8,414 raw Core malicious records reduce to 7,539 normalised-unique identities and 4,588 structural families; 34 normalised identities conflicted across malicious and benign labels and were removed from the primary benchmark.
  • Threat coverage: 4,983 malicious identities were mapped into 11 harmonised attack categories; Execution / Code Delivery is the single largest category in that mapped subset (3,320 identities), with strong source-specific concentration across datasets.
  • Learned detector performance: on Random splits Macro-F1 is 0.882 to 0.932; under Source-Disjoint Macro-F1 falls to 0.653 to 0.665. The strongest word TF-IDF SVM scores 0.932 / 0.916 / 0.665 on Random / structural-disjoint / Source-Disjoint. On held-out sources learned models kept high malicious recall (about 94.4 to 95.7%) while benign false-positive rate rose to about 62.0 to 64.4%.
  • Off-the-shelf scanners: different operating regimes but unsatisfactory trade-offs. Cisco and SkillSpector had very low benign FPR (about 1.1% and 0.55%) yet detected only around 2.5% and 0% of malicious Skills at frozen gates. SkillFortify achieved higher recall (about 25.3%) at the cost of 49.9% benign FPR. No evaluated detector achieved both high malicious recall and low benign FPR on held-out sources.
  • Robustness controls: class balancing and scaffold sanitisation reduced but did not eliminate the Random-to-Source-Disjoint gap, indicating source-conditioned sensitivity beyond simple class imbalance or audited wrapper artefacts.

Limitations

Coverage is bounded by the 13 frozen public sources and by the conservative Core/Main eligibility gates; Main benign coverage is narrower than the malicious side. The benchmark uses static primary Skill instruction text only and excludes package-level or runtime behaviour. Structural families are operational scaffold groupings and do not imply lineage, actor identity or campaign membership. Source-Disjoint is a measure of source-conditioned generalisation with provenance, construction and label composition coupled and therefore is not a causal estimate of universal unseen-source difficulty. Five malicious records with sensitive credentials were released in sanitized form.

Implications

From an offensive perspective, Agent Skills provide a direct channel to distribute malicious capabilities that can be trusted by agents once installed. The findings suggest attackers can exploit cross-source heterogeneity and scaffold reuse to proliferate malicious Skills and to evade or subvert static detectors: they can craft Skills that mimic held-out source conventions to induce high false positives, exploit scanner operating points to avoid sensitive scanners, or reuse templates to amplify distribution. Because learned detectors tend to over-flag unfamiliar benign conventions while fixed scanners often trade recall for low false positives, an adversary can either attempt to evade detection or weaponise over-flagging to cause denial or disruption of legitimate Skills. These dynamics underscore that practical attacks can combine content, provenance and packaging choices to affect both detection and benign over-flagging.

// Similar research

Related Research

Get the weekly digest

The few AI-security papers that matter, with the practitioner takeaway. No spam.