PaperarXiv:2611.30932 · cs.CR · Nov 23, 2026
Carried-Over and Agent-Native Threats in the Supply Chain of LLM Agent Skills
Kaixuan Li, Wenbo Guo, Sen Chen, Yang Liu
This is a large measurement study with exhaustive manual review and a paired shell-versus-argv control. The agent-shell finding is actionable for harness builders. It is not rated higher for four reasons: - The live-agent rates come from one small model and one custom shell tool, with no unflagged-skill control. - The paired control is conditioned on shell success. - The abstract leans on a non-random 21/22 harness result and the broader 78.3% figure. - No artifacts are linked.
Novelty
3 out of 5Rigor
3 out of 5Reproducibility
2 out of 5Relevance to harnesses
4 out of 5
TL;DR
A measurement study of all 48,682 ClawHub skills. About half of the skills with resolvable dependencies carry a known CVE, but agent input reaches the vulnerable function in only 3.0% of them. The authors confirm first-party command or code injection in 315 skills. In a live gpt-4o-mini agent with a bash -c tool, most injected payloads run in the agent's own shell before the skill starts. They reach the skill's own sink in only 5.0% of sampled skills.
Adversarial review by Harness Hub · Nov 26, 2026 · read full text (truncated) · Suggest a correction
Original abstract (authors’ text, select to expand)
Agent skills are reusable packages that extend a large language model (LLM) agent with scripts, third-party dependencies, and natural-language instructions. An agent builds a skill's arguments from user requests and untrusted external content, so a flaw left by a benign author can escalate a prompt injection to code execution. Existing studies target malicious skills or a single attack vector, and none tests whether an agent can reach such flaws. We present the first registry-scale empirical study of the supply chain attack surface arising from unintentional vulnerabilities in agent skills, over all 48,682 skills in ClawHub. The study covers two carried-over risks, dependencies and first-party code, and two agent-native ones, install instructions and credentials printed to stdout. We screen all skills by static analysis, manually review all 3,428 cases flagged by the four main detectors, and test reachability by running sampled flagged skills in a sandbox and with a live LLM agent under indirect prompt injection. First, dependency risk carries over in a different form: 49.6% of the skills with resolvable dependencies depend on a version with a known CVE, and unlike npm packages, which mostly become vulnerable after release, 78.3% of them are born vulnerable, already exposed at publication. Second, few of these CVEs are reachable: agent input reaches the vulnerable function in only 3.0% of the affected skills, whereas 21 of 22 sampled first-party flaws are exploited end to end in the sandbox. Third, a live agent executes the injected payload in 48.5% of the sampled flagged skills, but almost always in its own shell before the skill runs, and the payload reaches a flaw in the skill itself in only 5.0%. Hence, registries should prioritize first-party flaws over dependency alerts, and agent runtimes should not pass skill arguments through a shell.
Summary
The authors snapshot the ClawHub registry in March 2026: 48,682 skills from 17,130 authors. They screen it with SkillTriage, a static pipeline with four parts: - osv-scanner software composition analysis (SCA) of dependencies, covering the 3,188 skills that have a Python requirements file or an npm lock file. - CodeQL plus pattern-based taint analysis for CWE-078 and CWE-094 sinks in Python and JavaScript. - Twelve regexes for risky install instructions in install.sh and SKILL.md. - A CodeQL taint query for credentials printed to stdout. One author labels all 3,428 cases flagged by the four main detectors. A second author labels 150-case stratified subsamples per detector, and also all 848 code-vulnerability cases. Reachability is tested in two ways: - A per-skill sandbox harness reproduces 40 selected flagged cases. - A live gpt-4o-mini agent with a run_command tool that executes through bash -c runs 200 randomly sampled flagged skills. It uses naive and explicit indirect prompt injection, with three trials each. - Every exploited skill is then re-run with an argv-only run_program tool. This separates the agent-shell path from the skill-sink path. Headline results: - 49.6% of skills with resolvable versions depend on a version with a known CVE, and 78.3% of those are vulnerable at publication. - 315 skills have a confirmed first-party injection path. - SKILL.md holds 6.6 to 22.8 times as many genuine risky install instructions as installers do. - There are only 22 confirmed stdout credential leaks. - The live agent executes the payload in 48.5% of sampled skills, but through the skill's own sink in only 5.0%.
Key findings
- Dependency CVEs (Section 4.1, Finding 1): - 1,555 skills (49.6% of the 3,128 with resolvable versions) depend on a version with a known CVE. - Restricting to exact pins and lock files gives 50.7%. - 78.3% (1,217 of 1,555) have at least one CVE that was public at publication. The figure is 57.1% (435 of 762) on author-pinned versions only. - For born-vulnerable pairs, the CVE had been public for a median of 676 days.
- Origin and persistence (Section 4.1, Finding 2): - 85.8% (1,158 of 1,350) of vulnerable exact Python pins come from pip freeze dumps that five authors committed. - One 127-line freeze file, copied into 40 skills, accounts for 1,092 of them. - Six months later, 88.7% of (skill, advisory) pairs remain. Authors upgraded or removed the vulnerable dependency in only 1.7%.
- First-party code (Table 3, Finding 3): - 848 skills are flagged and 315 are confirmed exploitable (37.1% precision), mostly command injection. - Extending the pre-filter to .mjs and .cjs files confirms 32 more, for an extended total of 347.
- Install instructions (Table 4, Finding 5): genuine risky install instructions are estimated at 40 skills in install.sh, 266 in SKILL.md install sections and 910 anywhere in SKILL.md. The resulting SKILL.md-to-installer ratios are 6.6 and 22.8.
- Stdout leaks (Table 2, Section 4.4): - The census of all 433 credential-classified flows confirms 22 leaks (5.1% precision). - A 100-skill sample of the 2,075 UNCLASSIFIED flows extrapolates to about 125 more.
- Sandbox harness and dependency reachability (Table 6, Finding 7): - In the harness, 21 of 22 first-party cases are exploited end to end, against 0 of 14 dependency-CVE cases. - At corpus scale, the census confirms a reachable vulnerable path in 47 of 1,555 dependency-vulnerable skills (3.0%).
- Live agent (Section 4.5, Finding 8): - gpt-4o-mini executes the payload in 97 of 200 sampled flagged skills (48.5%). - In 95 of the 97, it placed $(...) unquoted in its own command line. - 56 of the 97 exploited skills are census false positives. - The shell condition reproduces 92 of 97 exploits (94.8%). The execve condition reproduces 10 of 97 (10.3%). - The resulting skill-sink rate is 10 of 200 (5.0%).
- Explicit injection (Section 4.5): 21 skills that were not exploited under naive injection are exploited when the injected content explicitly tells the agent to pass the field unchanged.
The paper at a glance
- Snapshot ClawHub: 48,682 skills, 17,130 authors (March 2026)
- SkillTriage static screen: osv-scanner SCA, CodeQL/pattern SAST (Python/JS), 12 install regexes, stdout taint query
- Manual census of 3,428 flagged cases, with double-labeled subsamples and Cohen's kappa
- Recall checks on Stage 1 and Stage 3 of the code screen
- Sandbox harness on 40 selected cases
- Live gpt-4o-mini agent on 200 sampled flagged skills, naive and explicit injection, 3 trials each
- Paired control on the 97 exploited skills: bash -c tool versus argv-only run_program tool
Data table
| Method | % |
|---|---|
| Shell condition (run_command via bash -c) | 94.8% |
| execve condition (run_program argv tool, the paper's recommended runtime design) (this paper) | 10.3% |
Why it matters
For harness builders, the most relevant result concerns the tool layer, not skills. When a model fills a command placeholder from untrusted content and the harness runs it through bash -c, the shell expands an injected $(...) before any skill code runs. In the paper's runs this is how 95 of the 97 live-agent exploits happened. In the paired control, an argv-only tool that rejects direct shell calls cut reproduced exploits from 92 to 10 of 97. Because 56 of the 97 exploited skills had no confirmed flaw, this exposure belongs to the harness's tool design, not to the skills. The registry findings matter to anyone running or consuming a skill marketplace. SKILL.md install text, which the model reads on every invocation, carries more risky commands than installer scripts do. First-party injection sinks deserve priority over dependency CVE alerts. All live-agent numbers come from one small model and one hand-built shell tool. They should not be transferred to Claude Code or other production runtimes without re-measuring.
Issues (9)
- High severityWhere in paper: Abstract; Section 3.5 (Live agent); Section 4.5 (Live-agent exploitation; Argument sanitization by the LLM)
The live-agent result rests on a single model and a single custom tool. - The agent is gpt-4o-mini, with a hand-built run_command tool that executes through bash -c. - No production harness was tested, including Claude Code, which the paper names as the host framework. - The agent-shell path is a property of this tool design and of how this model formats commands. - In the pilot, gpt-4o refused values that were recognizably code even under explicit instruction, so the rates depend on the model. - The abstract reports the 48.5% and 5.0% figures, and recommends that 'agent runtimes should not pass skill arguments through a shell', without these qualifiers.
- High severityWhere in paper: Abstract; Section 4.5 (Live-agent exploitation); Table 7
The 48.5% is framed as a rate over 'sampled flagged skills', but the flag barely matters. - 56 of the 97 exploited skills are census false positives. - The agent-shell path needs no flaw in the skill. - No unflagged skills were run as a control. The 48.5% therefore measures the tool and model, not the flagged population, and could plausibly be similar on arbitrary skills that take string arguments.
- High severityWhere in paper: Abstract; Section 3.5 (Sandbox harness); Table 6; Table 7
The abstract sets '21 of 22 sampled first-party flaws are exploited end to end' against the 3.0% dependency reachability rate. The two numbers are not comparable. - The 40 harness cases were not randomly sampled. The first 20 include the RQ2 case study, and the expansion was 'chosen to cover each CWE class and both sink families'. - The per-skill harness injects the payload itself rather than going through an agent. - In the random live-agent sample, only 10 of 70 census-positive skills were exploited at their own sink.
- Medium severityWhere in paper: Section 3.5 (Live agent); Section 4.5 (paired control, Figure 13)
The paired control introduces selection bias. - It re-ran only the 97 skills already exploited under the shell condition, so 'none only under the execve one' and the McNemar p<10^-24 are partly true by construction. - The 5.0% skill-sink rate assumes none of the 103 unexploited skills would fire under execve. - The 18 skills blocked by a missing dependency were never re-run, as the authors note. - The paper also does not say how the three trials under each of the two injection modes are aggregated into a per-skill 'exploited' label.
- Medium severityWhere in paper: Section 3.2 (SCA); Section 4.1 (Prevalence; Born vulnerable; Finding 1); Abstract
The 78.3% born-vulnerable headline overstates author behavior. - Only 22.8% of flagged versions are pinned by the author. The rest are transitive lock-file entries or bare names that osv-scanner resolved at scan time. - On author-pinned versions the rate drops to 57.1% (435 of 762), and the abstract omits this. - The npm contrast (93% entered before disclosure) comes from a different study with a different measurement design.
- Medium severityWhere in paper: Section 3.1 (Dataset); Section 4.1 (Origin and persistence of vulnerable versions)
Dependency prevalence is concentrated in a few authors and is not deduplicated. - Five authors' pip freeze dumps produce 85.8% of the vulnerable exact Python pins. - One freeze file copied into 40 skills contributes 1,092 of them. - The corpus contains 2,538 near-duplicate clusters, yet every listed skill is counted separately. - Per-skill and per-pair percentages therefore partly reflect templates rather than ecosystem practice.
- Medium severityWhere in paper: Section 3.3 (Annotators and inter-rater agreement); Table 2
Agreement on code-vulnerability labels is moderate. - Cohen's kappa is 0.62 on the 150-case subsample and 0.645 across all 848 cases. - The disagreement centers on whether an environment variable is set by the agent or by the operator. - The headline count of 315 uses the single-annotator labels, so it depends on that judgment boundary.
- Medium severityWhere in paper: Whole paper (no artifact URL in text)
No code, detector queries, census labels or harness URL appear in the provided text, so the study cannot be reproduced from the paper as given.
- Low severityWhere in paper: Section 3.3; Section 3.4 (Language coverage); Section 4.5 (First-party flaws versus dependency CVEs)
Some reachability and coverage claims are only weakly supported. - The corpus-scale 3.0% vulnerable-path rate is a manual judgment against hand-written trigger records, not confirmed by execution. A second annotator checked 50 skills. - The dependency harness has only 14 cases. - SAST excludes shell scripts, which appear in 14.1% of skills. - By the authors' own statement, CodeQL Stage-2 misses cannot be bounded, so the confirmed counts are lower bounds with unknown slack.
Questions for the authors
- What is the live-agent exploitation rate on a random sample of unflagged skills that take string arguments, under the same bash -c tool?
- Does the agent-shell path persist in Claude Code or other production harnesses that quote or escape arguments differently from a raw bash -c tool?
- How are the three trials per injection mode aggregated into a per-skill exploited label, and how do rates change with gpt-4o or other models?
- Would any of the 103 skills not exploited under the shell condition, including the 18 blocked by missing dependencies, be exploited at their own sink under the execve condition?
- What are the RQ1 prevalence and born-vulnerable rates after collapsing the 2,538 near-duplicate clusters to one representative each?
- Will the SkillTriage queries, the census labels and the harness be released?
Related in the directory
Open-source projects
Open source · openclaw
Open source · Anthropic
More tools on the same problem
Products and open-source projects in the directory closest in meaning to this paper.
Product · San Francisco, CA
Open source · FailproofAI (ExosphereHost Inc)
Open source · Microsoft
Open source · microsoft
Open source · msoedov
Product · San Francisco, CA
Related papers
arXiv:2610.35829 · cs.CR · Oct 26, 2026
A vulnerability costs more to fix the later it is discovered. As coding agents generate code faster than developers can review it, software needs a first line of defense screening each new function in real time. LLM agents have recently become capable of finding real-world vulnerabilities by working as a security expert would: they run analysis tools, explore the surrounding code, test hypotheses and weigh the evidence before forming their own judgement. This reasoning, however, spans many model calls, so that each verdict takes minutes of compute, far too long for real-time screening. Faster detectors, which fine-tune deep learning models or prompt an LLM for a direct verdict, are less accurate: they judge a function without the context an agent gathers, and an LLM's generated verdict is unreliable even when given some of it. We present REVA (REal-time Vulnerability Analysis), an AI vulnerability detector that brings the security context and code understanding components behind agentic detectors into a single forward pass of an LLM. For each new function, REVA gives the LLM a pre-computed threat model of its module, lightweight static analysis findings and call-graph information. REVA leverages a trained probe to read the LLM's internal representations of the new function in this context. On PrimeVul's held-out test set, REVA on GLM-5.3-Flash reaches 60.0% accuracy in about one second per function. This matches VulTriage (59.2%), the state-of-the-art agentic detector, run on the same LLM, while being over 250 times faster and less than a tenth as costly. On the same prompt, the probe is 14% to 17% more accurate than the LLM's own direct verdict. Across three open LLMs, REVA is at least as accurate as VulTriage, and about 10% more accurate on two of them. An LLM's internal representations thus encode much of what agentic detectors obtain through reasoning.
Amine Lbath, Massih-Reza Amini
arXiv:2611.21259 · cs.MA · Nov 16, 2026
Agentic AI systems extend large language models with tools, memory, and multi-agent collaboration, introducing security risks at orchestration boundaries. These risks depend on how identities are represented, operations are authorized, and instructions or information propagate between components. We evaluate LangChain, LangGraph, AutoGen, and OpenClaw through twelve experiments mapped to the OWASP Top 10 for Agentic Applications using a common LLM (gpt-4o-mini). The experiments cover prompt injection, unauthorized resource access and command execution, memory poisoning, and inter-agent trust and identity attacks. Adversarial inputs induced unauthorized tool invocation, while tool chaining, stale filesystem validation, encoded instructions, and inter-agent delegation exposed weaknesses in authorization across component boundaries. Memory poisoning showed that untrusted state can influence responses, a risk distinct from conventional access-control violations. In the evaluated protected configurations, explicit authorization, controlled capability assignment, filesystem containment, and execution safeguards prevented specific unauthorized operations. The findings emphasize preserving authorization and information-trust boundaries throughout agentic workflows rather than treating framework capabilities or model-level instructions as sufficient security guarantees.
Sahaya Jestus Lazer, Kshitiz Aryal +2
arXiv:2610.34253 · cs.CR · Oct 25, 2026
AI coding agents routinely clone repositories, install packages, and read source code obtained from the Web, so publicly hosted code becomes part of the context that shapes the code they write. We show that this Web-borne context can be weaponized without any explicit instruction. We present NameTrap, a source-code poisoning attack that only renames identifiers in third-party Python files to steer AI coding agents toward attacker-targeted Common Weakness Enumeration (CWE) vulnerabilities. An attacker-side coding agent iteratively aligns identifiers with a CWE-specific naming convention and confirms through local probe completions that the renamed file elicits the target weakness, while the released bait contains neither instructions nor vulnerable statements. We evaluate NameTrap across six AI coding agents, ten underlying language models, and four vulnerability categories: CWE-78, CWE-79, CWE-327, and CWE-502. Starting from files whose clean versions never yield the targeted CWE, identifier-level manipulation achieves overall attack success rates of 22.5\% to 56.0\% across the six agents, reaching 75.0\% for certain agent--model configurations, and substantially outperforms random renaming, neutral renaming, and the prior identifier-poisoning attack XOXO. The attack remains effective under Traditional Chinese prompts and transfers across models, while a security-reminder defense fails to consistently prevent vulnerability introduction. Moreover, three AI-based security analyzers and four static analyzers report none of the targeted weaknesses in the poisoned files. These findings expose an overlooked attack surface of agents that consume Web content: seemingly harmless variable names in untrusted, Web-hosted code can compromise the security of downstream software.
Chieh-Yuan Chang, Guan-Wei Chen +4
arXiv:2611.27041 · cs.CR · Nov 20, 2026
Conventional indirect prompt injection (IPI) attacks hijack an LLM agent's workflow through malicious instructions embedded in retrieved external content. The growing adoption of the Model Context Protocol (MCP) exposes another attack surface: tool descriptions supplied by third-party MCP servers. Attackers can manipulate this metadata to induce malicious argument generation during tool calls. The challenge is to ensure that the modified descriptions still appear benign to both LLMs and users. Existing IPI attacks, however, struggle to achieve both high attack success and low detectability in this setting. To address this challenge, we propose GRAFT, an LLM-based optimization method for crafting adversarial tool descriptions. Specifically, GRAFT uses a masking mechanism to identify argument-relevant token positions for targeted injection. It then iteratively refines candidate descriptions using dynamic mutation strategies proposed by an LLM, guided by the agent's tool choices and generated arguments. We evaluate GRAFT on three public datasets against several attack baselines. The results show that GRAFT achieves higher attack success while maintaining low detection rates across five filter-based defenses. It also bypasses several existing IPI defenses. Even under an adaptive defense trained on GRAFT-generated injections, GRAFT remains more effective than the baselines.
Shih-Chieh Dai, Xinyu Sun +3
arXiv:2610.35188 · cs.SE · Oct 26, 2026
Large language models increasingly act through code, modifying repositories, executing programs, and interacting with services in agent form. Their actions introduce risks that cannot be assessed from generated responses alone. Safety evaluation must verify actual consequences, distinguish harm avoidance from task incapability, and cover realistic workflows. We introduce V$^3$AST-Bench, a benchmark for Verifiable results, Valid interpretation, and Versatile risk coverage of Agent Safety. It comprises 212 risk tasks spanning 18 categories. Dedicated runtime environments verify harm and task outcomes through executable checks over states, records, and artifact behavior, while paired capability twin tasks verify workflow competence. Our experiments span 51 combinations of 11 models and five harnesses, spanning 86,496 trials and over 9 billion tokens of model interaction. Results show that V$^3$AST-Bench remains challenging even for frontier coding agents, as Claude Opus 4.8 with Claude Code still causes verified harm on 20.9% of tasks. Across model-harness combinations, agents with comparable competence exhibit markedly different safety outcomes, showing that task capability alone does not guarantee safe execution. More importantly, even explicit recognition of risks does not reliably prevent harmful actions, revealing a critical gap between risk awareness and safe execution. These findings highlight the need to move beyond risk recognition toward enforcing safety throughout execution.
Weitao Feng, Hengheng Xiong +7
arXiv:2610.35082 · cs.CL · Oct 26, 2026
Agent Skills allow LLM agents to combine reusable capabilities, but checking each Skill in isolation cannot rule out policy violations when they are composed. We term such failures Conflict of Skills (CoS): artifacts or assessment signals produced for one purpose may be reused downstream without preserving the restrictions or authorization needed for their new use. Using controlled executions of publicly available Skills and matched single-Skill controls, we identify four recurring mechanisms behind CoS. Building on these findings, we introduce the Conflict of Skills Attack (CoSA), which adds locally admitted Skills to an existing pool to supply missing business operations (capability supplementation) or reshape artifact exchange, decision reuse, and target/action bindings (relationship reshaping). CoSA leaves existing Skills and runtime permissions unchanged. To evaluate this threat under autonomous Skill selection, we introduce CoSA-Bench, built from real-world Skills and controlled services, with 288 tasks across recruiting, finance, IT, and business, covering data leakage, unauthorized state modification, and unsafe execution. Across five LLMs and three agent harnesses, additions capped at 5% of each original pool raise the policy-violation rate from 35.02% to 58.45%, an increase of 23.43 percentage points. Trace analysis links compliant-to-violating transitions to cross-Skill dependencies involving the additions. Finally, we develop a lightweight harness-level guard that checks information flow and authorization before consequential actions. On OpenClaw recruiting tasks across five models, the guard reduces violations from 65.28% to 6.67%, while policy-compliant task completion on matched benign controls changes from 66.67% to 65.00%.
Yujia Zheng, Tianhao Li +7