超越恶意性:智能体技能的静态与运行时攻击面分析
Beyond Maliciousness: Static and Runtime Attack-Surface Profiling of Agent Skills
AI总结:
本文提出两阶段攻击面分析方法,对6309个智能体技能列表分析发现多数安装权限不可见,市场审核需基于捆绑包实际能力,该方法是恶意性检测的必要补充。
摘要:
智能体技能是工具型智能体读取作为指令的Markdown文档,随后以加载该文档的会话权限执行操作。安装一个技能会授予其指导智能体的权限(即指挥权,而非新权限),本文所衡量的正是该授权的规模。本文提出一种两阶段攻击面分析方法,将全捆绑包静态分析、依赖来源检查,与插桩沙箱执行、以及对生成轨迹的独立基于模型的评估相结合。我们将该方法应用于来自两个市场的6309个列表,选择这些列表执行时,不根据任何预先的威胁或风险信号做出决策。一半的语料库具备shell执行能力;文件系统读取的相应占比为35%,文件系统写入和网络出口各为31%,凭证访问为13%;十分之七的列表至少具备一项提升后的权限。这就是用户在安装时接受的攻击面,而几乎所有这些在安装时都不可见。存在权限模型,但几乎形同虚设。作者可在技能自身的前置元数据中列出其预先批准的工具,这会移除确认提示,而非限制技能可访问的内容;在6061个前置元数据可解析的列表中,仅有770个声明了任何内容,该词汇表无法表达凭证或环境访问权限,且没有任何机制将其声明内容与捆绑包实际行为进行核对。声明也并不准确:59%进行声明的列表低估了其捆绑包的实际能力。ClawHub的声明频率约为skillsmp的两倍,但其声明中88%存在低估,而skillsmp的这一比例为31%。因此,市场边界的审核不能依赖列表的声明内容,而必须依赖捆绑包的实际能力。这些结果表明,面向能力的攻击面分析是恶意性检测的必要补充。
英文摘要:
Agent skills are Markdown documents that a tool-using agent reads as instructions and then acts on with the privileges of the session that loaded them. Installing one grants authority (the standing to direct the agent, not new privilege), and the size of that grant is what we measure. We present a two-phase attack-surface profiling methodology that combines whole-bundle static analysis and dependency provenance checking with instrumented sandbox execution and separate model-based assessment of the resulting traces. We apply the methodology to 6,309 listings from two marketplaces, selecting listings for execution without conditioning that decision on a prior threat or risk signal. Half the corpus carries evidence of shell-execution capability; the corresponding shares are 35% for filesystem read, 31% each for filesystem write and network egress, and 13% for credential access; seven listings in ten carry at least one elevated capability. That is the surface a user accepts at install time, and almost none of it is visible then. A permission model exists but is close to inert. Authors may list the tools a skill pre-approves in its own frontmatter, which removes confirmation prompts rather than restricting what the skill can reach; of the 6,061 listings whose frontmatter parses, 770 declare anything at all, the vocabulary cannot express credential or environment access, and nothing checks what it does express against the bundle. Declaring is also not declaring accurately: 59% of declaring listings understate what their bundle can do. ClawHub declares roughly twice as often as skillsmp, yet under-declares on 88% of its declarations against 31%. Triage at the marketplace boundary therefore cannot rest on what a listing declares. It must rest on what the bundle can do. These results position capability-oriented attack-surface profiling as a necessary complement to maliciousness detection.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。