arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.06550cs.CRcs.AI
收藏

SkillSieve:一种用于检测恶意AI代理技能的分层分流框架

SkillSieve: A Hierarchical Triage Framework for Detecting Malicious AI Agent Skills

Department of Earth Science and Engineering(地球科学与工程系);Imperial College London(帝国理工学院伦敦分校);Department of Computer Science(计算机科学系);University College London(伦敦大学学院);Lingban Technology Co., Ltd.(灵伴科技有限公司);State Key Laboratory of General Artificial Intelligence, Peking University(北京大学通用人工智能国家重点实验室)

Yinghan Hou, Zongyou Yang

AI总结:

提出SkillSieve三层检测框架,通过启发式评分、LLM子任务分析和多LLM陪审团辩论,高效检测恶意AI代理技能,在390个技能基准上达到F1=0.920。

摘要:

OpenClaw的ClawHub市场托管了数万个社区贡献的代理技能(我们2026-04-04快照中有49,592个),最近的审计报告显示13-26%包含安全漏洞。正则表达式扫描器无法检测混淆的有效载荷;形式化静态分析器无法读取隐藏提示注入和社会工程的SKILL.md自然语言指令。这两种方法都无法覆盖两种模态。 SkillSieve是一个三层检测框架,仅在需要时应用更深入的分析。第1层通过召回调优的启发式评分器运行正则表达式、AST和元数据检查,过滤掉86%的数据量。第2层将可疑技能路由到LLM,将分析拆分为四个并行的子任务,并输出结构化结果。第3层将高风险技能提交给由三个LLM组成的陪审团,它们独立投票并在意见分歧时进行辩论。 我们在49,592个真实的ClawHub技能和跨越五种规避技术的对抗样本上进行了评估,在440美元的ARM单板计算机上运行该管道。在390个技能的标记基准上,SkillSieve以每个技能0.006美元的成本实现了F1=0.920(精确率0.912,召回率0.929)。可选的XGBoost快速路径减少了32%的第2/3层LLM调用,F1下降1.6点,同时保持了全管道的召回率(0.929)。为了跨生态系统泛化,我们将该框架适配到飞书/Lark,并扫描了52个真实包,其中第2层纠正了第1层因领域特定习语产生的误报,表明了一条低成本的适配路径到类似的企业平台。我们将SkillSieve部署为飞书聊天机器人,用于实时技能审查。代码、数据和基准已开源。

英文摘要:

Agent skills combine natural-language instructions with executable code while inheriting an agent's filesystem, credential, and network access. Attacks can span prose and files, whereas regex and code-only analyzers cover only one modality. SkillSieve applies three progressively deeper layers: recall-oriented regex, AST, and metadata triage; four parallel LLM security sub-tasks; and an independent three-model jury with debate on disagreement. We evaluate 49,592 real ClawHub skills, a 390-skill labeled benchmark, and 100 adversarial samples across five evasion techniques on a 440 USD ARM board. The full pipeline achieves F1 = 0.929 (precision 0.912, recall 0.945) at an average cost of $0.006 per skill. An optional XGBoost fast path reduces Layer-2/3 calls by 32% with a 1.7-point F1 decrease while preserving recall. On 52 Feishu/Lark packages, Layer 2 reclassifies 13 of 14 Layer-1 flags as safe after contextual analysis; we also deploy the system as a Feishu chat bot. Code, labels, and aggregate results are open-sourced.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