具备状态的代理后门
Stateful Agent Backdoors: Constructing Cross-Session Attack Programs
AI总结:
本文提出一种具备状态的代理后门,通过持久化组件跨多个会话维持状态,实现自主递增执行。该方法基于Mealy机建模,并通过分解框架提升攻击成功率。
摘要:
现有基于大语言模型的代理后门攻击仍为无状态,执行固定行为且局限于单个会话。我们提出一种具备状态的代理后门,通过权限隔离在多个会话中扩展攻击生命周期。攻击通过持久化组件维持状态,实现自主、递增的跨会话执行,通过一次触发注入。形式上,我们将攻击建模为Mealy机,并推导出一个分解框架,使每个转换的数据构造可以独立进行。我们通过一个主攻击和两个扩展变体实例化该框架。主实例在四个模型上达到80%至95%的攻击成功率,每个转换分析证明了分解的有效性。扩展变体通过替代拓扑和持久化组件展示了持续有效性。代码和数据可在https://anonymous.4open.science/r/stateful_agent_backdoor-E89F获取。
英文摘要:
Multi-step attacks on large language model agents may depend on opportunities distributed across sessions, such as access to target information or the availability of required tools. To combine these opportunities, an attack needs to retain its state and intermediate results, and choose actions based on current conditions. In this work, we study such attacks as cross-session attack programs. We focus on their shared control structures, including sequential execution with conditional waiting, branching and merging, looping, and condition accumulation. We represent these programs as Mealy machines and construct a sub-backdoor for each transition. We build single-session training trajectories for each sub-backdoor, combine them into a training dataset, and fine-tune the model to learn the local behaviors jointly. After a single injection of the initial trigger, the agent uses persistent memory to connect local behaviors into a complete cross-session attack program. We evaluate four instantiations of these control structures across four models in a LangChain-based agent environment. The primary instantiation achieves mean complete-program success rates of 71.7\%--94.7\% in LangChain. In the official OpenClaw runtime under a controlled configuration, it achieves a complete-program success rate of 85\% for each of two evaluated models. These results demonstrate the feasibility of end-to-end execution of cross-session attack programs with different control structures.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。