arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2507.07417cs.CRcs.AIcs.CL
收藏

请允许我注意:利用架构感知攻击打破基于微调的提示注入防御

May I have your Attention? Breaking Fine-Tuning based Prompt Injection Defenses using Architecture-Aware Attacks

UC San Diego(加州大学圣迭戈分校)

Nishit V. Pandya, Andrey Labunets, Sicun Gao, Earlence Fernandes

AI总结:

本文提出一种基于注意力的攻击算法,揭示了现有白盒提示注入防御的不足,攻击成功率高达85-95%

摘要:

针对大型语言模型(LLMs)上的提示注入攻击,一种流行的防御方法依赖于微调来区分指令和数据,从而使LLM不遵循可能存在于数据中的指令。我们通过构建强大的基于优化的攻击来评估这种方法在白盒环境中的鲁棒性,并证明这些防御措施未能提供所声称的安全属性。具体来说,我们为文本LLMs构建了一种基于注意力的攻击算法,并将其应用于三种最近的白盒防御措施SecAlign(CCS 2025)、SecAlign++和StruQ(USENIX Security 2025),展示了在未见过的提示上攻击成功率高达85-95%,在攻击者预算方面仅需要适度增加token数量。我们的发现为理解白盒环境下提示注入防御的鲁棒性做出了根本性的进展。我们发布我们的代码和攻击在https://github.com/nishitvp/better_opts_attacks

英文摘要:

A popular class of defenses against prompt injection attacks on large language models (LLMs) relies on fine-tuning to separate instructions and data, so that the LLM does not follow instructions that might be present with data. We evaluate the robustness of this approach in the whitebox setting by constructing strong optimization-based attacks, and show that the defenses do not provide the claimed security properties. Specifically, we construct a novel attention-based attack algorithm for textual LLMs and apply it to three recent whitebox defenses SecAlign (CCS 2025), SecAlign++, and StruQ (USENIX Security 2025), showing attacks with success rates of up to \textbf{85-95\%} on unseen prompts with modest increase in attacker budget in terms of tokens. Our findings make fundamental progress towards understanding the robustness of prompt injection defenses in the whitebox setting. We release our code and attacks at https://github.com/nishitvp/better_opts_attacks

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

↑