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

从存储到操控:针对LLM代理的内存控制流攻击

From Storage to Steering: Memory Control Flow Attacks on LLM Agents

Adelaide University(阿德莱德大学);University of Sydney(悉尼大学);CSIRO’s Data61(澳大利亚联邦科学与工业研究组织数据61)

Zhenlin Xu, Xiaogang Zhu, Yu Yao, Minhui Xue, Yiliao Song

AI总结:

本文研究了内存控制流攻击对LLM代理的影响,提出MEMFLOW框架以系统识别和量化此类攻击,发现超过90%的测试在严格安全约束下仍易受攻击,揭示了严重的安全风险。

摘要:

现代代理系统允许大型语言模型(LLM)代理通过大量工具使用解决复杂任务,形成工具选择和执行的结构化控制流。现有安全分析常将这些控制流视为短暂的一次性会话,忽视了内存的持久影响。本文识别了内存控制流攻击(MCFA)的新威胁,内存可主导控制流,强制使用未明确用户指令的工具,并在多个任务中引发持续行为偏差。为理解此漏洞的影响,我们进一步设计了MEMFLOW自动化评估框架,系统地识别和量化MCFA在异构任务和长交互时间范围内的影响。为评估MEMFLOW,我们攻击了最先进的LLM,包括GPT-5 mini、Claude Sonnet 4.5和Gemini 2.5 Flash,在两个主要LLM代理开发框架LangChain和LlamaIndex的现实工具上进行测试。结果表明,在严格安全约束下,超过90%的测试对MCFA易受攻击,突显了关键的安全风险,需要立即关注。

英文摘要:

Modern agentic systems allow Large Language Model (LLM) agents to tackle complex tasks through extensive tool usage, forming structured control flows of tool selection and execution. Existing security analyses often treat these control flows as ephemeral, one-off sessions, overlooking the persistent influence of memory. This paper identifies a new threat from Memory Control Flow Attacks (MCFA) that memory can dominate the control flow, forcing unintended tool usage even against explicit user instructions and inducing persistent behavioral deviations across tasks. To understand the impact of this vulnerability, we further design MEMFLOW, an automated evaluation framework that systematically identifies and quantifies MCFA across heterogeneous tasks and long interaction horizons. To evaluate MEMFLOW, we attack state-of-the-art LLMs, including GPT-5 mini, Claude Sonnet 4.5 and Gemini 2.5 Flash on real-world tools from two major LLM agent development frameworks, LangChain and LlamaIndex. The results show that in general over 90% of trials are vulnerable to MCFA even under strict safety constraints, highlighting critical security risks that demand immediate attention.

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

↑