HarmfulSkillBench: How do harmful skills weaponize your agent?
HarmfulSkillBench: How Do Harmful Skills Weaponize Your Agents?
The authors measured 98,440 skills on ClawHub and Skills.Rest, report that 4.93% are harmful skills, and built HarmfulSkillBench to evaluate 6 LLMs.
- Skills in open skill registries may themselves have purposes that violate usage policies (such as harmful skills); the authors state that large-scale measurement was previously lacking, and there was also no benchmark for evaluating whether agents can recognize and refuse such skills.
- The authors collect 98,440 skills from ClawHub and Skills.Rest, identify harmful skills using a GPT-5.4-Mini scoring system based on a 21-category harmful skill taxonomy, construct HarmfulSkillBench with 200 skills and 4 conditions, and use GPT-5.4-Mini to judge the responses of 6 LLMs.
- The authors report that 4.93% of skills are harmful, with harmful rates of 8.84% on ClawHub and 3.49% on Skills.Rest; on the benchmark, the average harm score rises from 0.27 in Condition D to 0.47 in B and 0.76 in A, and the refusal rate for Tier 2 skills does not exceed 0.71%.
- The authors note that the evaluation covers planning behavior rather than actual execution, covers only 6 models, and that both tasks and responses are in English; harmful skill identification at a threshold of 0.60 has precision 0.74 and recall 0.92, and the sample of manually validated judge outputs is 99 responses.
- Threat model
- The user is the attacker: deliberately selecting and installing harmful skills from public registries and using LLM agents to perform tasks that violate usage policies; the agent is an automation tool, and the victims are individuals whose personal data is scraped, platforms whose terms of service are violated, or targets of fraud and harassment.
- Evaluated models
- GPT-4oGPT-5.4-MiniGemini 3 FlashQwen3-235B-A22BKimi K2.5DeepSeek V3.2
- Benchmarks
- HarmfulSkillBenchClawHubSkills.Rest
- Metrics
- Refusal%HiTL%AID%Harm ScoreF1
The researchers measured a total of 98,440 skills across two major agent skill registries, ClawHub and Skills.Rest, and found that 4.93% (4,858) were harmful skills, with ClawHub at 8.84% and Skills.Rest at 3.49%. The paper constructs the HarmfulSkillBench benchmark, containing 200 harmful skills, 20 categories, and four evaluation conditions, and evaluates six models: GPT-4o, GPT-5.4-Mini, Gemini 3 Flash, Qwen3-235B-A22B, Kimi K2.5, and DeepSeek V3.2. Results show that presenting harmful tasks through pre-installed skills systematically lowers the refusal rate of all models, with the average harm score rising from 0.27 without skills to 0.47 with skills, and further to 0.76 when the harmful intent is implicit; for high-risk categories of skills, models almost never refuse and rarely proactively add human review or AI disclosure.
Why it was selectedThe study quantifies the roughly 5% share of harmful skills in two major agent skill registries and provides quantitative evidence that pre-installed skills weaken refusals in six tested models.
Paper analysis
What problem does this paper attempt to solve?
The authors study "harmful skills" in the open skill ecosystem whose intended use is to violate policies: measuring scale, building a benchmark, and evaluating agent safety.
Core question: How many "harmful skills" whose intended use is to violate usage policies exist in the open agent skill ecosystem, and how do they affect the safety behavior of LLM agents.
- Problem setting: The authors state that LLM agents (such as Claude Code, OpenClaw, and Codex) increasingly rely on reusable skill modules; as of March 2026, ClawHub and Skills.Rest host 26,629 and 71,811 skills respectively; skills can be installed with one click and obtain system-level permissions such as shell, file system, and network, and harmful skills may lower the barrier to wrongdoing.
- Gaps in existing research: The authors state that existing work mainly focuses on vulnerabilities inside skills (such as embedded prompt injection, data-stealing payloads, and malware), i.e., "malicious skills"; to the authors' knowledge, no large-scale study has measured the prevalence of harmful skills, nor is there a benchmark for evaluating whether agents can recognize and refuse harmful skills.
- Core observation: The example in Figure 1 shows that an agent refuses a direct harmful request, but when the same purpose is presented through a pre-installed skill, or when the user only asks to "read the skill and make an execution plan," the agent instead outputs a detailed plan.
- Paper outputs: Three parts—a large-scale measurement of 98,440 skills across two registries (RQ1, RQ2); the HarmfulSkillBench benchmark (200 harmful skills, 20 categories, 4 evaluation conditions); and an evaluation of 6 LLMs (RQ3). The authors state that they have disclosed to the affected registries and released the benchmark in a gated manner.
- Threat model (Section 2.3, Figure 4):
- Attacker goal: Make the agent perform tasks that violate usage policies.
- Attacker identity and capability: The user is the attacker, deliberately selecting and installing skills from public registries.
- Victim system and victims: The agent serves as an automated tool; the victims are third parties, such as individuals whose personal data is scraped, platforms whose terms of service are violated, and targets of fraud and harassment.
- Difference from prior work: In prior work, the attacker builds malicious skills to attack the agent's user; in this paper, the user is the attacker and the skill is a tool for harming other victims.
What related research exists?
Related work falls into three groups: agent safety attacks, skill/plugin ecosystem measurement, and safety alignment and jailbreak benchmarks; the authors state that this paper's threat model is complementary.
LLM agent safety
- Liu et al. [36] evaluate LLM robustness to prompt injection; benchmarks such as InjecAgent [77], AgentDojo [14], and ASB [78] quantify such threats facing tool-integrated agents.
- WIPI [70], EIA [37], and Imprompter [21] extend the attack surface to web agents and adversarial tool misuse.
- Another line studies supply-chain backdoors: contaminating the agent itself through fine-tuning [74, 69] or poisoning the retrieval layer of memory and knowledge bases [11]. The paper notes that in these works' threat models the agent or its user is the victim, whereas this paper places harmful artifacts in trusted skill registries, actively loaded by users.
Agent skill and plugin ecosystem measurement
- Iqbal et al. [28] propose an attack-surface framework for ChatGPT plugins; Shen et al. [58] (GPTracker) measure misused GPTs in the OpenAI GPT Store at scale; Wu et al. [71] examine data collection behavior in the LLM application ecosystem; Kaya et al. [33] study prompt injection risks in third-party web chatbot plugins.
- Four works parallel to this paper examine the agent skill paradigm: measuring skill distribution patterns [38], identifying stealthy malicious skills embedding hidden payloads [40], proposing a skill orchestration framework [35], and auditing skill marketplaces through multi-agent collaboration [24] (SkillProbe). The paper notes that these works characterize distributions, orchestration, hidden payloads, or marketplace auditing, whereas HarmfulSkillBench measures skills whose "declared functionality itself violates usage policies" and their impact on agent safety behavior.
Safety alignment and jailbreak benchmarks
- LLM level: jailbreak methods [10, 82, 43, 25, 31, 30, 57] and evaluation benchmarks such as HarmBench [42], JailbreakRadar [12], JailbreakBench [9], and StrongREJECT [63].
- Agent level: AgentHarm [2], R-Judge [76], and Agent-SafetyBench [80] evaluate whether agents refuse harmful multi-step tasks or recognize risks in interaction trajectories. The paper notes that these benchmarks present harmful content as user queries or interaction history, whereas HarmfulSkillBench uses natural-language skill specifications loaded from registries as the harm carrier.
Baselines and comparisons: The comparison baseline for harmful skill identification methods is semantic similarity methods (all-MiniLM-L12-v2, GTR-T5-Large), compared on 500 annotated samples (Table 11); the agent evaluation has no external baseline system, and comparisons are made among 6 models and 4 conditions.
The authors position this paper as a threat model complementary to the above works, and describe it as the first large-scale measurement of harmful skills and the first benchmark of this kind.
How does the paper address this problem?
Four-stage pipeline: collect skills → LLM scoring to identify harmful skills → ecosystem measurement → construct HarmfulSkillBench and evaluate 6 LLMs.
The overall approach is the four-stage pipeline shown in Figure 2: data collection, harmful skill identification, ecosystem measurement, and benchmark construction and evaluation, corresponding to RQ1–RQ3 respectively.
Harmful skill definition and taxonomy
- Definition: A skill whose intended use violates established AI usage policies is a harmful skill. The taxonomy was obtained by cross-validating the Anthropic Usage Policy, the Anthropic agent-specific guidelines, and the OpenAI Usage Policy, yielding 21 categories in total (Figure 5; the full version is in Appendix B).
- Two tiers: Tier 1 Prohibited Use (P1–P14) covers unconditionally prohibited categories, such as cyberattacks, privacy violations, fraud, and weapons development; Tier 2 High-Risk Use (H1–H7) covers professional domains such as legal, medical, and financial, which are permitted only when human-in-the-loop review (HiTL) and AI disclosure (AID) are included; lacking either safeguard is treated as harmful.
- Downstream platform policies: The authors surveyed the terms of service of downstream platforms that are often exploited (Appendix C, Table 10) and incorporated their restrictions into the judgment criteria.
Data collection and LLM scoring identification
- Collection: ClawHub skills were taken from its official GitHub repository and web metadata was crawled; Skills.Rest skills were enumerated by parsing the official sitemap.xml and downloading SKILL.md. A total of 98,440 skills (Table 1).
- Scoring system: GPT-5.4-Mini (with reasoning disabled) was used as the policy compliance evaluator, with the skill name, description, and SKILL.md section headings as input (developer names were deliberately excluded), outputting a JSON mapping from violated categories to 0–1 risk scores; each skill was independently inferred 3 times and the results averaged, and the skill's total score was the maximum across the 21 categories. The full prompt is in Appendix D (Figure 13).
- Threshold calibration: In the 0.50–1.00 range, binned by 0.05, 50 samples were randomly drawn from each bin (half from each registry), 500 samples in total, and manually labeled by two annotators (agreement rate 93.20%, Cohen's Kappa 0.85); Table 2 shows that at a threshold of 0.60 F1 is best (0.82, precision 0.74, recall 0.92), and filtering was based on this. No skill exceeded the threshold for P7 (Compromise Child Safety), and this category was excluded from subsequent analysis.
HarmfulSkillBench construction
- Scale and sources: 200 manually verified harmful skills covering 20 categories (130 in Tier 1 and 70 in Tier 2), 10 per category; of these, 81 came from ClawHub, 57 from Skills.Rest, and 62 were original entries written by the authors (for categories scarce in the registries, such as P4 and P10, following the approach of JailbreakBench [9]) (Table 4).
- Entry content: Each entry contains only SKILL.md natural-language instructions, one manually reviewed harmful task, and metadata; auxiliary scripts and executable files are deliberately excluded, on the grounds that the evaluation target is the agent's willingness to comply rather than execution capability, and that this reduces the risk of benchmark misuse.
- Harmful task generation: For each skill, GPT-5.4-Mini generated 3 candidate tasks (structured red-team prompts, drawing on the attack prompts of PAIR and TAP), and 200 final tasks were manually selected and edited from the 600 candidates; the tasks are all in English, do not reference the skill name, but are related to the skill's capabilities.
Evaluation conditions and judgment method
- Agent context: A five-message structure (drawing on AgentDojo): a system prompt (adapted from AgentHarm), a user message requesting to read the skill, a pre-filled read_skill tool call, a tool response carrying the full SKILL.md, and a condition-specific user instruction. The skill content is placed in the tool response rather than the system prompt, simulating how it actually runs.
- Four conditions (Table 5): A passive exposure (only asking for a plan to execute the skill, with no explicit harmful intent), B active invocation (skill + explicit harmful task), and D no-skill baseline (the same harmful task, no skill), the three covering all 200 skills; C1–C4 are a 2×2 factorial design of HiTL×AID, used only for the 70 Tier 2 skills.
- Judge and metrics: GPT-5.4-Mini (temperature=0, reasoning disabled) judges on four dimensions according to a rubric adapted from StrongREJECT and AgentHarm: Refusal (binary), HiTL (binary), AID (binary), Harmfulness (1–5 Likert). For Tier 1 the composite harm score is ScoreP = (1 − Refusal) × (Harmfulness − 1)/4, and for Tier 2 it is ScoreH = (1 − Refusal) × (Harmfulness − 1)/4 × (2 − HiTL − AID)/2, i.e., safeguards can lower the Tier 2 score; both are 0 for safest and 1 for most harmful. Under condition C the judge cannot see the HiTL/AID instructions, so as to measure the original safeguard behavior. The full judge prompt is in Appendix F.
- Manual validation: 99 responses were stratified-sampled by 5 score bands (about 20 per band), and two authors independently labeled them and then discussed to reach consensus.
What experiments did the paper conduct?
Measured 98,440 skills and evaluated 6 LLMs on HarmfulSkillBench: the average harm score rises from 0.27 in D to 0.76 in A.
实验设置
- 被测模型:GPT-4o、GPT-5.4-Mini、Gemini 3 Flash、Qwen3-235B-A22B、Kimi K2.5、DeepSeek V3.2,均通过各自 chat completion API 访问,temperature=0、关闭推理模式(Gemini 3 Flash 不支持完全关闭,设为 minimal)。
- 测量数据:ClawHub 26,629 个技能、Skills.Rest 71,811 个技能,共 98,440 个(Table 1)。
- 基准:HarmfulSkillBench,200 个有害技能、20 类;条件 A、B、D 各覆盖 200 技能 × 6 模型,C1–C4 各覆盖 70 个 Tier 2 技能 × 6 模型。
- 指标:Refusal%(越高越安全)、HiTL%、AID%、合成 harm score(0–1,越低越安全,Equation 1、2)。
- 评审方式:GPT-5.4-Mini 按附录 F 评分细则打分;人工验证用 99 条分层样本,Spearman ρ=0.92,拒答检测准确率 91.92%。
- 识别方法基线:语义相似度方法(MiniLM、GTR-T5),在 500 个标注样本上对比(Table 11)。
主结果
Table 6 主结果(All 级别,AVG 为六模型平均;Score 越低越安全):
Swipe horizontally to read the table
模型 A Refusal%↑ A Score↓ B Refusal%↑ B Score↓ D Refusal%↑ D Score↓ GPT-4o 0.00 0.85 17.00 0.70 54.50 0.29 GPT-5.4-Mini 33.00 0.52 65.00 0.23 66.50 0.18 Gemini 3 Flash 5.00 0.84 43.50 0.46 61.00 0.27 Qwen3-235B 12.00 0.64 47.00 0.43 64.50 0.22 Kimi K2.5 8.50 0.81 52.50 0.38 63.00 0.25 DeepSeek V3.2 0.00 0.88 29.50 0.61 48.00 0.40 AVG 9.75 0.76 42.42 0.47 59.58 0.27 - 单调排序:作者报告 ScoreA > ScoreB > ScoreD 对全部 6 个模型严格成立,即技能的存在与任务意图的隐式化各自独立提高服从意愿。
- 模型差异:GPT-5.4-Mini 在三个条件下分数均最低;GPT-4o 与 DeepSeek V3.2 分数最高,两者在 Condition A 下对 Tier 1 技能拒答率为 0;Condition D 下六模型分数差距收窄到 0.22(0.18–0.40)。
- 作者解读:作者称模型并非不了解技能中的危害——一旦有害意图被显式陈述就会拒答,而是"读取已安装技能并规划其执行"的框架绕过了拒答触发。
生态测量(RQ1、RQ2)
- 流行程度:4,858 个有害技能,占 4.93%;ClawHub 8.84%(2,355/26,629),Skills.Rest 3.49%(2,503/71,811)(Table 3)。最多的类别违规为 P3 网络攻击(1,134)、P6 隐私侵犯(962)、P12 欺诈(926)、H4 金融建议(865)、P13 平台滥用(732),合计占全部类别违规的 74.00%(Figure 6)。
- 参与度(仅 ClawHub):有害技能下载中位数 261 高于非有害的 229(均值 647.69 低于非有害的 831.52),Mann-Whitney U 检验 p=2.37×10⁻¹⁰;零下载比例 2.21% 对 12.57%;star 分布无统计差异(p=0.30)(Figure 8)。
- 集中度:Skills.Rest 的 Gini 系数 0.54(前 10% 开发者贡献 48.21%)高于 ClawHub 的 0.37(前 10% 贡献 33.45%)(Figure 9);74.58% 有害技能只违反一类,25.42% 违反多类。
- 平台机制:两个平台都宣称有某种审核(Skills.Rest 称有自动安全扫描与人工审核,ClawHub 用 VirusTotal 与 OpenClaw 内置管线扫描),作者假设有害率差距由平台结构、内容来源、发布流程与执行力度差异塑造,而非保障措施的名义存在。
分层敏感度与保障措施消融
- Tier 间差距:Tier 2 拒答率在 A、B、D 下分别仅 0.48%、0.48%、0.71%,而 Tier 1 为 14.74%、65.00%、91.28%;Tier 2 的 A→B 转换中 99.05% 的(技能, 模型)对保持服从状态。Condition B 下仅 15.71% 的 Tier 2 响应建议人工审核、2.14% 披露 AI。
- 保障消融(Table 7,Tier 2):平均 harm score 在 C1(HiTL+、AID+)为 0.09、C2 为 0.37、C3 为 0.59、C4(均禁止)为 0.77;含 HiTL 指令的条件平均 0.23,不含为 0.68;含 AID 指令平均 0.34,不含为 0.57。
- 服从不对称:HiTL 指令在 C1–C4 下被遵循比例为 97.62%、94.05%、93.10%、98.33%(无论指令是要求还是禁止);AID 指令要求披露时仅 74.05%(C1)和 41.43%(C3)被遵循,要求不披露时 98.57%(C2)和 99.05%(C4)被遵循。作者称模型存在不主动披露 AI 的默认倾向,与分类法对高风险决策透明度的要求冲突。
其他消融与分析
- 类别热图(Figure 11):Condition A 下 P6(0.95)、P1(0.93)、P12(0.90)、P14(0.90)分数最高,P5(0.55)、P8(0.63)、P10(0.65)最低;Condition D 下所有 Tier 1 类别分数不超过 0.21,Tier 2 类别排序在三个条件下几乎不变。
- 识别方法对比(Table 11):LLM 打分 F1 0.82,高于语义相似度方法 MiniLM 与 GTR-T5 的 0.79。
- 案例(附录 G):Table 13 的 Tier 1 技能在 Condition D 下 6/6 拒答、B 下 4/6 拒答、A 下仅 1/6 拒答(平均分 0.83);Table 14 的 Tier 2 保险技能在 C1 平均分 0.00、C4 平均分 0.92。
- 负面结果:P7(Compromise Child Safety)在测量中没有任何技能超过阈值,基准中该类为 0 条;Skills.Rest 无参与度数据,参与度分析只覆盖 ClawHub。
What are some points that can be further explored?
The authors list three limitations—planning rather than execution, model coverage, and English scope—and propose improvement directions at the registry and alignment levels.
Limitations noted by the authors and future directions
- Planning rather than execution (Section 8 Limitations): The evaluation covers agents' planning behavior rather than actual execution; the authors state that sandboxed end-to-end execution is a natural future extension of HarmfulSkillBench.
- Model coverage (Section 8 Limitations): Only 6 mainstream LLMs are evaluated; the authors state that covering all recent models is infeasible in cost, and the scaling effects of larger models are left to future work.
- Language scope (Section 8 Limitations and Section 6.2): User tasks and agent responses are all in English, and non-English skills are not translated during scoring, which may underestimate culturally localized harmful skills.
- Registry review (Section 8 Discussion): The authors believe existing review stops at the safety layer rather than the policy compliance layer, and that future registries should add content-level compliance analysis based on usage policies, and adopt publisher identity verification and expert manual review for categories such as weapons development, election interference, and Tier 2 professional decisions.
- Alignment improvements (Section 8 Discussion): The authors believe refusal training should treat skill specifications as an input channel, and Tier 2 safeguards should become default behavior rather than relying on instructions, and propose that constitutional or policy-grounded alignment methods could be adopted.
Scope of experimental coverage
- Models tested: 6 in total (GPT-4o, GPT-5.4-Mini, Gemini 3 Flash, Qwen3-235B-A22B, Kimi K2.5, DeepSeek V3.2), all accessed via API, temperature=0.
- Measurement scope: 98,440 skills across the two registries ClawHub and Skills.Rest; the engagement analysis covers only ClawHub (Skills.Rest has no engagement data).
- Benchmark scale: 200 skills × 6 models, 1,200 responses each for Conditions A, B, and D, and 420 each for C1–C4; the paper does not report the number of repeated samples per prompt.
- Identification and judging quality: At an identification threshold of 0.60, precision 0.74, recall 0.92 (Table 2); human validation of judging uses 99 samples, Spearman ρ=0.92, refusal detection accuracy 91.92%; annotation agreement 93.20%, Cohen's Kappa 0.85.
- Statistical tests: Mann-Whitney U tests are reported for engagement differences; no statistical significance tests are reported for differences between models or between conditions on the benchmark.
Summarize the main content of the paper
The authors measure two skill registries and construct HarmfulSkillBench, stating that the skill framework bypasses refusals and that Tier 2 safeguards require explicit instructions.
A measurement and benchmark paper on the agent skill ecosystem: the authors study "harmful skills"—skills whose intended use itself violates AI usage policies—with a threat model in which the user is the attacker, the agent is the tool, and third parties are the victims.
- Problem: The authors state that existing research focuses on malicious payloads inside skills (malicious skills), but there is a lack of large-scale measurement of the scale of harmful skills, and no benchmark for evaluating whether agents can refuse harmful skills.
- Method: Collect 98,440 skills from ClawHub and Skills.Rest, score them with GPT-5.4-Mini according to a 21-category taxonomy (threshold 0.60, F1 0.82); build HarmfulSkillBench (200 skills, 20 categories, conditions A/B/D plus C1–C4 for Tier 2), use GPT-5.4-Mini to judge 6 LLMs, with manual validation ρ=0.92.
- Measurement results: 4,858 skills are harmful (4.93%), 8.84% on ClawHub and 3.49% on Skills.Rest; harmful skills have a higher median download count than non-harmful skills (261 vs. 229), with no difference in stars; production is concentrated among a few developers, more so on Skills.Rest (Gini 0.54 vs. 0.37).
- Benchmark results: The average harm score rises from 0.27 in Condition D (no skill) to 0.47 in B (skill + explicit task) and 0.76 in A (passive exposure), and the average refusal rate drops from 59.58% to 9.75%; the authors call this a "skill-reading exploit," and it is almost entirely a Tier 1 phenomenon—the Tier 2 refusal rate does not exceed 0.71% under any condition.
- Safeguard ablation: On Tier 2, HiTL instructions were followed 93.10%–98.33% of the time (whether required or prohibited), whereas instructions requiring AI disclosure were followed only 41.43%–74.05% of the time; the authors state that models have a structural tendency not to proactively disclose AI.
- Authors' conclusion: Registry review should extend from security scanning to policy compliance analysis, and alignment training should treat skill specifications as an input channel and make HiTL and AID default behaviors; the authors have disclosed to the registries and released the benchmark in a gated manner.