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

结合长期记忆与大语言模型(LLM)代价高昂:从提示注入到持续入侵

Combining Long-Term Memory and LLMs Comes at a High Cost: From Prompt Injection to Persistent Compromise

Universidade do Estado de Santa Catarina (UDESC)(圣卡塔琳娜州立大学)

Pedro H. Barcha Correia, Matheus Azevedo de Sá, Paulo H. Gomes de Senna, Giovanni Mandel Martignago, Victor Takashi Hayashi, Charles Christian Miers, Marcos A. Simplicio

AI总结:

本研究提出记忆注入通用威胁模型,证实主流LLM服务可被操纵实现全部NIST攻击目标,近半数防御措施未落实,揭示结合长期记忆与LLM的安全风险。

摘要:

近年来生成式人工智能的广泛应用,伴随而来的是提示注入与越狱攻击的同步增多。这些攻击通过嵌入恶意指令,操纵语言模型绕过预期行为与操作边界。在传统聊天机器人中,此类攻击因会话间不保留状态记忆,仅局限于单个会话;但现代对话界面的持久记忆功能使攻击可跨会话传播,形成名为记忆注入的威胁向量。本研究探索主流大语言模型即服务(LLM-as-a-service)平台中的这一新兴漏洞,强调其现实世界严重性及应对措施的必要性。现有文献聚焦于针对特定平台功能的违规行为,而本研究提出通用威胁模型,证明在该模型下,ChatGPT Instant 5.3、Claude Sonnet 4.6与Gemini 3 Flash均可实现全部NIST攻击目标。研究还显示,记忆注入可利用个人记忆、项目、技能、组织指令及模型上下文协议(Model Context Protocol,MCP)连接资源等多个攻击向量。研究发现,所有被评估服务均可被操纵,在新会话中持续传播虚假信息、生成有害内容或模拟离线无响应;在Claude的特定案例中,共享记忆功能使攻击者可入侵组织内的多个用户并窃取用户提示。为应对这些漏洞,研究从提出的威胁模型与基础网络安全原则中推导防御机制,分析显示近半数缓解措施在目标服务中仍未实现。数据集与攻击制品可在该https URL获取。

英文摘要:

The widespread adoption of generative artificial intelligence in recent years has brought a parallel rise in prompt injection and jailbreak attacks. By embedding malicious instructions, these exploits manipulate language models to bypass intended behavior and operational boundaries. In traditional chatbots, such attacks are confined to a single session because state memory is not preserved across conversations. However, persistent memory features in modern conversational interfaces enable cross-session attack propagation, establishing a threat vector known as memory injection. This work explores this emerging vulnerability in leading LLM-as-a-service platforms, highlighting its real-world severity and the need for countermeasures. While existing literature focuses on violations tailored to specific platform features, we present a general threat model. We demonstrate that all NIST attack goals are collectively achievable across ChatGPT Instant 5.3, Claude Sonnet 4.6, and Gemini 3 Flash under this model. We also show that memory injections can exploit multiple attack vectors, including personal memories, projects, skills, organization instructions, and Model Context Protocol (MCP)-connected resources. Our findings reveal that all evaluated services can be manipulated to persistently spread disinformation, generate harmful content, or simulate offline unresponsiveness, even in fresh sessions. In the particular case of Claude, shared-memory features allow an attacker to compromise multiple users within an organization and also exfiltrate user prompts. To address these vulnerabilities, we derive defense mechanisms from our proposed threat model and foundational cybersecurity principles. Our analysis indicates that nearly half of these mitigations remain unimplemented across the target services. Datasets and attack artifacts are available at https://github.com/PedroBarcha/Memory-injection.

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

↑