POISE:面向LLM智能体的位置感知不可检测技能注入攻击
One Skill, Two Masters: Serving Users and Attackers through Skill Injection
AI总结:
提出POISE攻击方法,通过位置感知将恶意指令压缩为单一良性指令嵌入技能正文,在保持隐蔽性的同时实现89.3%的攻击成功率,比随机位置基线高28.0个百分点。
摘要:
智能体技能为扩展通用智能体提供了一种轻量级机制,但其开放格式使其容易受到技能投毒攻击。实际危险的注入必须保持不可见:如果执行有效载荷破坏了用户的合法任务,由此产生的失败信号会引发对技能的检查。因此,我们通过攻击成功率(ASR)来评估攻击,这要求注入的有效载荷得以执行,并且用户的任务在同一试验中仍能通过验证器。先前的技能投毒攻击在此视角下面临可靠性-隐蔽性权衡:YAML头部注入可靠加载但易被检查,而将显式恶意命令置于技能正文中的更隐蔽的注入方式则可靠性较低,因为脱离上下文的命令会引发智能体自身的怀疑。我们提出POISE,一种位置感知攻击,将触发器压缩为单个看似良性的正文指令,将其放置在可行位置,并使用上下文感知生成器使其与附近的设置或前提步骤融合。在Skill-Inject(使用codex+gpt-5.2)上,POISE实现了89.3%的ASR,比随机位置正文基线高28.0个百分点,比仅YAML基线高2.6个百分点,同时保留了正文放置的隐蔽性优势。这种隐蔽性是决定性的优势:由于合法的技能正文自然需要特权工具操作,LLM扫描器高度敏感,在四个评判者和两个基准测试中平均将74.6%的干净技能误报为高风险。融入这些误报中,POISE仅导致5.6%的投毒变体相比其干净基线获得新的高风险警报,使得当前的静态防御无效。
英文摘要:
Large language model agents use skills that package reusable instructions, code, and resources. Existing skill-injection attacks exploit trust in these packages by adding malicious content. As agents become more capable, however, they can skip unnecessary steps, inspect code, and reject unrelated actions. We introduce PERSIST, which connects attacker-chosen actions to useful functions for recurring tasks while reducing source inspection and expressed suspicion. It builds these helpers from simulated executions without access to real evaluation tasks or feedback. Skill descriptions introduce the helpers, while usage instructions explain how to call them. The extra action resides in an imported module separate from the helper entry file. Executing the helper can then serve both the user's task and the attacker's objective. Experiments on SkillsBench and Skill-Inject show that frozen packages transfer across four agent--model configurations and generalize to multiple unseen tasks without revision. Harmful effects can occur alongside successful task completion. A separate matched comparison shows higher harmful-effect rates with less source inspection and expressed suspicion than two baselines. Paired case studies illustrate how PERSIST can evade rejection, while ablations confirm the contributions of documentation guidance and module separation. Code: https://github.com/liofoil/SkillSafety.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。