SkillScope:迈向细粒度最小特权执行的代理技能
SkillScope: Toward Fine-Grained Least-Privilege Enforcement for Agent Skills
AI总结:
本文提出SkillScope框架,通过图分析方法实现细粒度最小特权执行,检测技能超特权行为,实验表明其在检测和约束超特权方面效果显著。
摘要:
Agent Skills已成为扩展LLM代理的实用方法,通过将元数据、自然语言指令和可执行资源打包成可重用能力包。然而,快速增长的Skill生态系统引入了新的合规风险:技能可能执行高影响操作,超出用户当前任务的最小必要范围,从而违反最小特权原则。现有技能检测方法无法解决此问题,因为该问题本质上是任务条件性的:同一操作在一种用户提示下可能是必要的,但在另一种提示下可能过度授权。本文提出SkillScope框架,采用基于图的分析方法,将指令级过程和代码级操作建模为细粒度动作节点。它提取潜在过度授权候选者,在图实例化用户任务下通过回放分析验证,并通过控制流特权约束限制验证的过度授权动作。通过有效性实验和大规模现实世界测量评估SkillScope。SkillScope在技能过度授权检测上达到94.53%的F1值。在现实环境中,SkillScope验证了7,039个存在过度授权行为的技能,表明当前Skill生态系统中最小特权违规普遍存在。在特权约束评估中,SkillScope将触发的过度授权动作-任务实例减少了88.56%,同时保持了合法任务的完成。
英文摘要:
Agent Skills have become a practical way to extend LLM agents by packaging metadata, natural-language instructions, and executable resources into reusable capability bundles. However, this growing Skill ecosystem introduces a new compliance risk: a Skill may perform high-impact actions that fall outside the scope permitted by the user's current request, thereby violating least privilege. Existing skill detection approaches are insufficient for this problem because it is inherently task-conditioned: the same action may be legitimate under one user prompt but over-privileged under another. In this paper, we present SkillScope, a framework for fine-grained least-privilege enforcement in Agent Skills. SkillScope adopts a graph-based analysis approach that models instruction-level procedures and code-level operations as fine-grained action nodes. It extracts potential over-privilege candidates, validates them under graph-instantiated user tasks through runtime analysis, and constrains validated over-privileged actions via control-flow privilege constraining. We evaluate SkillScope through effectiveness experiments and large-scale real-world measurement. SkillScope achieves a 94.53% skill-level F1 score for over-privilege detection. In the wild, SkillScope validates 6,590 of 68,312 valid real-world Skills as exhibiting over-privileged behaviors, showing that least-privilege violations are prevalent in current Skill ecosystems. In the privilege-constraining evaluation, SkillScope reduces triggered over-privileged action-in-task instances by 88.56% while preserving legitimate task completion.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。