LoopTrap: 对 LLM agent 的终止污染攻击
LoopTrap: Termination Poisoning Attacks on LLM Agents
AI总结:
本文研究了LLM agent迭代执行循环中的终止污染风险,提出10种攻击策略并通过实验证明不同agent的行为特征影响攻击效果,设计了自动化框架LoopTrap以提升红队攻击效率。
摘要:
现代LLM agent通过迭代执行循环解决复杂任务,通过反复推理、行动和自我评估来判断任务完成。本文发现,尽管这种自主循环促进自主性,但也引入了关键风险:通过向agent的上下文注入恶意提示,攻击者可以扭曲agent的终止判断,使其认为任务未完成,导致计算无界。为理解这一威胁,我们将其定义并系统化地刻画为终止污染,并设计了10种代表性攻击策略。通过覆盖8个LLM agent和60个任务的实证研究,我们证明不同LLM agent表现出不同的行为特征,这些特征决定了哪些策略成功。这些可转移的模式可以作为原则性的指导,帮助设计针对以前未见过的agent和任务的有效攻击,实现大规模红队行动,超越手动设计的模板。基于这些见解,我们引入LoopTrap,一个自动化红队框架,通过利用agent的行为倾向合成目标特定的恶意提示。LoopTrap首先通过轻量级探测构建目标agent的四个漏洞维度行为档案。然后进行自适应陷阱合成,通过自我评分机制路由到最有效的策略并选择最佳注入。最后,成功的陷阱被抽象为可重用的技能库,而失败的尝试则通过自我反思进行优化,确保持续改进。广泛的评估显示,LoopTrap在8个主流agent上实现了平均3.57倍的步骤放大,峰值为25倍。
英文摘要:
Modern LLM agents solve complex tasks by operating in iterative execution loops, where they repeatedly reason, act, and self-evaluate progress to determine when a task is complete. In this work, we show that while this self-directed loop facilitates autonomy, it also introduces a critical risk: by injecting malicious prompts into the agent's context, an adversary can distort the agent's termination judgment, making it believe the task remains incomplete and leading to unbounded computation.To understand this threat, we define and systematically characterize it as Termination Poisoning and design 10 representative attack strategies. Through a empirical study spanning 8 LLM agents and 60 tasks, we demonstrate that different LLM agents exhibit distinct behavioral signatures that determine which strategies succeed. These transferable patterns can serve as principled guidance for crafting effective attacks against previously unseen agents and tasks, enabling scalable red-teaming beyond manually designed templates. Building on these insights, we introduce LoopTrap, an automated red-teaming framework that synthesizes target-specific malicious prompts by exploiting agent behavioral tendencies. LoopTrap first constructs a behavioral profile of the target agent along four vulnerability dimensions via lightweight probing. It then performs adaptive trap synthesis, routing to the most effective strategy and selecting optimal injections via a self-scoring mechanism. Finally, successful traps are abstracted into a reusable skill library, while failed attempts are refined through self-reflection, ensuring continuous improvement. Extensive evaluation shows that LoopTrap achieves an average of 3.57$\times$ step amplification across 8 mainstream agents, with a peak of 25$\times$.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。