The rapid integration of Large Language Model (LLM) agents into autonomous task execution has introduced significant privacy concerns within cross-tool data flows. In this paper, we systematically investigate and define a novel risk in LLM agent termed Data Over-Exposure (DOE), where an Agent inadvertently transmits sensitive data beyond the scope of user intent and functional necessity. We identify that DOE is primarily driven by the broad data paradigms in tool design and the coarse-grained data processing inherent in LLMs. To this end, we present AgentRaft, the first automated framework for detecting DOE risks in LLM agents. The key challenge in detecting DOE lies in synthesizing targeted, risk-revealing user prompts that reliably trigger privacy-relevant cross-tool executions, and in determining whether the resulting sink payload exceeds the user's disclosure boundary. AgentRaft addresses this by combining program analysis with semantic reasoning: it builds a Cross-Tool Function Call Graph that guides both the synthesis of prompts triggering deep cross-tool executions and the runtime data-flow inspection that identifies privacy violations. We evaluate AgentRaft on controlled agents derived from 6,675 real-world tools, where it achieves 92.48% end-to-end precision and covers 98.68% of DOE-affected chains with only 150 prompts, demonstrating accurate and efficient navigation of complex cross-tool execution spaces. We further evaluate AgentRaft on five existing real-world agents in the same tool environment and identify DOE in 32.48% of the source-to-sink paths (759 out of 2,337). Our research highlights that DOE is a systemic risk across current real-world agents.
翻译:暂无翻译