Skip to content

Beyond Maliciousness: A Static and Runtime Attack Surface Analysis of Agent SkillsBeyond Maliciousness: Static and Runtime Attack-Surface Profiling of Agent Skills

Hugging Face Daily Papers· arXiv:2610.19264· Ratnesh Pandey, Japneet Singh, Harsh Akshit, Sonali Tyagi, Cassie CrossleyMetano Labs; Purdue University; VulNowIndexed by this site · 2026-10-20· Originally publishedSelected EvaluationSelectedAttention39

Quick read

Evaluation and benchmarks

Based on the paper PDF (AI-generated); refer to the original

Author profile of 6309 skills: 70.2% have elevated capability, 5.4% are threat verdicts.

Questions
Installing an agent skill is just copying a directory, yet it lets the skill direct the agent with the session's existing permissions. Existing measurement mainly asks whether it is malicious; at install time the size of this authorization is invisible.
Methods
Whole-package static analysis plus dependency provenance checks, then execution in an isolated sandbox; selection does not look at prior threat or risk signals, and traces are evaluated by another model. Threat, exposure and capability are recorded separately.
Experiments and results
Of the 6309, 70.2% have at least one elevated capability, 25.7% have exposure of 7 or above, and 5.4% are threat verdicts (Fig.1). Among those with declarations, 59% under-report; on the risk axis, the two stages mostly do not cover each other.
Limitations and future work
Verdicts are thresholded model scores, and rescans are not deterministic; runtime covers only a single sandbox path. The authors did not evaluate the capability profile at install time, nor do multi-session, post-install monitoring or repeated observation. The scan has no external ground truth.
Experimental setupskillsmp、ClawHub · threat verdict、exposure score et al.
Benchmarks
skillsmpClawHub
Metrics
threat verdictexposure scoreexposure levelelevated capabilitydeclaration accuracy
AI summaryand selection rationaleThe researchers performed static analysis and instrumented sandbox execution on 6,309 Agent skill entries from two skill marketplaces, skillsmp and ClawHub, measuring malicious intent and capability exposure granted at install time, respectively. Seventy percent of entries carry at least one high-privilege capability; static inference indicates half have shell execution capability, 35% can read the filesystem, 31% can write to the filesystem, 31% can access the network, and 13% can access credentials; only 5.4% carry a non-benign threat determination. 1,306 entries judged benign are at high or severe exposure, while 315 carry a threat determination. Of the 6,061 entries with parseable front matter, only 770 declare tool pre-authorization, and 59% of the declarations underreport the skill package's actual capabilities.

The researchers performed static analysis and instrumented sandbox execution on 6,309 Agent skill entries from two skill marketplaces, skillsmp and ClawHub, measuring malicious intent and capability exposure granted at install time, respectively. Seventy percent of entries carry at least one high-privilege capability; static inference indicates half have shell execution capability, 35% can read the filesystem, 31% can write to the filesystem, 31% can access the network, and 13% can access credentials; only 5.4% carry a non-benign threat determination. 1,306 entries judged benign are at high or severe exposure, while 315 carry a threat determination. Of the 6,061 entries with parseable front matter, only 770 declare tool pre-authorization, and 59% of the declarations underreport the skill package's actual capabilities.

Why it was selectedThe paper measures malicious intent and privilege exposure separately, covering 6,309 skill entries, and provides a reusable analysis approach for pre-install review in skill marketplaces.

Related events and news

2 events · 2 news mentions

News that mentions this paper

Adversa AI 发布 11 月 Agent 技能安全资源汇编

