代理中的幽灵:重新定义LLM代理的信息流跟踪
Ghost in the Agent: Redefining Information Flow Tracking for LLM Agents
AI总结:
本文提出NeuroTaint框架,通过语义证据、因果推理和持久上下文跟踪,解决LLM代理中信息流跟踪问题,优于现有基准方法。
摘要:
自主大型语言模型(LLM)代理越来越多地被部署以通过与外部工具、API和内存存储交互执行复杂任务。然而,处理不可信的外部数据使这些代理面临严重的安全威胁,如间接提示注入和未经授权的工具执行。安全这些系统需要有效的信息流跟踪。然而,传统的污点分析设计用于程序内存状态,当应用于LLM时根本无法工作,因为数据传播由概率性自然语言推理控制。在本文中,我们提出了NeuroTaint,第一个全面的污点跟踪框架,专门针对LLM代理独特的信息流特征。我们的关键见解是,LLM代理中的污点传播不仅要被视为显式内容转移,还要被视为语义转换、决策的因果影响以及通过内存的跨会话持久性。NeuroTaint因此通过语义证据、因果推理和持久上下文跟踪审计执行轨迹,以重建不可信来源到特权汇的溯源,而不是仅依赖精确字符串匹配或预定义的源汇路径。使用我们的400个场景基准TaintBench,涵盖20个真实世界代理框架的评估显示,NeuroTaint在源汇传播检测上显著优于FIDES,一个针对LLM代理的信息流控制(IFC)基线。我们进一步显示,NeuroTaint在InjecAgent和ToolEmu等已建立的代理安全基准上仍有效,同时在离线操作中具有适度的额外审计成本。
英文摘要:
Autonomous Large Language Model (LLM) agents are increasingly deployed to conduct complex tasks by interacting with external tools, APIs, and memory stores. However, processing untrusted external data exposes these agents to severe security threats, such as indirect prompt injection and unauthorized tool execution. Securing these systems requires effective information flow tracking. Yet, traditional taint analysis that is designed for program memory states fundamentally fails when applied to LLMs, where data propagation is governed by probabilistic natural language reasoning. In this paper, we present NeuroTaint, the first comprehensive taint tracking framework tailored for the unique information flow characteristics of LLM agents. Our key insight is that taint propagation in LLM agents must be understood not only as explicit content transfer, but also as semantic transformation, causal influence on decisions, and cross-session persistence through memory. NeuroTaint therefore audits execution traces offline to reconstruct provenance from untrusted sources to privileged sinks using semantic evidence, causal reasoning, and persistent context tracking, rather than relying on exact string matches or pre-defined source-sink paths alone. Extensive evaluation using TaintBench, our 400-scenario benchmark spanning 20 real-world agent frameworks, shows that NeuroTaint substantially outperforms FIDES, an information-flow-control (IFC)-style baseline for LLM agents, in source-sink propagation detection. We further show that NeuroTaint remains effective on established agent-security benchmarks, including InjecAgent and ToolEmu, while operating offline with modest additional auditing cost.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。