arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.04425cs.CRcs.AI
收藏

如果提示注入从未消失?探索智能体系统中的跨会话存储提示注入

What If Prompt Injection Never Left? Rethinking Agent Security through Cross-Session Stored Prompt Injection

Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络空间安全学院);AI Sec Lab, Beijing Chaitin Technology Co.,Ltd(北京柴坦科技有限公司AI安全实验室)

Yuanbo Xie, Wenlei Zhu, Tianyun Liu, Yingjie Zhang, Suchen Liu, Yulin Li, Liya Su, Tingwen Liu

AI总结:

本研究引入跨会话存储提示注入,通过持久化状态使提示注入从单会话模型级威胁转变为长期系统级漏洞,并构建了分类法、基准测试和沙箱工具以评估风险。

摘要:

现代智能体系统将大语言模型从会话受限的助手转变为跨会话持久化并演化共享世界状态的有状态系统,通过记忆、文件系统、工具和其他长期存在的上下文工件实现。这种转变从根本上扩展了提示注入的攻击面。然而,先前关于提示注入的工作主要关注单会话内的模型级威胁,忽视了跨会话持久系统状态如何从根本上改变智能体系统的系统级风险。受Web系统中存储型跨站脚本的启发,我们引入了跨会话存储提示注入,其中成功的注入可以持久存在于智能体系统状态中,并在原始攻击者交互结束后长时间静默影响未来执行。为了系统研究这一威胁,我们形式化了存储提示注入,并开发了关于对抗性内容如何跨会话持久化并影响智能体系统的分类法。我们进一步开发了基准测试和沙箱工具包来评估存储提示注入的风险,支持对不同模型、攻击目标和持久化渠道的攻击成功率进行定量分析。我们的发现强调,持久化将提示注入从短暂的模型级威胁转变为嵌入智能体执行状态中的长期系统级漏洞。我们希望这项工作能引起对这一新兴威胁的更广泛关注,并激励社区系统研究和缓解智能体系统中持久化带来的系统风险。

英文摘要:

Modern agentic systems fundamentally reshape the security boundary of LLMs by introducing persistent system state including memories, filesystems, tools, and other long-lived contextual artifacts that survives across sessions. As external information crosses this boundary and becomes part of persistent agent state, malicious instructions are no longer confined to a single interaction, but can silently persist and influence future executions long after the original attacker interaction has ended. We introduce Cross-Session Stored Prompt Injection, a new threat vector inspired by stored cross-site scripting that redefines prompt injection for agentic systems by extending its threat model across both time, where attacks persist and activate across sessions, and space, where adversarial instructions propagate beyond the immediate prompt into persistent system state. To systematically characterize this emerging threat, we formalize the lifecycle of cross-session stored prompt injection, develop a taxonomy of persistence channels and incorporation mechanisms, and build a sandbox toolkit for evaluation. Our findings suggest that the fundamental challenge of agent security is not merely filtering untrusted inputs, but governing how external information acquires authority as it crosses persistent system boundaries. We hope this work motivates a broader shift from interaction-centric security toward state-centric security, making the secure management of persistent agent state a first-class security principle for the agentic era.

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

↑