表征模块阴影环境中的大语言模型智能体行为
Characterizing LLM Agent Behaviors in Module Shadowing Environments
AI总结:
本研究提出评估框架,结合行为编码与环境审计,对模块阴影场景下15个LLM智能体的90次试验分析,揭示其安全漏洞并验证评估方法有效性。
摘要:
在不可信工作空间中运行的大语言模型(LLM)智能体,在执行常规任务时面临不可信代码执行的风险,然而仅靠最终报告和工作空间状态无法可靠确认是否发生了执行。我们提出了一种评估框架,该框架对智能体轨迹中的观察、推理、执行和响应行为进行编码,并将其与独立的环境记录对齐,以重构执行历史并验证最终报告。我们将该框架应用于模块阴影(即导入时用本地文件替代可信模块,从而在无对抗提示的情况下实现不可信代码执行)场景,对15个模型开展90次试验,结果显示:直接阴影试验中51%发生了有效载荷执行,间接阴影试验中该比例达87%;即便智能体明确识别出阴影机制,也无法确保阻止,29次记录到识别的试验中仍有10次发生了有效载荷执行。这些失败常被最终报告遗漏,62次触发的试验中有49次未提及该安全问题,甚至有3份报告否认执行,其中1份试验的独立日志记录到19次有效载荷执行;当智能体在10次触发试验中删除或覆盖有效载荷标记时,最终工作空间状态也会掩盖先前的执行。这些发现表明,将行为编码与独立环境审计相结合,可实现对智能体安全性的严格且透明评估。
英文摘要:
LLM agents operating in untrusted workspaces face the risk of untrusted code execution during routine tasks, yet final reports and workspace states alone cannot reliably establish whether execution occurred. We introduce an evaluation framework that codes observation, reasoning, execution, and response behaviors from agent trajectories and aligns them with independent environmental records to reconstruct execution histories and verify final reports. We apply this framework to module shadowing, in which a local file is loaded in place of a trusted module during import, enabling untrusted code execution without adversarial prompts. Across 90 trials with 15 models, the payload executed in 51% of direct shadowing trials and 87% of indirect shadowing trials. Even explicit recognition of the shadowing mechanism did not ensure prevention, as the payload ran in 10 of the 29 trials with recorded recognition. These failures were often omitted from final reports, as 49 of the 62 triggered trials ended without mention of the security issue. Three reports even denied execution, including one from a trial in which independent logs recorded 19 payload executions. Final workspace states also obscured prior execution when agents deleted or overwrote the payload marker in 10 triggered trials. These findings demonstrate that combining behavioral coding with independent environmental auditing enables rigorous and transparent evaluation of agent safety.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。