ClawMMU:面向有状态大语言模型智能体的保护一致性虚拟内存
ClawMMU: Protection-Coherent Virtual Memory for Stateful LLM Agents
AI总结:
针对有状态LLM智能体的内存安全问题,提出ClawMMU保护层,通过标记内存属性并基于来源检查权限,阻止内存攻击。
摘要:
AI智能体拥有长期记忆,其中大部分来自网页和工具结果。运行模型的智能体框架(agent harness)未记录谁可对该记忆执行操作,因此获取页面中隐藏的指令可能被当作用户自身指令处理。我们提出ClawMMU,这是一种保护层,它为每一段内存标记其所有者、作用范围、来源和权限。当内容进入模型上下文、写入存储、从存储返回或驱动工具调用时,ClawMMU会检查这些标签。其核心规则是信息权限可提升,但权限本身不得自行解除。由于检查依赖于内容来源而非内容本身,即便模型被欺骗,内存攻击也会变成框架可阻止的经典保护错误。
英文摘要:
AI agents keep long-term memory, much of which comes from web pages and tool results. Agent harnesses, the software that runs the model, do not record who may act on this memory, so an instruction hidden in a fetched page can be treated as the user's own instruction. We propose ClawMMU, a protection layer that labels every piece of memory with its owner, scope, origins, and authority. ClawMMU checks these labels whenever content enters the model's context, is written to storage, returns from storage, or drives a tool call. Its central rule is that information may rise in authority, but authority never lifts itself. Because the checks depend on where content came from, not on what it says, memory attacks become classical protection faults that the harness stops even when the model is fooled.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。