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

超越基准:对抗提示注入攻击的创新防御

Beyond the Benchmark: Innovative Defenses Against Prompt Injection Attacks

Dept. of CS, SDS BRAC University(计算机科学系,BRAC大学);Dept. of CSE, SDS BRAC University(计算机工程系,BRAC大学)

Safwan Shaheer, G. M. Refatul Islam, Mohammad Rafid Hamid, Tahsin Zaman Jilan

AI总结:

本文提出创新防御机制,通过迭代优化防御提示,有效缓解LLM中的目标劫持漏洞,提升小型开源模型的安全性与部署效率。

摘要:

在LLM快速发展的领域中,本文讨论了提示注入攻击所带来的重大安全风险。本文重点研究小型开源模型,特别是LLaMA系列模型。我们引入了新的防御机制,能够自动生成防御措施,并系统地评估这些生成的防御措施对全面的基准攻击的应对能力。因此,我们通过实验证明了所提出方法在缓解LLM中的目标劫持漏洞方面的改进。我们的工作认识到小型开源LLM日益重要的相关性及其在边缘设备上的广泛应用潜力,符合未来LLM应用的趋势。我们为开源LLM及其安全做出了以下贡献:(1) 评估当前基于提示的防御措施对最新攻击的应对能力;(2) 引入一个新的框架,使用种子防御(思维链)来迭代优化防御提示;(3) 显示在检测目标劫持攻击方面有显著改进。我们的策略显著降低了攻击的成功率和误检率,同时有效检测目标劫持能力,为在资源受限环境中更安全、更高效的部署小型和开源LLM铺平了道路。

英文摘要:

In this fast-evolving area of LLMs, our paper discusses the significant security risk presented by prompt injection attacks. It focuses on small open-sourced models, specifically the LLaMA family of models. We introduce novel defense mechanisms capable of generating automatic defenses and systematically evaluate said generated defenses against a comprehensive set of benchmarked attacks. Thus, we empirically demonstrated the improvement proposed by our approach in mitigating goal-hijacking vulnerabilities in LLMs. Our work recognizes the increasing relevance of small open-sourced LLMs and their potential for broad deployments on edge devices, aligning with future trends in LLM applications. We contribute to the greater ecosystem of open-source LLMs and their security in the following: (1) assessing present prompt-based defenses against the latest attacks, (2) introducing a new framework using a seed defense (Chain Of Thoughts) to refine the defense prompts iteratively, and (3) showing significant improvements in detecting goal hijacking attacks. Out strategies significantly reduce the success rates of the attacks and false detection rates while at the same time effectively detecting goal-hijacking capabilities, paving the way for more secure and efficient deployments of small and open-source LLMs in resource-constrained environments.

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

↑