RL/RLHF 训练条件可诱发模型智能体提权逃逸

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Installing a skill grants command authority over the existing session; existing detection asks about malice, not how large this authorization is.

    The authority granted by installing an agent skill is nearly invisible at install time.

    • Setting: a skill is a directory containing SKILL.md, optionally with scripts and data. Installation is a copy; afterward the document becomes instructions and scripts run inside the agent's existing session, inheriting its shell, filesystem, network and credentials. The authors say this grants standing to direct the agent continuously without step-by-step confirmation, not new privileges; what it touches is ambient authority; if redirected at the user, the agent becomes a confused deputy.
    • Gaps in prior work: static studies, detonation and vendor reports answer whether a skill attempts to cause harm. The authors argue this does not answer how much existing authority installation grants; a skill that is benign in intent can still expand the actions available to the agent.
    • Declaration field: allowed-tools in the spec is an optional pre-approved tool list, not a required declaration of all of a bundle's capabilities. The authors say it removes confirmation prompts rather than limiting reach, is written by the same author and checked by no one against the bundle, and its vocabulary cannot express credential or environment access.
    • Separate measurements: threat, attack surface and risk are three listing-level quantities. The authors say capability, attack surface and exposure by themselves do not indicate malicious intent, that something has been exploited, or that harm has occurred.
    • Method: two-stage attack-surface profiling combining whole-bundle static analysis, dependency provenance checks, instrumented sandbox execution, and independent model evaluation of traces. The subjects are 6,309 listings from two marketplaces; selection for execution is not conditioned on prior threat or risk signals. The authors position it as a necessary complement to malicious-detection at the marketplace boundary.
  2. What related research exists?

    Related work focuses on malicious verdicts; the authors instead execute without pre-screening and measure whether declarations understate capability.

    Threat measurement and its limits

    • Liu et al. perform model-assisted static analysis on 31,132 skills; the paper relays that about a quarter have vulnerability patterns and about one in twenty have likely malicious intent. Holzbauer et al. analyze 238,180 skills in repository context.
    • Liu et al.'s detonation confirms 157 malicious skills in the wild; Snyk documents malicious activity on public registries.
    • Koc et al. compare agreement among three scanners on 67,453 versions and observe that benign content can still be over-privileged. The authors note they measure inter-tool agreement and have no per-item cross-tabulation. Nöther et al. name this quadrant but report exposure under adversarial configuration search; the authors consider this different from exposure at default installation. The authors say that to their knowledge, prior work has not separately operationalized malicious intent and capability exposure on the same marketplace population and reported their joint distribution.

    From static analysis to detonation

    • SkillExplorer executes 30,801 voice-assistant skills; Hulk drives 48,332 browser extensions. The authors do not claim to be first or largest.
    • Liu et al. select 4,287 from 98,380 skills via static triage for dynamic verification, which the authors say is 4.4% of their corpus. SkillScope replays candidates selected by graph analysis, with skills from the same two marketplaces as this paper.
    • The authors contrast: in this paper's sampled cohort, whether to execute is not decided by prior static threat or risk signals. They say threat-oriented pre-filtering may exclude listings that look benign yet carry consequential capability.

    Capability declarations

    • Stowaway, Bartel et al., browser-extension work and SkillVet (199,295 Alexa skills) compare declared and actual behavior. These ecosystems have permission vocabularies, and the finding is asking for more than needed.
    • The spec repository has four proposals requiring frontmatter to declare environment, credentials, capabilities and required permissions; on the MCP side there is a separate authorization-manifest proposal; SkillGuard proposes missing vocabulary. Gao et al. count the field's frequency; one ecosystem scan compares declared shell authorization with observed shell use; environment and credential access have been quantified statically and in sandboxes.
    • The authors say agent skills reverse the polarity: among those with declarations, under-reporting is more common than over-reporting. The authors give the mechanical reason: those ecosystems enforce permissions so nothing can be used unless requested, whereas the skill field does not limit reach.

    Framework mapping

    • Findings are mapped to MITRE ATLAS, the OWASP Agentic Top 10 and the OWASP Agentic Skills Top 10. The authors say the last is the least mature, with repository and white paper already diverging, so they pin a version and report coverage only; some of its mitigations presuppose that a reviewer can inspect a permission manifest.

    Baselines and data: the experiments do not rerun the above third-party scanners as comparison methods. The external numerical comparison is Liu et al.'s reported roughly one in twenty likely malicious intent across 31,132 skills. The corpus comes from skillsmp and ClawHub.

    The authors position the paper as: independently analyzing threat and exposure on the same cohort, measuring the declaration gap, and comparing whether static and runtime evidence point to different risk facets.

  3. How does the paper address this problem?

    Static analysis reads the full bundle, the sandbox executes without threat pre-filtering, and another model then reviews the traces.

    The measurement records threat, exposure and capability footprint separately per listing. Two-stage attack-surface profiling first reads the full bundle and checks dependency provenance, then executes in an isolated sandbox, and traces are evaluated by a model separate from the static analyst.

    Scope and sampling

    • 6,309 listings, 2,392 publishers: skillsmp 3,947, ClawHub 2,362. The scan window is 2026-07-28 to 2026-08-25, and the report has no missing or unreadable items.
    • skillsmp is split into three star bands, 1,533, 1,180, 1,234 from high to low. ClawHub is split by downloads into 1,272, 517, 500, with 73 having no download count. The authors say the bands describe only the sample, not the market population; the extremely popular head and the zero-install tail are deliberately excluded.
    • Publishers average 2.6 listings, median 1; 19 exceed 20, the largest 266. skillsmp averages 4.1, ClawHub 1.7. The authors say skillsmp's ratio is closer to per-publisher than per-skill.
    • The corpus is not a full census of either marketplace. Popularity is not the same variable on the two sides, and both are point-in-time snapshots.

    Three quantities

    • Threat is malicious intent, carried by the public verdict: score ≥0.70 is malicious, ≥0.50 is suspicious.
    • Risk is the severity of exposure, from a 0 to 10 agentic exposure score, then banded low, medium, high, critical.
    • Attack surface is the capability footprint before severity or intent is assigned. The static stage collapses 70 model output labels into 11 groups and separately records amplifiers such as tool use, autonomy, memory and self-modification.
    • Each finding carries an axis label and is counted on only one axis. Capability footprint does not enter the threat score. The authors say this is a measurement design and does not assume the two axes are statistically independent.

    Static analysis and provenance

    • The model analyst reads the full bundle, including frontmatter, instructions, scripts and bundled resources, and outputs findings on both axes against a security rubric. Claude Haiku 4.5 covers 5,791, Claude Sonnet 4.6 covers 518. The production template and internal orchestration are not released.
    • Four deterministic heuristics supplement hardcoded secrets, piped installers, invisible Unicode and opaque binaries. The static stage yields 4,246 findings in total.
    • Free-text titles are collapsed into named patterns via an ordered keyword crosswalk. The authors say the crosswalk is a presentation layer, not a detector; it matches 95% of static threat findings and 87% of static risk findings, with the rest in a default bucket. 74 assignments were manually audited. Catalog mapping separately takes the code already carried by the finding.
    • Dependencies, source repositories and publishing accounts are resolved: whether resolution succeeds, whether versions are pinned, whether hosts are susceptible to takeover. The authors say this confirms existence, not author intent, and does no name-similarity matching, so they do not claim typosquatting. Items without dependencies can be absent from this stage; the denominator is the population declaring dependencies.

    Sandbox execution and review

    • All but 3 are executed. The agent runs the skill in an isolated sandbox, recording processes, tool calls and network egress. Selection is not pre-filtered by threat or exposure.
    • The detonation agent is Claude Haiku 4.5. The reviewer is not the static analyst: Gemini 3.1 Pro Preview reviews 5,769 traces, 5 are reviewed by an unnamed Claude model, and cohorts without a reviewer record no review. The authors say the two stages are separated in vendor, prompt and evidence.
    • Executor activity is stripped at aggregation, not subtracted item by item against its own control: process or tool names appearing in at least half the listings are dropped as executor baseline; four executor runtimes are dropped by name. This leaves 522 process names belonging to only some listings.

    Qualification review

    • The manual cohort is 410 items from one marketplace: 91 flagged, 319 unflagged, the latter sampled. Review was incomplete at measurement time, so precision is not reported. Items must be adjudicated before being named in a report.
    • Recall on the benign population is tested separately: 140 random items, every file read through, no missed threat. The authors give a one-sided 95% upper bound of about 2.1% and say this is not precision.
    • Severity upgrades apply automatically; downgrades, and upgrades driven only by known false-positive patterns, await manual review. The lead reviewer rechecks every claimed miss and borderline case against the bundle bytes.
    • Aggregation uses the documented crosswalk and cohort-level executor filtering. Static and runtime evidence remain distinguishable.
  4. What experiments did the paper conduct?

    Of the 6309 listings, 70.2% have an elevated capability and 5.4% have a threat verdict, and the two-axis populations differ greatly.

    Experimental setup

    • Subjects: 6,309 listings, 3,947 from skillsmp and 2,362 from ClawHub, from 2,392 publishers. Not a full census. Window is 2026-07-28 to 2026-08-25.
    • Models: static analysts are Claude Haiku 4.5 (5,791) and Claude Sonnet 4.6 (518); the detonation agent is Claude Haiku 4.5, executed for all but 3; the reviewer is Gemini 3.1 Pro Preview (5,769), with 5 more by an unnamed Claude; one cohort has no reviewer.
    • Metrics: verdicts use thresholds of 0.70 / 0.50. Exposure is a 0–10 score, then banded low, medium, high, critical. High exposure in Fig. 1 means a score of 7 or above. Carrying risk is defined as exposure of medium or above, or at least one risk-axis finding in the static stage.
    • Declaration comparison: covers only the 5 categories both vocabularies can express; credential and environment access are excluded because the formats cannot be compared.
    • Review: 410 manual items from one marketplace; precision is not reported. 140 random benign items were read through. 89 rescans, with verdicts reproducible 84%. The paper does not report the number of queries per detonation.
    • Controls: no third-party scanners were rerun. The executor baseline is process or tool names appearing in at least half the listings, plus four runtimes dropped by name.

    Main results

    According to Table I, public verdict and exposure band cross as follows.

    Swipe horizontally to read the table

    verdictLowMediumHighCriticalTotal
    Benign3,6581,0077455615,971
    Suspicious0237534132
    Malicious0052154206
    Total3,6581,0308727496,309
    • The authors say no listing with a threat verdict is in low; the converse does not hold. The text gives 1,306 benign and 315 flagged in the top two bands, and says four-fifths of them have no threat verdict.
    • Fig. 1 divides the same 6,309 into three populations: at least one elevated capability 70.2% (4,431), high exposure 25.7% (1,621), threat verdict 5.4% (338). The authors say capabilities are common, exposure is common, malicious intent is rare.
    • Of the 338 non-benign verdicts, 206 are malicious and 132 suspicious. Relaxing to any threat-axis finding or a score above the lower threshold gives 345. The authors use verdict as the primary prevalence and say the 5.4% is close to the roughly one in twenty of prior static studies, but this is only weak external calibration.

    Capability footprint and declaration gap

    • Fig. 6: shell execution 50.1% (3,162), filesystem read 35.4% (2,233), write 31.4% (1,980), network egress 30.8% (1,942), credential access 13.1% (824). The abstract's approximations are about half, 35%, 31%, 31%, 13%. 397 have both credential access and network egress; 628 satisfy the lethal trifecta. The authors say no leakage was observed.
    • 6,061 have parseable frontmatter, and 770 (12.7%) have any declaration. Table II: under-declared 457 (59%), over-declared 304 (39%), aligned 166 (22%); 157 have both directions, so the percentages sum above 100. The disjoint blocks are aligned only 166, under only 300, over only 147, both 157.
    • ClawHub has 388 declarations among 2,196 parseable listings (17.7%); skillsmp has 382 among 3,865 (9.9%). The authors say 88% of ClawHub's declarations understate, versus 31% for skillsmp. In Fig. 8, shell is under 247, over 45; network egress is 249 versus 19; filesystem read is under 46, over 210.

    Static and detonation

    • The threat column of Table III uses each stage's own score ≥0.5 as threshold: both stages flag 11, static only 292, detonation only 33, either stage 336. The authors say static covers 303 and detonation 44. Detonation reports only 3 threat patterns, 2 of which are known to produce false positives; 9 of its 33 exclusive items fall in the manual cohort. 3 listings lack a threat score for one stage and are not in that column.
    • The risk column counts at least one finding in that stage, not the test of IV-C: both stages 978, static only 1,653, detonation only 708, either 3,339. The authors say 2,361 of these are seen by only one stage. This total is 250 more than the 3,089 of IV-C, because detonation findings with exposure below medium can be counted.
    • Pattern directions are opposite: detonation reports compromise spreading 730 versus 526 for static; static reports authority expanding 776 versus 182, and unvetted third-party 703 versus 1. The authors consider this unlike independent error on the same property. Observed shell calls are 518, which the authors say is a lower bound from single sessions.

    Market, popularity and catalog

    • Fig. 5: ClawHub's risk is 65.6% and broader threat signal 3.6% (85/2,362); skillsmp is 39.0% and 6.6% (260/3,947). The authors say the two axes rank in opposite order, but do not rank security projects on this basis. ClawHub's threat rate fell from 6.3% (862) to 3.6% after sample expansion; the risk ordering held through revisions.
    • skillsmp's threat rate from low to high stars is 5.8%, 7.4%, 6.6%, with no trend. ClawHub from low to high downloads is 4.6%, 2.9%, 2.0%; the authors say only the two ends separate. Risk share rises with popularity: skillsmp 35.5%, 38.0%, 42.6%; ClawHub 62.4%, 68.5%, 69.6%.
    • On the threat axis, malicious skills in the Agentic Skills Top 10 has 240 findings. On the risk axis, over-privileged skills is 1,051 and supply-chain compromise 799. The authors say the two axes concentrate in different items. Of 383 threat findings, 186 are critical and 167 high. Risk findings have only 2 critical, while the critical band of exposure has 749 listings; the authors say the two are not at the same level.

    Other ablations and analyses

    • Amplifiers: tool use 4,087, non-determinism 1,814, autonomy 1,501, memory 1,229; dynamic identity 560, multi-agent 469, self-modification 180.
    • Dependencies: 2,871 declare some dependency, 2,830 have at least one unpinned version; the authors say this is 99% relative to the declaring population. 75 resolve to hosts susceptible to takeover.
    • Exposure scores: 3,128 score 0; the 3,181 with scores have mean 6.81 and median 7.1. The authors say at least 1,250 with elevated capability still score 0. Corpus-wide mean is 3.44.
    • 89 rescans are 84% reproducible; 2 benign items flipped to flagged, and the benign label is about 98% self-consistent. In the smaller cohort with controls, shell and environment access appear on every control arm item, so the two cannot separate skill from executor at all.
    • Runtime: file writes 2,571, calls to another skill 1,479, credential reads 344, outbound requests 286. Among declarers, 91 are recorded exercising at least one comparable capability, and 54 of those exercised an undeclared category.
    • A read-through of 140 random benign items found no missed threat. In Fig. 3, offensive tooling is 117 listings, which the authors say is about a third of the any-threat-signal population, and is dual-use tooling rather than covert malware.
  5. What are some points that can be further explored?

    The authors list non-determinism, the single-sandbox lower bound, and the unevaluated profile presentation as open problems.

    Limitations noted by the authors and future directions

    • The verdicts are thresholded model scores, not factual findings; aggregate ratios have no intervals. Rescan inconsistency only measures instability and does not show that the error direction is balanced or cancels out in aggregation. One publisher contributes 266 entries, and intervals under an independence assumption would be too narrow (III-B6).
    • Runtime covers only the paths actually exercised by that detonation, which the authors read as a lower bound. One class of setup scripts writes persistent agent configuration, but no skill file references it, so detonation will not invoke it. Most listings were run only once and without a control (III-B6).
    • Capability and amplification labels are model free text, normalized after the fact, and counts of rare labels are for reference only (III-B6). The manual queue comes from one marketplace, and re-checks at measurement time were incomplete, so precision is not reported (III-B1).
    • The corpus is a sample, not a census; popularity on the two sides is not comparable, and it is a point-in-time crawl (III-A). The authors did not implement or evaluate capability-profile generation or a proof system (V).
    • Future Work names seven items: a vocabulary that can express credentials and environment access; displaying an independently generated capability profile at install time and evaluating whether it helps decisions; multi-session or targeted inputs; post-install monitoring; no corresponding static detector yet for write-configuration scripts that nothing references; separating curation effects from catalog composition; and repeated observation of the marketplace, because after one sample expansion the threat ranking changed while the risk ranking held (VII).
    • The scanner was built and operated by Metano Labs, with no third-party evaluation and no external ground truth (Conflict of Interest). Reporting flagged listings to the marketplace and external disclosure were not completed at the time of writing (Ethics). The original report and production implementation are not public, and the full results cannot be independently reconstructed from the materials that can be provided (Data Availability).

    Scope of the experiments

    • The scan covered 3,947 entries on skillsmp and 2,362 on ClawHub, 6,309 in total from 2,392 publishers, over the window 2026-07-28 to 2026-08-25 (III-A).
    • Static analysis used Claude Haiku 4.5 (5,791) and Claude Sonnet 4.6 (518); the detonation agent was Claude Haiku 4.5, executed for all but 3 entries; review was by Gemini 3.1 Pro Preview (5,769) and 5 unnamed Claude entries, plus a queue with no review (III-B4).
    • Declaration accuracy compares 5 categories that both vocabularies can express, on the 770 listings that have declarations; credentials and environment access do not enter this comparison (IV-D).
    • Manual review covered 410 entries from one marketplace; the benign recall sample was 140 entries; there were 89 rescans (III-B1, III-B6). The paper does not report precision, nor the number of queries per detonation.
    • The results tables report the output of this scanner on this sampled queue. The authors note that the dynamic execution of Liu et al. and SkillScope occurs after pre-screening, whereas this paper does or does not execute without prior threat or risk signals (II-B).
  6. Summarize the main content of the paper

    On the same set of listings, capability exposure far exceeds malicious verdicts, and the declaration field also frequently under-reports.

    This measurement treats agent skills on marketplaces as an authorization problem at install time: once copied into the agent's lookup directory, SKILL.md becomes instructions, and bundled scripts run in the existing session.

    • Questions to separate: prior work mainly asks whether a skill attempts to cause harm. The authors measure how much existing shell, file, network and credential authority installation brings into the session. allowed-tools is written as a pre-approval list; the authors say it removes confirmation prompts rather than limiting reach.
    • Method: a model reads the full bundle, supplemented by four deterministic heuristics and dependency resolution; all but 3 are run once in an isolated sandbox, and traces are evaluated by a model from another vendor. Selection does not depend on prior threat or risk. Verdicts use thresholds of 0.70 and 0.50; exposure uses a 0–10 score then bands.
    • Three populations: Fig. 1 on 6,309 listings gives at least one elevated capability for 70.2% (4,431), a score of 7 or above for 25.7% (1,621), and a threat verdict for 5.4% (338). In Table I, the low band is 0 for both malicious and suspicious. The authors report 1,306 benign and 315 flagged in the top two bands.
    • Declarations and two stages: of 6,061 listings with parseable frontmatter, 770 have declarations, of which 59% are under-declared (Table II). ClawHub declares more often, but the authors say 88% of its declarations understate, versus 31% for skillsmp. In Fig. 6, shell execution is 50.1%. In the risk column of Table III, either stage flags 3,339 listings, of which 2,361 are seen by only one stage.
    • Authors' conclusion: asking only whether something is hostile misses the larger exposed population. The existing pre-approval field is rarely filled in, often under-reports, and cannot express credential and environment access. The authors argue that at submission time static analysis can estimate the capability mix, then prioritize the 397 listings with both credential and egress and the 628 with the lethal trifecta; gating only on declarations, intent verdicts or install counts would miss many of them. The two stages give complementary views and cannot substitute for each other.
Read originalhuggingface.co