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

ElephantAgent: 智能体系统中的上下文状态连续性

ElephantAgent: Contextual State Continuity in Agentic Systems

Jiankai Jin, Xiangzheng Zhang, Zhao Liu, Wenzhuo Xu, Dongdong Yang, Deyue Zhang, Quanchen Zou

AI总结:

针对工具和记忆投毒攻击,提出ElephantAgent协议,通过强制上下文状态连续性防御状态篡改,并利用历史可追溯性实现事后审计与恢复。

摘要:

智能体系统通过调用外部工具和维护持久记忆来增强其能力。然而,这些外部依赖引入了新的攻击面。最近的工具和记忆投毒攻击表明,恶意构造的工具描述和被投毒的记忆可以隐蔽地偏置智能体行为。这些威胁反映了一个更深层次的问题:智能体用于规划和执行的上下文状态缺乏可验证的连续性。我们提出了ElephantAgent,一种强制上下文状态连续性以防御上下文状态投毒的协议。受先前状态连续性机制(如Nimble)的启发,ElephantAgent将这种保护扩展到智能体系统不断演化的上下文状态。我们将上下文状态定义为智能体整个上下文中有限的、安全关键的子集(例如,工具状态和记忆)。在处理每个查询之前,ElephantAgent重新计算本地上下文状态的摘要,并对照最新授权的摘要进行验证。利用复制的可信硬件,ElephantAgent维护一个线性化的授权上下文状态转换账本,并检测带外状态篡改。为了处理带内语义滥用,ElephantAgent额外提供历史可追溯性,支持条件性的事后审计和恢复到已知良好的先前状态。

英文摘要:

Agentic systems enhance their capabilities by invoking external tools and maintaining persistent memory. However, recent tool and memory poisoning attacks can covertly bias agent behavior. We observe that such attacks mounted out of band share a single enabler: each succeeds only by presenting the agent with a contextual state (e.g., tool state and memory) that is not the latest faithfully evolved one. This observation suggests that a continuity check over the contextual state covers this family of attacks. We present ElephantAgent, a protocol that enforces Contextual State Continuity over the bounded, security-critical subset of the agent's context. Before each planning-and-execution cycle, ElephantAgent recomputes the digest of the local contextual state and verifies it against the latest authorized digest in a linearizable ledger of state transitions, maintained over replicated trusted hardware. The protocol also provides Historical Traceability, a secondary guarantee that keeps state transitions attributable and recoverable. We integrate ElephantAgent into DeepSeek Harness (DSH) and implement ElephantDSH, an agentic system protected by contextual state verification. ElephantDSH withstood all out-of-band attack attempts, from rug pulls and rollbacks to attacks on its own mechanism, and recovered from an in-band prompt injection in all trials. By comparison, existing defenses typically check only what enters the context: of the five we evaluated, all leaked the targeted content under the rollback, and three also under the rug pull. ElephantDSH completed all normal coding tasks with a relative overhead of 1.02-1.07$\times$ over the original DSH with model latency variation removed.

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

↑