Manuscript Offprint

arXiv:2610.19264

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

Ratnesh Pandey, Japneet Singh, Harsh Akshit, Sonali Tyagi, Cassie Crossley

Ratnesh Pandey a^{a}, Japneet Singh a^{a}, Harsh Akshit a^{a}, Sonali Tyagi b^{b}, Cassie Crossley c^{c}

a^{a}Metano Labs

b^{b}Purdue University

c^{c}VulNow

Abstract—Agent skills are Markdown documents that a tool-using agent reads as instructions and then acts on with the privileges of the session that loaded them. Installing one grants authority (the standing to direct the agent, not new privilege), and the size of that grant is what we measure.

We present a two-phase attack-surface profiling methodology that combines whole-bundle static analysis and dependency provenance checking with instrumented sandbox execution and separate model-based assessment of the resulting traces. We apply the methodology to 6,309 listings from two marketplaces, selecting listings for execution without conditioning that decision on a prior threat or risk signal. Half the corpus carries evidence of shell-execution capability; the corresponding shares are 35% for filesystem read, 31% each for filesystem write and network egress, and 13% for credential access; seven listings in ten carry at least one elevated capability. That is the surface a user accepts at install time, and almost none of it is visible then.

A permission model exists but is close to inert. Authors may list the tools a skill pre-approves in its own frontmatter, which removes confirmation prompts rather than restricting what the skill can reach; of the 6,061 listings whose frontmatter parses, 770 declare anything at all, the vocabulary cannot express credential or environment access, and nothing checks what it does express against the bundle. Declaring is also not declaring accurately: 59% of declaring listings understate what their bundle can do. ClawHub declares roughly twice as often as skillsmp, yet under-declares on 88% of its declarations against 31%.

Triage at the marketplace boundary therefore cannot rest on what a listing declares. It must rest on what the bundle can do. These results position capability-oriented attack-surface profiling as a necessary complement to maliciousness detection at the marketplace boundary.

I. INTRODUCTION

An agent skill is a directory holding a Markdown document, SKILL.md, together with whatever scripts and data it chooses to ship alongside. When an agent loads a skill, the document's contents become instructions the agent follows, and the scripts become programs the agent runs. Installation is a copy: a user places the directory where the agent looks for it, and from that point the skill executes inside the agent's existing session, with the shell, the filesystem, the network reach and the credentials the agent already holds. A permission-shaped field does exist: an author may list tools in the skill's frontmatter. The specification defines them as pre-approved to run [1], and in at least one major agent the list removes confirmation prompts for those tools while leaving every other tool callable [2], and a pre-approval so declared travels into every repository that installs the skill [3]. It is a grant, not

Figure

Fig. 1. Three properties of the same 6,309 marketplace listings. Most listings carry at least one consequential capability, a quarter are judged to carry serious exposure, and one in twenty carries a threat verdict. Capability is inferred from the bundle; intent is a thresholded verdict.

a restriction. It is opt-in; it is written by the same author who wrote the skill, nothing checks it against what the bundle actually contains, and the only field that touches credentials or the environment is an optional free-text compatibility string that no analyzer can check a bundle against.

A skill operates within several layers of control. The operating system bounds the privileges of the agent process, while the agent harness determines which tools and resources are available and how their use is authorized [1], [4]. The skill contributes instructions and may include scripts that the agent invokes [1]. The Agent Skills specification defines allowed-tools as an optional list of pre-approved tools, not as a required statement of every capability the bundle may exercise [1]. Even an accurate declaration therefore cannot establish the limits of actions performed through a shell or an invoked script. Assessing a skill requires examining what its bundle can bring into play under the controls of the session that loads it, as well as what its author declares.

Capability profiling addresses one part of this broader security problem: identifying what a bundle may bring into play before deployment. This information can inform marketplace review and the selection of harness restrictions, but it does not establish that the agent will use those capabilities safely. Safe operation also depends on authorization policies, isolation, and controls on actions during execution.

Adoption has been fast. A December 2025 crawl of one marketplace found 15,082 skills [5]; a crawl of the same marketplace one month later found 73,193 [6]; and by March 2026 a study spanning three distribution platforms and GitHub counted 238,180 unique skills [7]. Skills are written quickly, copied between repositories and revised in place [8], and installation asks the user to approve nothing beyond the copy itself. What arrives is trusted by default, and the evidence that the trust is sometimes misplaced is now substantial: a static study of 31,132 skills reported that roughly one in four carried a vulnerability pattern and one in twenty showed likely malicious intent [5], a detonation study confirmed 157 malicious skills in the wild [6], and practitioner reporting has documented live malicious campaigns on a public registry [9].

Those results answer one question: Is this skill trying to cause harm? They do not answer a second and, for most users, more consequential question: What authority does installing the skill grant? A skill that is entirely benign in intent can still expand the set of actions available to an agent operating with the user's privileges. In the corpus studied here, half the listings carry evidence of shell-execution capability, and seven in ten carry at least one elevated capability. Filesystem reads appear in 35% of listings, filesystem writes and network access in 31% each, and credential access in 13%. Fig. 1 sets this capability footprint against the much smaller population carrying a threat verdict. Most of this authority is not declared in a form that a user or marketplace can inspect before installation. The exposure associated with installing a skill is therefore consequential but largely invisible at the point of decision.

Terminology. We report three distinct listing-level quantities. Threat concerns evidence of malicious intent. Attack surface describes the capability footprint inferred from a listing, where an individual capability is an action that the bundle of evidence indicates may be available, such as shell execution, filesystem access, network egress, or credential access. Risk describes the severity of the resulting exposure, based on the reach of that capability footprint and associated amplification factors. Capability, attack surface, and exposure therefore do not, by themselves, imply malicious intent, observed exploitation, or realized harm. Authority. By ‘grants authority’ we mean that installation gives a skill the standing to direct the agent, persistently and without per-action confirmation [10]. It grants no privilege the session did not already hold. What a skill can reach is the agent’s existing ambient authority [11], and a skill that turns it against the user makes the agent a confused deputy [12]. The quantity we measure is how much of that existing authority a skill brings into play. Section III defines how each quantity is operationalized.

References (32)