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

MalSkillBench: 一个运行时验证的恶意智能体技能基准

MalSkillBench: A Runtime-Verified Benchmark of Malicious Agent Skills

Nanyang Technological University(南洋理工大学);Sichuan University(四川大学);Nankai University(南开大学);DIGIDATIONS PTE. LTD.(Digidations私人有限公司)

Wenbo Guo, Wei Zeng, Chengwei Liu, Xiaojun Jia, Yijia Xu, Lei Tang, Yong Fang, Yang Liu

AI总结:

提出MalSkillBench,首个运行时验证的恶意智能体技能基准,包含3944个恶意技能,通过闭环生成-验证-反馈流水线构建,揭示代码注入与提示注入检测的不对称性,并指出联合推理任务意图、代码和指令的必要性。

摘要:

AI编码智能体(如Claude Code和Gemini CLI)越来越多地通过第三方技能扩展自身:这些技能是捆绑了自然语言指令、可执行脚本和工具权限的markdown包。由于技能同时是代码和面向智能体的指令,它引入了一种供应链依赖,其风险既非纯代码也非纯提示。检测工具从未针对覆盖这种混合空间的经过验证的真实情况进行评估,导致其有效性未知且仅限野外的评估存在偏差。我们提出MalSkillBench,首个运行时验证的恶意智能体技能基准:包含3944个恶意技能,按照108个单元的三维分类法进行标注。其中,3214个来自闭环生成-验证-反馈流水线,仅接受在Docker沙箱中在系统调用监控和LLM评判下恶意行为触发的样本;我们额外添加了703个野外样本和4000个匹配的良性技能。我们的测量结果一致:代码注入达到94.5%的验证率,但提示注入仅为75.8%,这种脆弱性后来使其难以检测;野外样本范围狭窄,主要来自一个加密货币盗窃活动(86.6%为单一行为,81%来自两个账户),但存在一个规模虽小但架构新颖的尾部,攻击智能体控制平面;最强的技能特定检测器在代码注入上达到98.4%的召回率,但在提示注入和智能体控制攻击上崩溃,仅凭野外评分会使排名波动高达66个召回点;供应链扫描器和提示注入防御各自仅看到技能的一半,没有组合能恢复代码-指令关系。因此,检测恶意技能需要联合推理任务意图、代码和指令。我们发布了数据集、流水线、基线和结果。

英文摘要:

AI coding agents such as Claude Code and Gemini CLI increasingly extend themselves with third-party skills: markdown packages bundling natural-language instructions, executable scripts, and tool permissions. Because a skill is at once code and agent-facing instruction, it introduces a supply chain dependency whose risk is neither pure code nor pure prompt. Detection tools have never been measured against verified ground truth spanning this hybrid space, leaving their effectiveness unknown and wild-only evaluations biased. We present MalSkillBench, the first runtime-verified benchmark of malicious agent skills: 3,944 malicious skills labeled along a three-dimensional taxonomy of 108 cells. Of these, 3,214 come from a closed-loop Generate-Verify-Feedback pipeline admitting only samples whose malicious behavior fires inside a Docker sandbox under system-call monitoring and an LLM judge; we add 703 in-the-wild and 4,000 matched benign skills. Our measurements are consistent: code injection reaches 94.5% verification yield but prompt injection only 75.8%, the same fragility that later makes it hard to detect; the wild sample is narrow, dominated by one cryptocurrency-theft campaign (86.6% one behavior, 81% from two accounts) with a small but architecturally new tail attacking the agent control plane; the strongest skill-specific detector reaches 98.4% recall on code injection yet collapses on prompt-injection and agent-control attacks, and wild-only scoring swings the ranking by up to 66 recall points; supply-chain scanners and prompt-injection defenses each see only half of a skill, and no combination recovers the code-instruction relationship. Detecting malicious skills therefore requires reasoning jointly over task intent, code, and instructions. We release the dataset, pipeline, baselines, and results.

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

↑