Duke 团队提出 ContextLeak:用强化学习生成恶意工具窃取 LLM Agent 运行时上下文

DAIR.AI · @dair_ai · X·2026-09-01 06:38·11小时前
AI 导读

Duke 等机构研究者在 arXiv 论文(arXiv:2608.27800)中提出 ContextLeak 攻击,通过恶意工具窃取 LLM Agent 的运行时上下文,包括用户提示词、执行轨迹和工具列表。

DAIR.AI@dair_ai
48AI 编辑部评分,满分 100

Duke 团队提出 ContextLeak:用强化学习生成恶意工具窃取 LLM Agent 运行时上下文

2026-09-01 06:38· 11小时前
AI 导读

Duke 等机构研究者在 arXiv 论文(arXiv:2608.27800)中提出 ContextLeak 攻击,通过恶意工具窃取 LLM Agent 的运行时上下文,包括用户提示词、执行轨迹和工具列表。

// ContextLeak in AI Agents //

The whole attack surface here is a tool name and a tool description.

Stealing an LLM agent's runtime context, meaning the user prompt, the execution trajectory and the tool list, needs three things to line up.

The agent has to pick the malicious tool, it has to pass its context in as arguments, and the tool has to forward that anywhere the attacker wants.

Existing work covers the first and third conditions and leaves the second one mostly alone.

ContextLeak targets the middle step.

Researchers at Duke use an attack LLM to generate the malicious tool's name and description, then fine-tune that LLM with reinforcement learning on a set of shadow users with diverse simulated agent contexts. The reward functions are built specifically for the exfiltration objective.

It remains highly effective when the shadow contexts differ substantially from the victim's, and it outperforms existing malicious-tool attacks adapted to this setting.

Paper: https://arxiv.org/abs/2608.27800

Chat with Paper: https://academy.dair.ai/papers/contextleak-exfiltrating-llm-agent-context-via-malicious-tools-2608.27800