arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2502.11006cs.CRcs.AI
收藏

将生成式解释作为调查工具的提示注入检测

Prompt Inject Detection with Generative Explanation as an Investigative Tool

Home Team Science and Technology Agency, Singapore(新加坡本土安全科技局)

Jonathan Pan, Swee Liang Wong, Yidi Yuan, Xin Wei Chia

AI总结:

针对提示注入调查中大量提示需研判的问题,本文利用LLM文本生成能力同时检测注入并生成解释,为安全人员提供可解释的分类评估工具。

摘要:

大型语言模型(LLM)容易受到基于对抗性提示的注入攻击。这些注入可能通过明确的提示请求对模型实施越狱或利用其漏洞,从而导致不良响应。在调查提示注入的情境中,挑战在于涉及的输入提示数量庞大,而且其中大部分可能是良性的。LLM与用户对话中输入提示的语义和主观性,以及对话所处环境的上下文,进一步增加了这一调查挑战的复杂性。因此,AI安全调查人员面临的挑战是双重的:首先是识别对抗性提示注入,其次是评估输入提示在上下文中究竟是良性还是对抗性的。第一步可以借助guardrails等现有AI安全解决方案来检测并保护LLM。guardrails已通过多种方法开发,一种流行方法是基于签名;另一种开发AI模型对此类提示进行分类的流行方法包括使用基于NLP的模型,例如语言模型。然而,在对提示注入开展AI安全调查的情境中,这些guardrails缺乏帮助调查人员对已识别输入提示进行分类研判或评估的能力。在本次应用研究探索中,我们探索利用LLM的文本生成能力来检测提示注入,并为其检测结果生成解释,以协助AI安全调查人员评估和分类研判此类提示注入检测。该工具的实际收益是减轻开展提示注入调查工作的负担。

英文摘要:

Large Language Models (LLMs) are vulnerable to adversarial prompt based injects. These injects could jailbreak or exploit vulnerabilities within these models with explicit prompt requests leading to undesired responses. In the context of investigating prompt injects, the challenge is the sheer volume of input prompts involved that are likely to be largely benign. This investigative challenge is further complicated by the semantics and subjectivity of the input prompts involved in the LLM conversation with its user and the context of the environment to which the conversation is being carried out. Hence, the challenge for AI security investigators would be two-fold. The first is to identify adversarial prompt injects and then to assess whether the input prompt is contextually benign or adversarial. For the first step, this could be done using existing AI security solutions like guardrails to detect and protect the LLMs. Guardrails have been developed using a variety of approaches. A popular approach is to use signature based. Another popular approach to develop AI models to classify such prompts include the use of NLP based models like a language model. However, in the context of conducting an AI security investigation of prompt injects, these guardrails lack the ability to aid investigators in triaging or assessing the identified input prompts. In this applied research exploration, we explore the use of a text generation capabilities of LLM to detect prompt injects and generate explanation for its detections to aid AI security investigators in assessing and triaging of such prompt inject detections. The practical benefit of such a tool is to ease the task of conducting investigation into prompt injects.

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

↑