Imprompter:诱骗LLM智能体进行不当工具使用
Imprompter: Tricking LLM Agents into Improper Tool Use
AI总结:
本文提出Imprompter攻击,利用提示优化自动生成混淆对抗性提示,诱骗LLM智能体不当使用工具,并在LeChat、ChatGLM、Llama等系统上验证了其跨模态窃取用户信息的有效性。
摘要:
大语言模型(LLM)智能体是一种新兴的计算范式,它将生成式机器学习与代码解释器、网页浏览、电子邮件以及更广泛的外部资源等工具相结合。这些基于智能体的系统代表了个人计算领域的新兴转变。我们为基于智能体的系统安全基础做出贡献,并揭示了一类新型的自动计算的混淆对抗性提示攻击,这类攻击会破坏连接到LLM智能体的用户资源的机密性和完整性。我们展示了在给定模型权重的情况下,提示优化技术如何自动找到此类提示。我们证明此类攻击可以迁移到生产级智能体。例如,我们展示了对Mistral的LeChat智能体的信息窃取攻击,该攻击分析用户的对话,提取个人可识别信息,并将其格式化为有效的markdown命令,导致这些数据泄露到攻击者的服务器。在端到端评估中,该攻击显示出接近80%的成功率。我们进行了一系列实验来刻画这些攻击的有效性,并发现它们能够可靠地作用于新兴的基于智能体的系统,如Mistral的LeChat、ChatGLM和Meta的Llama。这些攻击是多模态的,我们展示了纯文本领域和图像领域的变体。
英文摘要:
Large Language Model (LLM) Agents are an emerging computing paradigm that blends generative machine learning with tools such as code interpreters, web browsing, email, and more generally, external resources. These agent-based systems represent an emerging shift in personal computing. We contribute to the security foundations of agent-based systems and surface a new class of automatically computed obfuscated adversarial prompt attacks that violate the confidentiality and integrity of user resources connected to an LLM agent. We show how prompt optimization techniques can find such prompts automatically given the weights of a model. We demonstrate that such attacks transfer to production-level agents. For example, we show an information exfiltration attack on Mistral's LeChat agent that analyzes a user's conversation, picks out personally identifiable information, and formats it into a valid markdown command that results in leaking that data to the attacker's server. This attack shows a nearly 80% success rate in an end-to-end evaluation. We conduct a range of experiments to characterize the efficacy of these attacks and find that they reliably work on emerging agent-based systems like Mistral's LeChat, ChatGLM, and Meta's Llama. These attacks are multimodal, and we show variants in the text-only and image domains.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。