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

Signed-Prompt:一种防止针对LLM集成应用的提示注入攻击的新方法

Signed-Prompt: A New Approach to Prevent Prompt Injection Attacks Against LLM-Integrated Applications

The Hong Kong Polytechnic University(香港理工大学)

Xuchen Suo

AI总结:

本文提出Signed-Prompt方法,通过对敏感指令进行签名使LLM识别可信来源,从而有效防御提示注入攻击,实验验证了其稳健性。

摘要:

大型语言模型(LLMs)集成应用中的提示注入攻击是一个关键挑战,也是人工智能(AI)领域日益受到关注的问题。此类攻击通过自然语言输入操纵LLMs,对这些应用的安全性构成重大威胁。传统的防御策略,包括输出过滤、输入过滤以及分隔符的使用,已被证明不够充分。本文提出“Signed-Prompt”方法作为一种新的解决方案。该研究由授权用户对命令片段中的敏感指令进行签名,使LLM能够辨别可信的指令来源。本文对提示注入攻击模式进行了全面分析,随后详细解释了Signed-Prompt的概念,包括其基本架构以及通过提示工程和LLMs微调两种方式实现的方法。实验证明了Signed-Prompt方法的有效性,显示出对各种类型提示注入攻击的显著抵抗力,从而验证了其作为AI安全中一种稳健防御策略的潜力。

英文摘要:

The critical challenge of prompt injection attacks in Large Language Models (LLMs) integrated applications, a growing concern in the Artificial Intelligence (AI) field. Such attacks, which manipulate LLMs through natural language inputs, pose a significant threat to the security of these applications. Traditional defense strategies, including output and input filtering, as well as delimiter use, have proven inadequate. This paper introduces the 'Signed-Prompt' method as a novel solution. The study involves signing sensitive instructions within command segments by authorized users, enabling the LLM to discern trusted instruction sources. The paper presents a comprehensive analysis of prompt injection attack patterns, followed by a detailed explanation of the Signed-Prompt concept, including its basic architecture and implementation through both prompt engineering and fine-tuning of LLMs. Experiments demonstrate the effectiveness of the Signed-Prompt method, showing substantial resistance to various types of prompt injection attacks, thus validating its potential as a robust defense strategy in AI security.

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

↑