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

人类可读的对抗性提示:利用情境上下文对LLM漏洞的调查研究

Human-Readable Adversarial Prompts: An Investigation into LLM Vulnerabilities Using Situational Context

University of Maryland, Baltimore County(马里兰大学巴尔的摩县分校);Amazon Web Services(亚马逊网络服务)

Nilanjana Das, Edward Raff, Aman Chadha, Manas Gaur

AI总结:

本研究提出利用情境上下文的人类可读对抗性完整提示攻击方法,通过电影剧本框架、乱码转化及增强AdvPrompter框架,揭示开源与专有LLM的安全漏洞,推动更鲁棒的安全机制开发。

摘要:

随着AI系统深度嵌入社交媒体平台,我们发现了一个超越传统对抗性攻击的严重安全漏洞。在公众于社交媒体平台使用LLM之前评估其风险以避免任何负面影响变得至关重要。与安全系统能轻易捕获的明显无意义文本字符串不同,我们的工作表明,利用情境上下文的人类可读的情境驱动对抗性完整提示有效但难以被检测。我们发现,熟练的攻击者可以利用开源和专有LLM中的漏洞,使恶意用户查询对LLM显得安全,从而生成有害响应。这引发了关于LLM漏洞的重要问题。为了衡量针对现已构成巨大威胁的人类可读攻击的鲁棒性,我们的研究做出了三项主要贡献。首先,我们开发了使用电影剧本作为情境上下文框架的攻击,创建看似自然的完整提示,诱骗LLM生成有害内容。其次,我们开发了一种方法,将乱码对抗性文本转化为可读且无害的内容,且在完整提示中使用时仍能利用漏洞。最后,我们使用p-nucleus采样增强了AdvPrompter框架,以生成多样化的人类可读对抗性文本,显著提高了针对GPT-3.5-Turbo-0125和Gemma-7b等模型的攻击有效性。我们的研究结果表明,当面对包含隐藏对抗性元素的看似正常提示时,这些系统可被操纵以超出其预期的伦理边界运行。通过识别这些漏洞,我们旨在推动开发更鲁棒的安全机制,以抵御现实应用中的复杂攻击。

英文摘要:

As the AI systems become deeply embedded in social media platforms, we've uncovered a concerning security vulnerability that goes beyond traditional adversarial attacks. It becomes important to assess the risks of LLMs before the general public use them on social media platforms to avoid any adverse impacts. Unlike obvious nonsensical text strings that safety systems can easily catch, our work reveals that human-readable situation-driven adversarial full-prompts that leverage situational context are effective but much harder to detect. We found that skilled attackers can exploit the vulnerabilities in open-source and proprietary LLMs to make a malicious user query safe for LLMs, resulting in generating a harmful response. This raises an important question about the vulnerabilities of LLMs. To measure the robustness against human-readable attacks, which now present a potent threat, our research makes three major contributions. First, we developed attacks that use movie scripts as situational contextual frameworks, creating natural-looking full-prompts that trick LLMs into generating harmful content. Second, we developed a method to transform gibberish adversarial text into readable, innocuous content that still exploits vulnerabilities when used within the full-prompts. Finally, we enhanced the AdvPrompter framework with p-nucleus sampling to generate diverse human-readable adversarial texts that significantly improve attack effectiveness against models like GPT-3.5-Turbo-0125 and Gemma-7b. Our findings show that these systems can be manipulated to operate beyond their intended ethical boundaries when presented with seemingly normal prompts that contain hidden adversarial elements. By identifying these vulnerabilities, we aim to drive the development of more robust safety mechanisms that can withstand sophisticated attacks in real-world applications.

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

↑