处于风险中的智能体:用户如何在不知情的情况下破坏大语言模型的安全性
When External Threats Become User Context: Tricking Agents into Accepting Malicious Information
AI总结:
研究基于大语言模型的智能体安全问题,介绍用户中继上下文操纵攻击,通过让良性用户在请求中传递对抗性内容,实验表明该攻击在多种防御下优于提示注入基线,揭示当前智能体框架设计缺陷。
摘要:
基于大语言模型(LLM)的智能体越来越多地用于执行复杂任务,但易受上下文混淆影响。本文介绍用户中继上下文操纵(UReCoM)攻击,攻击者操纵良性用户在请求中传递对抗性内容。实验评估表明,UReCoM在多种防御下优于提示注入基线,还揭示LLMs在处理对抗性任务实体方面的问题及当前智能体框架设计缺陷。
英文摘要:
Autonomous LLM agents receive task goals through user requests, but these requests may also relay untrusted external information. We study source relocation, where an externally available artifact is additionally included in a benign user's initial request while the task environment remains unchanged. Through controlled experiments across eight models and four AgentDojo domains, we find that user-context placement increases adoption of both malicious and benefit-matched benign artifacts, including without explicit artifact-use instructions. For GPT-4o in Travel, malicious-artifact adoption rises from 27.8\% to 95.6\%. Matched-checkpoint analyses of open-weight models reveal model-dependent differences in conditional artifact support, and activation patching identifies components contributing to this controlled score. The evaluated defense configurations leave substantial malicious execution under user-context placement. Explicit verification guidance raises GPT-4o's safe-completion rate from 2.2\% to 15.0\%, but gains vary across models and substantial residual risk remains. A complementary study of deployed agents finds sensitivity to safety guidance and instances of unsupported verification claims. Together, these results expose a challenge in agent delegation: the authority of a user's task does not establish the reliability of externally sourced material embedded in the same request. Our findings motivate separating task authorization from artifact verification and evaluating agents by safe task completion rather than task success alone.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。