SkillHarm
收藏资源简介:
SkillHarm是一个专注于AI代理技能生命周期中基于技能攻击的基准测试数据集。该数据集旨在系统评估第三方技能作为供应链攻击面的脆弱性,包含879个可运行的攻击样本,涵盖两种核心攻击场景:固定载荷投毒(687个样本)和自我突变投毒(192个样本)。每个攻击样本都构建在可执行的Harbor任务环境中,并通过确定性的攻击成功率评估器进行评分。数据集附带一个系统的风险分类法,定义了12种技能相关风险,并归类为数据管道利用、系统环境利用和代理自主性利用三大类别。数据以任务环境树状结构组织,包含任务、技能、风险类型等元数据字段,适用于AI安全性评估、红队测试、代理安全研究以及提示注入防御等场景。
SkillHarm is a benchmark dataset focused on skill-based attacks in the lifecycle of AI agent skills. It aims to systematically evaluate the vulnerabilities of third-party skills as a supply chain attack surface, containing 879 executable attack samples that cover two core attack scenarios: fixed payload poisoning (687 samples) and self-mutating poisoning (192 samples). Each attack sample is built within an executable Harbor task environment and scored by a deterministic attack success rate evaluator. The dataset includes a systematic risk taxonomy that defines 12 skill-related risks, categorized into three major classes: data pipeline exploitation, system environment exploitation, and agent autonomy exploitation. The data is organized in a task environment tree structure, with metadata fields such as task, skill, and risk type, making it suitable for AI security evaluation, red team testing, agent security research, and prompt injection defense scenarios.
数据集概述:SkillHarm
SkillHarm 是一个专注于 LLM 智能体(Agent)在技能使用生命周期中面临的安全攻击基准,尤其针对第三方技能引发的供应链漏洞。该数据集由 OSU NLP Group 构建,包含 879 个攻击样本,并配有系统化的风险分类体系(12 种风险类型)和可运行的 Harbor 任务环境。
数据集构成
数据集包含两种攻击场景:
| 场景 | 样本数 | 任务数 | 技能数 | 风险类型数 |
|---|---|---|---|---|
| 固定载荷投毒(FPP) | 687 | 57 个用户任务 | 71 | 12 |
| 自变异投毒(SMP) | 192 | 12 个任务对 | 6 | 12 |
风险分类体系
攻击样本覆盖 3 大类别、12 种风险类型(字段名:risk_id):
| 类别 | 风险类型 |
|---|---|
| 数据管道利用 | data_exfiltration(数据窃取)、output_manipulation(输出篡改)、poisoning(投毒) |
| 系统环境利用 | privilege_escalation(权限提升)、unauthorized_file_modification(未授权文件修改)、backdoor_injection(后门注入)、dos(拒绝服务)、malware_deployment(恶意软件部署)、system_corruption(系统破坏) |
| 智能体自主性利用 | goal_hijacking(目标劫持)、anti_forensics(反取证)、proxy_attack(代理攻击) |
数据加载方式
该数据集是一个可运行的任务环境树,并非扁平表格。推荐通过 Hugging Face Hub 客户端下载完整版本:
python from huggingface_hub import snapshot_download local_dir = snapshot_download(repo_id="osunlp/SkillHarm", repo_type="dataset")
MANIFEST.json:索引所有 879 个样本,每个条目包含指向对应样本目录的path字段。fpp_index.jsonl和smp_index.jsonl:分别对应 FPP 和 SMP 场景的索引文件(每行一个样本),可直接用于浏览或过滤:
python from datasets import load_dataset fpp = load_dataset("osunlp/SkillHarm", "fpp", split="train") # 687 行 smp = load_dataset("osunlp/SkillHarm", "smp", split="train") # 192 行
运行样本
每个样本是一个可运行的 Harbor 任务,端到端驱动脚本请参考 GitHub 仓库。
- FPP 场景:使用投毒技能运行用户任务,然后读取确定性 ASR(攻击成功率)信号。
- SMP 场景:先运行任务 A(修改共享技能),快照技能文件夹,覆写到任务 B 的容器中,运行任务 B,再检查
test_detection.py。
引用信息
bibtex @article{ning2026skillharm, title = {SkillHarm: Lifecycle-Aware Skill-Based Attacks via Automated Construction}, author = {Ning, Yuting and Zhang, Zhehao and Lal, Yash Kumar and Gou, Boyu and Li, Junyi and Ruan, Weitong and Ye, Chentao and Gupta, Rahul and Yang, Diyi and Su, Yu and Sun, Huan}, journal={arXiv preprint arXiv:2606.02540}, year = {2026} }
许可与语言
- 许可协议:CC-BY-4.0
- 语言:英语(en)
- 标签:
ai-safety、agent-security、prompt-injection、skill-based-attacks、red-teaming、llm-agents - 数据规模:n<1K(样本总数少于 1000)




