The Model's Tell: Measuring Context-Leakage Attack Signals with Behavior Gauges

📅 2026-08-18
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
本文提出LeakGauge方法,通过在响应中添加后缀来检测大语言模型处理外部上下文时的泄露风险,该方法在11个模型上表现出高稳定性与准确性。
📝 Abstract
LLMs increasingly rely on external contexts, such as pre-defined system prompts or retrieved documents, to improve generation quality. However, processing these contexts alongside user queries creates an attack surface: adversarial inputs can induce models to disclose them. Prior probing studies suggest that leakage-related signals emerge in hidden states, yet the need to extract these states poses additional deployment challenges. In this paper, we explore whether this internal signal leaves a more accessible ``tell'' before decoding. We propose LeakGauge, which probes this response by appending a suffix that gauges leakage behavior and mapping its prefill token probabilities to an attack-risk score. While a direct gauge uses the initial tokens of confidential content, we find that a content-agnostic one that verbalizes leakage behavior yields more robust signals. Across 11 LLMs, including GLM-5.2 (753B) and Kimi-K3 (2.8T), LeakGauge reaches an AUROC range of 0.944--0.996 on unseen attacks. The signal remains stable when the content changes language or the attack shifts from verbatim to semantic disclosure. By activation-steering interventions, we further show that the risk score is sensitive to an internal leakage-related direction, relating the observable signal to the model's internal representation. In addition, LeakGauge enables an input detector with fewer than 0.5K extra parameters and added latency of 10.34 ms. Code: \href{https://github.com/yeasen-z/LeakGauge}.
Problem

Research questions and friction points this paper is trying to address.

context-leakage
large language models
adversarial inputs
hidden states
deployment challenges
Innovation

Methods, ideas, or system contributions that make the work stand out.

LeakGauge
context-leakage
attack-risk score
activation-steering interventions
input detector
🔎 Similar Papers
No similar papers found.