arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.06737cs.CRcs.CL
收藏

Raccoon:LLM 集成应用的提示词提取基准

Raccoon: Prompt Extraction Benchmark of LLM-Integrated Applications

Duke University(杜克大学);UMass Amherst(马萨诸塞大学阿默斯特分校)

Junlin Wang, Tianyi Yang, Roy Xie, Bhuwan Dhingra

AI总结:

本文提出 Raccoon 基准,覆盖14类提示词提取攻击、复合攻击与多种防御模板,系统评估 LLM 集成应用在有无防御时的提示词泄露风险与鲁棒性。

摘要:

随着 GPT-s 等 LLM 集成应用的激增,数百万此类应用被部署,并通过专有指令提示词提供有价值的服务。然而,这些系统容易受到通过精心设计的查询实施的提示词提取攻击。为帮助缓解这一问题,我们提出 Raccoon 基准,用于全面评估模型对提示词提取攻击的易感性。我们新颖的评估方法在无防御和有防御两种场景下评估模型,采用双重方式评估现有防御的有效性以及模型的韧性。该基准包含 14 类提示词提取攻击,以及紧密模拟潜在攻击者策略的额外复合攻击,还有多样化的防御模板集合。据我们所知,这一组合是迄今为止关于提示词窃取攻击和防御机制最广泛的汇编。我们的发现强调,在缺乏防御时,模型普遍容易受到提示词窃取;而在受到保护时,OpenAI 模型表现出显著的韧性。本文旨在建立一个更系统的基准,以评估 LLM 针对提示词提取攻击的鲁棒性,并为其成因和潜在对策提供洞见。Raccoon 的资源已公开发布于 https://github.com/M0gician/RaccoonBench。

英文摘要:

With the proliferation of LLM-integrated applications such as GPT-s, millions are deployed, offering valuable services through proprietary instruction prompts. These systems, however, are prone to prompt extraction attacks through meticulously designed queries. To help mitigate this problem, we introduce the Raccoon benchmark which comprehensively evaluates a model's susceptibility to prompt extraction attacks. Our novel evaluation method assesses models under both defenseless and defended scenarios, employing a dual approach to evaluate the effectiveness of existing defenses and the resilience of the models. The benchmark encompasses 14 categories of prompt extraction attacks, with additional compounded attacks that closely mimic the strategies of potential attackers, alongside a diverse collection of defense templates. This array is, to our knowledge, the most extensive compilation of prompt theft attacks and defense mechanisms to date. Our findings highlight universal susceptibility to prompt theft in the absence of defenses, with OpenAI models demonstrating notable resilience when protected. This paper aims to establish a more systematic benchmark for assessing LLM robustness against prompt extraction attacks, offering insights into their causes and potential countermeasures. Resources of Raccoon are publicly available at https://github.com/M0gician/RaccoonBench.

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

↑