arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.01908cs.CRcs.AIcs.LG
收藏

UDora:一种通过动态劫持自身推理以对抗LLM智能体的统一红队框架

UDora: A Unified Red Teaming Framework against LLM Agents by Dynamically Hijacking Their Own Reasoning

Department of Computer Science, University of Chicago(芝加哥大学计算机科学系);Meta;Department of Computer Science, University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校计算机科学系)

Jiawei Zhang, Shuang Yang, Bo Li

AI总结:

针对LLM智能体执行恶意操作难的问题,提出统一红队框架UDora,通过生成推理轨迹、插入扰动并迭代优化,诱导智能体执行指定恶意行为,在三个数据集上效果优于现有方法。

摘要:

配备外部工具的大型语言模型(LLM)智能体在网络购物、自动邮件回复和金融交易等复杂任务中日益强大,但这些进步也放大了对抗攻击的风险,尤其是当智能体可访问敏感外部功能时。不过,操纵LLM智能体执行针对性恶意操作或调用特定工具仍具挑战,因为它们在执行最终操作前会进行大量推理或规划。本文提出UDora,一种为LLM智能体设计的统一红队框架,通过动态劫持智能体的推理过程迫使其产生恶意行为。具体而言,UDora首先针对给定任务生成模型的推理轨迹,然后自动识别轨迹中的最优位置插入针对性扰动,将扰动后的推理作为优化的代理响应。通过迭代应用此过程,LLM智能体将被诱导执行指定的恶意操作或调用特定恶意工具。我们的方法在三个LLM智能体数据集上表现出优于现有方法的有效性,代码可在https://github.com/AI-secure/UDora获取。

英文摘要:

Large Language Model (LLM) agents equipped with external tools have become increasingly powerful for complex tasks such as web shopping, automated email replies, and financial trading. However, these advancements amplify the risks of adversarial attacks, especially when agents can access sensitive external functionalities. Nevertheless, manipulating LLM agents into performing targeted malicious actions or invoking specific tools remains challenging, as these agents extensively reason or plan before executing final actions. In this work, we present UDora, a unified red teaming framework designed for LLM agents that dynamically hijacks the agent's reasoning processes to compel malicious behavior. Specifically, UDora first generates the model's reasoning trace for the given task, then automatically identifies optimal points within this trace to insert targeted perturbations. The resulting perturbed reasoning is then used as a surrogate response for optimization. By iteratively applying this process, the LLM agent will then be induced to undertake designated malicious actions or to invoke specific malicious tools. Our approach demonstrates superior effectiveness compared to existing methods across three LLM agent datasets. The code is available at https://github.com/AI-secure/UDora.

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

↑