OET:基于优化的提示注入评估工具包
OET: Optimization-based prompt injection Evaluation Toolkit
AI总结:
针对LLM提示注入攻击防御缺乏标准化评估框架的问题,提出基于优化的评估工具包OET,通过白盒与黑盒自适应测试生成最坏情况对抗样本,实验证明当前防御机制仍存在局限性。
摘要:
大型语言模型(LLMs)在自然语言理解和生成方面展现出卓越能力,使其在各个领域得到广泛应用。然而,它们对提示注入攻击的易感性带来了重大安全风险,因为对抗性输入可以操纵模型行为并覆盖预期指令。尽管已有众多防御策略,但仍缺乏一个标准化框架来严格评估其有效性,尤其是在自适应对抗场景下。为填补这一空白,我们引入了OET,这是一个基于优化的评估工具包,使用自适应测试框架系统地跨多种数据集对提示注入攻击和防御进行基准测试。我们的工具包具有模块化工作流,可促进对抗性字符串生成、动态攻击执行和全面的结果分析,为评估对抗鲁棒性提供了统一平台。至关重要的是,该自适应测试框架利用白盒和黑盒访问的优化方法来生成最坏情况下的对抗样本,从而实现严格的红队评估。大量实验凸显了当前防御机制的局限性,部分模型在实施安全增强后仍然容易受到攻击。
英文摘要:
Large Language Models (LLMs) have demonstrated remarkable capabilities in natural language understanding and generation, enabling their widespread adoption across various domains. However, their susceptibility to prompt injection attacks poses significant security risks, as adversarial inputs can manipulate model behavior and override intended instructions. Despite numerous defense strategies, a standardized framework to rigorously evaluate their effectiveness, especially under adaptive adversarial scenarios, is lacking. To address this gap, we introduce OET, an optimization-based evaluation toolkit that systematically benchmarks prompt injection attacks and defenses across diverse datasets using an adaptive testing framework. Our toolkit features a modular workflow that facilitates adversarial string generation, dynamic attack execution, and comprehensive result analysis, offering a unified platform for assessing adversarial robustness. Crucially, the adaptive testing framework leverages optimization methods with both white-box and black-box access to generate worst-case adversarial examples, thereby enabling strict red-teaming evaluations. Extensive experiments underscore the limitations of current defense mechanisms, with some models remaining susceptible even after implementing security enhancements.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。