paper-with-me

Papers

ContextLeak: Exfiltrating LLM Agent Context via Malicious Tools

2026-08-28 · Yuqi Jia, Ruiqi Wang, Patrick Li, Yuepeng Hu, Peinian Li, Neil Gong arxiv

Exfiltrating an LLM agent's runtime context -- such as the user prompt, execution trajectory, and tool list -- poses severe security and privacy risks to users. Such attacks can be carried out via malicious tools and typically require three conditions: (1) the agent selects the malicious tool for task execution, (2) the agent passes its runtime context as input arguments to the tool, and (3) the tool's implementation transmits these inputs to an attacker-controlled endpoint. Existing work primarily focuses on conditions (1) and (3), leaving condition (2) largely unexplored, despite its critical role in enabling successful context exfiltration. In this work, we bridge this gap by developing ContextLeak, a malicious tool attack that induces the agent to both select the tool and disclose its context as input arguments. We realize this attack by carefully crafting the tool's name and description using reinforcement learning. Specifically, ContextLeak employs an LLM, referred to as the attack LLM, to automatically generate the malicious tool's name and description. To improve attack effectiveness, we fine-tune the attack LLM via reinforcement learning on a set of shadow users with diverse, simulated agent contexts. Our key technical contribution is the design of novel reward functions tailored to the context exfiltration objective, enabling effective reinforcement-learning-based fine-tuning of the attack LLM. Extensive evaluation demonstrates that our attack remains highly effective even when the shadow users' contexts differ substantially from those of the victim users. Moreover, ContextLeak significantly outperforms existing malicious tool attacks when adapted to this setting.

📄 PDF Abstract BibTeX arXiv:2608.27800

Code (0)

등록된 구현이 없습니다.

Tasks

Reinforcement Learning

Similar Papers 제목 키워드 기반

ContextLeak: Auditing Leakage in Private In-Context Learning Methods

2025-12-18 · Jacob Choi, Shuying Cao, Xingjian Dong, Amin Banayeeanzade 외 arxiv

In-Context Learning (ICL) has become a standard technique for adapting Large Language Models (LLMs) to specialized tasks by supplying task-specific exemplars within the prompt. However, when these exemplars contain sensi…

Catch Me If You Can: Improving Adversaries in Cyber-Security With Q-Learning Algorithms

2023-02-07 · Arti Bandhana, Ondřej Lukáš, Sebastian Garcia, Tomáš Kroupa

The ongoing rise in cyberattacks and the lack of skilled professionals in the cybersecurity domain to combat these attacks show the need for automated tools capable of detecting an attack with good performance. Attackers…

Q-Learning

Automatic Red Teaming LLM-based Agents with Model Context Protocol Tools

2025-09-25 · Ping He, Changjiang Li, Binbin Zhao, Tianyu Du 외 arxiv

The remarkable capability of large language models (LLMs) has led to the wide application of LLM-based agents in various domains. To standardize interactions between LLM-based agents and their environments, model context…

Red Teaming

Overcoming the Retrieval Barrier: Indirect Prompt Injection in the Wild for LLM Systems

2026-01-11 · Hongyan Chang, Ergute Bao, Xinjian Luo, Ting Yu arxiv

Large language models (LLMs) increasingly rely on retrieving information from external corpora. This creates a new attack surface: indirect prompt injection (IPI), where hidden instructions are planted in the corpora and…

Discovering Command and Control (C2) Channels on Tor and Public Networks Using Reinforcement Learning

2024-02-14 · Cheng Wang, Christopher Redino, Abdul Rahman, Ryan Clark 외

Command and control (C2) channels are an essential component of many types of cyber attacks, as they enable attackers to remotely control their malware-infected machines and execute harmful actions, such as propagating m…

Reinforcement Learning (RL)