被越狱的 GenAI 模型可能造成重大危害:GenAI 驱动的应用易受 PromptWares 攻击
A Jailbroken GenAI Model Can Cause Substantial Harm: GenAI-powered Applications are Vulnerable to PromptWares
AI总结:
本文提出 PromptWare 攻击,通过用户输入越狱 GenAI 模型,并分别针对已知与未知应用逻辑实现 DoS 无限循环及六步 APwT 杀伤链,验证其可篡改 SQL 并造成未授权折扣。
摘要:
在本文中,我们论证了被越狱的 GenAI 模型可能对 GenAI 驱动的应用造成重大危害,并促成 PromptWare——一种新型攻击,它将 GenAI 模型的行为从为应用服务转变为攻击该应用。PromptWare 利用用户输入对 GenAI 模型进行越狱,以在 GenAI 驱动的应用上下文中强迫或执行恶意活动。首先,我们介绍了 PromptWare 的一种朴素实现,其表现为针对 Plan & Execute 架构(又称 ReAct、function calling)的恶意软件。我们表明,在攻击者已知 GenAI 驱动应用逻辑的前提下,攻击者可以通过构造能够产生预期输出的用户输入来强制形成所需的执行流。我们演示了一种 DoS 攻击的应用,该攻击触发 GenAI 驱动助手的执行进入无限循环,从而在对 GenAI 引擎的冗余 API 调用上浪费资金和计算资源,阻止应用向用户提供服务。接下来,我们介绍一种更复杂的 PromptWare 实现,并将其命名为 Advanced PromptWare Threat(APwT),其针对攻击者未知逻辑的 GenAI 驱动应用。我们表明,攻击者可以构造用户输入,利用 GenAI 引擎的高级 AI 能力,在推理时启动由六个步骤组成的杀伤链,旨在提升权限、分析应用上下文、识别有价值资产、推理可能的恶意活动、从中选择一项并执行。我们演示了 APwT 针对一个 GenAI 驱动电子商务聊天机器人的应用,并表明它可以触发对 SQL 表的修改,从而可能导致向用户销售商品时出现未经授权的折扣。
英文摘要:
In this paper we argue that a jailbroken GenAI model can cause substantial harm to GenAI-powered applications and facilitate PromptWare, a new type of attack that flips the GenAI model's behavior from serving an application to attacking it. PromptWare exploits user inputs to jailbreak a GenAI model to force/perform malicious activity within the context of a GenAI-powered application. First, we introduce a naive implementation of PromptWare that behaves as malware that targets Plan & Execute architectures (a.k.a., ReAct, function calling). We show that attackers could force a desired execution flow by creating a user input that produces desired outputs given that the logic of the GenAI-powered application is known to attackers. We demonstrate the application of a DoS attack that triggers the execution of a GenAI-powered assistant to enter an infinite loop that wastes money and computational resources on redundant API calls to a GenAI engine, preventing the application from providing service to a user. Next, we introduce a more sophisticated implementation of PromptWare that we name Advanced PromptWare Threat (APwT) that targets GenAI-powered applications whose logic is unknown to attackers. We show that attackers could create user input that exploits the GenAI engine's advanced AI capabilities to launch a kill chain in inference time consisting of six steps intended to escalate privileges, analyze the application's context, identify valuable assets, reason possible malicious activities, decide on one of them, and execute it. We demonstrate the application of APwT against a GenAI-powered e-commerce chatbot and show that it can trigger the modification of SQL tables, potentially leading to unauthorized discounts on the items sold to the user.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。