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

无需攻击:用于代理技能规范违规的语义模糊测试

No Attack Required: Semantic Fuzzing for Specification Violations in Agent Skills

University of California, San Diego(加州大学圣迭戈分校)

Ying Li, Hongbo Wen, Yanju Chen, Hanzhi Liu, Yuan Tian, Yu Feng

AI总结:

本文提出Sefz框架,通过语义模糊测试发现代理技能中的规范违规问题,揭示了安全规则漏洞对用户信任的影响。

摘要:

LLM驱动的代理可以常规用户请求下 silently 删除文档、泄露凭证或转移资金,不是因为被攻击,而是因为所调用的技能违反了自身声明的安全规则。我们称这些违规为规范违规:良性输入导致技能突破其自身规范中的自然语言防护栏,通常因为防护栏的语义在自主执行中未定义,或因为实现默许忽略文档约束。这些违规对静态分析器、传统模糊测试和提示注入防御均不可见,却削弱了用户安装技能时信任的合同。我们提出Sefz,一个目标导向的语义模糊测试框架,自动发现代理技能中的规范违规。Sefz将每个防护栏转化为注释执行轨迹上的可达性目标,将违规检查减少为确定性图查询。基于LLM的变异器生成良性输入,其轨迹逐步接近违规模式,由多臂老虎机引导,使用目标接近度作为奖励信号。在402个现实世界技能上,Sefz发现120个(29.9%)规范违规,包括26个此前未知的可利用防护栏违规。六个反复出现的规范陷阱解释了大部分失败,表明了更安全技能设计的原则。

英文摘要:

LLM-powered agents can silently delete documents, leak credentials, or transfer funds on a routine user request, not because the agent was attacked, but because the skill it invoked broke its own declared safety rules. We call these specification violations: benign inputs cause a skill to breach the natural-language guardrails in its own specification, typically because the guardrail's semantics are undefined for autonomous execution, or because the implementation silently ignores the documented constraint. These violations are invisible to static analyzers, traditional fuzzers, and prompt-injection defenses alike, yet they undermine the very contract a user trusts when installing a skill. We present Sefz, a goal-directed semantic fuzzing framework that automatically discovers specification violations in agent skills. Sefz translates each guardrail into a reachability goal over an annotated execution trace, reducing violation checking to a deterministic graph query. An LLM-based mutator generates benign inputs whose traces progressively approach the violation patterns, guided by a multi-armed bandit that uses goal-proximity as its reward signal. On 402 real-world skills from the largest public agent-skill marketplace, Sefz finds specification violations in 120 (29.9%), including 26 previously unknown exploitable guardrail violations in deployed skills. Six recurring specification pitfalls explain the bulk of the failures, suggesting concrete principles for safer skill design.

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

↑