arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.05919cs.CRcs.AIcs.CL
收藏

注入虚假信息:对抗性中间人攻击削弱大语言模型的事实回忆

Injecting Falsehoods: Adversarial Man-in-the-Middle Attacks Undermining Factual Recall in LLMs

Technical University of Munich(慕尼黑技术大学);Munich Center for Machine Learning(慕尼黑机器学习中心)

Alina Fastowski, Bardh Prenkaj, Yuxiao Li, Gjergji Kasneci

AI总结:

本文提出首个基于提示注入的LLM事实记忆攻击评估框架Xmera,通过扰动输入在封闭书本和事实基础QA场景中降低响应正确性并评估生成过程的不确定性,提出基于响应不确定性的随机森林分类器作为防御机制。

摘要:

大语言模型(LLMs)如今已成为信息检索的重要组成部分。因此,其作为问答聊天机器人的作用引发了重大担忧,因为它们已被证明容易受到对抗性中间人(MitM)攻击的攻击。在此,我们提出了首个基于提示注入的LLM事实记忆攻击评估框架Xmera,我们的新型、理论导向的MitM框架。通过在三个封闭书本和事实基础QA设置中扰动给“受害者”LLM的输入,我们削弱了响应的正确性并评估了其生成过程的不确定性。令人惊讶的是,基于简单指令的攻击报告了最高的成功率(高达~85.3%),同时在错误回答问题上具有高不确定性。为了提供一种对抗Xmera的简单防御机制,我们训练了随机森林分类器来区分受攻击和未受攻击的查询(平均AUC高达~94.8%)。我们相信,向用户发出警惕,注意他们从黑盒和可能被篡改的LLM中收到的答案,是用户网络空间安全的第一道防线。

英文摘要:

LLMs are now an integral part of information retrieval. As such, their role as question-answering chatbots raises significant concerns due to their demonstrated vulnerability to adversarial man-in-the-middle (MitM) attacks. Here, we propose our fundamental attack evaluation on LLM factual memory under prompt injection via Xmera, our factual MitM framework. By perturbing the input to "victim" LLMs across three closed-book, fact-based QA settings, we undermine the correctness of their responses and assess the uncertainty in their generation process. We show how trivial instruction-based attacks achieve the highest success rate (up to ~85.3%) while simultaneously exhibiting high uncertainty in incorrectly answered questions. To provide a simple defense mechanism against Xmera, we train Random Forest classifiers on the response uncertainty levels to distinguish between unattacked queries and queries attacked by a specific Xmera attack (average AUC of up to ~95%), while detecting attacks in general remains challenging. We believe that signaling users to be cautious about the answers they receive from black-box and potentially corrupt LLMs is a first checkpoint toward user cyberspace safety.

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

↑