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

我的爱,华生。通过神经符号推理跨异构工件检测恶意技能

MalSkills: Detecting Malicious Skills in the Agentic Supply Chain via Neuro-symbolic Reasoning

Huazhong University of Science and Technology(华中科技大学);Ant Group(蚂蚁集团)

Shenao Wang, Junjie He, Yanjie Zhao, Yayi Wang, Kan Yu, Haoyu Wang

AI总结:

本文提出MalSkills框架,通过符号解析与LLM语义分析提取异构工件中的安全敏感操作,构建技能依赖图并进行神经符号推理,实现恶意技能检测,实验表明其在F1得分上优于现有方法。

摘要:

技能被越来越多地用于通过打包提示、代码和配置为可重用模块来扩展LLM代理。随着公共注册表和市场places的扩展,它们形成了一个新兴的代理供应链,但也引入了新的恶意技能攻击面。检测恶意技能具有挑战性,因为相关证据通常分布在异构工件中且必须在上下文中进行推理。现有的静态、基于LLM和动态方法只能捕捉问题的一部分,不足以在现实世界中实现稳健的检测。在本文中,我们提出了MalSkills,一种用于恶意技能检测的神经符号框架。MalSkills首先通过符号解析和LLM辅助的语义分析从异构工件中提取安全敏感操作。然后构建技能依赖图,将工件、操作、操作数和值流连接起来。在该图之上,MalSkills进行神经符号推理以推断恶意模式或之前未见过的可疑工作流程。我们对200个现实世界技能的基准进行评估,与5种最先进的基线方法相比,MalSkills在F1得分上达到93%,优于基线方法5至87个百分点。我们进一步将MalSkills应用于分析从7个公共注册表收集的150,108个技能,揭示了620个恶意技能。目前,我们已审查了其中100个,并识别出76个以前未知的恶意技能,这些都已负责任地报告,并正在等待平台和维护者的确认。这些结果展示了MalSkills在保障代理供应链安全方面的潜力。

英文摘要:

Skills are increasingly used to extend LLM agents by packaging prompts, code, and configurations into reusable modules. As public registries and marketplaces expand, they form an emerging agentic supply chain, but also introduce a new attack surface for malicious skills. Detecting malicious skills is challenging because relevant evidence is often distributed across heterogeneous artifacts and must be reasoned in context. Existing static, LLM-based, and dynamic approaches each capture only part of this problem, making them insufficient for robust real-world detection. In this paper, we present MalSkills, a neuro-symbolic framework for malicious skills detection. MalSkills first extracts security-sensitive operations from heterogeneous artifacts through a combination of symbolic parsing and LLM-assisted semantic analysis. It then constructs the skill dependency graph that links artifacts, operations, operands, and value flows across the skill. On top of this graph, MalSkills performs neuro-symbolic reasoning to infer malicious patterns or previously unseen suspicious workflows. We evaluate MalSkills on a benchmark of 200 real-world skills against 5 state-of-the-art baselines. MalSkills achieves 93% F1, outperforming the baselines by 5--87 percentage points. We further apply MalSkills to analyze 150,108 skills collected from 7 public registries, flagging 620 potentially malicious skills. Through manual review, we confirm that 400 of them are indeed malicious, all of which were responsibly reported and are currently awaiting confirmation from the platforms and maintainers. These results demonstrate the practical potential of MalSkills in securing the agentic supply chain.

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

↑