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

Neural Exec:面向提示注入攻击的执行触发器学习(与从中学到的经验)

Neural Exec: Learning (and Learning from) Execution Triggers for Prompt Injection Attacks

EPFL(洛桑联邦理工学院);armasuisse(瑞士武器装备局)

Dario Pasquini, Martin Strohmeier, Carmela Troncoso

AI总结:

本文提出Neural Exec攻击,将提示注入执行触发器生成建模为可微搜索问题,利用学习方法自动生成更有效、灵活且能绕过黑名单检测的触发器。

摘要:

我们提出了一类新的提示注入攻击,称为 Neural Exec。与依赖手工构造字符串(例如“忽略之前的指令并……”)的已知攻击不同,我们表明可以将执行触发器的生成概念化为一个可微搜索问题,并使用基于学习的方法自主生成它们。我们的结果表明,一个有动机的对手可以伪造触发器,这些触发器不仅比当前手工构造的触发器效果显著更好,而且在形状、属性和功能上表现出固有的灵活性。在这个方向上,我们表明攻击者可以设计并生成能够持续通过多阶段预处理流水线的 Neural Exec,例如在基于检索增强生成(RAG)的应用中。更关键的是,我们的发现表明攻击者可以生成在形式和形状上与任何已知攻击都明显不同的触发器,从而绕过现有的基于黑名单的检测和清洗方法。

英文摘要:

We introduce a new family of prompt injection attacks, termed Neural Exec. Unlike known attacks that rely on handcrafted strings (e.g., "Ignore previous instructions and..."), we show that it is possible to conceptualize the creation of execution triggers as a differentiable search problem and use learning-based methods to autonomously generate them. Our results demonstrate that a motivated adversary can forge triggers that are not only drastically more effective than current handcrafted ones but also exhibit inherent flexibility in shape, properties, and functionality. In this direction, we show that an attacker can design and generate Neural Execs capable of persisting through multi-stage preprocessing pipelines, such as in the case of Retrieval-Augmented Generation (RAG)-based applications. More critically, our findings show that attackers can produce triggers that deviate markedly in form and shape from any known attack, sidestepping existing blacklist-based detection and sanitation approaches.

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

↑