Language Models Leak Sensitive Data from Context Window.

Jaiden Fairoze, Neal Mangaokar, Kamalika Chaudhuri, Sanjam Garg, Saeed Mahloujifar· August 21, 2026 View original

Key takeaways

  • LLMs can inadvertently leak sensitive data from their context window, even without direct extraction.
  • More capable models appear to be more susceptible to this type of information leakage.
  • Adversaries can use adaptive attacks to reconstruct secrets from seemingly innocuous model outputs.
  • This vulnerability poses significant privacy and security risks for AI applications handling personal data.

Who benefits

BFSIHealthcareLegalGovernmentTech

Summary

Research reveals that large language models can inadvertently leak sensitive user data present in their context window, even when explicitly refusing direct extraction. Adversaries can exploit this leakage through novel adaptive attacks, reconstructing secrets from seemingly benign outputs.

A new study highlights a critical vulnerability in large language models (LLMs): the inadvertent leakage of sensitive user information. Even when LLMs are designed to refuse direct requests for private data, the mere presence of secrets like calendars, credentials, or health records within their context window can create subtle correlations in their benign outputs. This research demonstrates that these hidden correlations can be exploited by an adversary. Using a novel adaptive attack with black-box access to the model, secrets can be reconstructed. Experiments across eight proprietary models showed near-perfect accuracy for 2-digit secrets and 82% for 4-digit secrets, extracted from ordinary, non-adversarial requests. The findings suggest that more capable models are more prone to this leakage, indicating it might be an inherent byproduct of advanced instruction-following rather than a simple bug. Practical attacks include classifiers inferring semantic predicates about user memories and an RL-trained adversary extracting full Social Security Numbers from a production-style agent.

Why it matters

This research is crucial for any professional or organization deploying AI agents that handle sensitive user data, as it exposes a fundamental security flaw that could lead to significant privacy breaches and regulatory non-compliance.

How to implement this in your domain

  1. 1Re-evaluate data handling policies for LLM applications, assuming potential leakage from context windows.
  2. 2Implement strict data minimization strategies, only providing LLMs with absolutely necessary information.
  3. 3Develop robust monitoring and auditing tools to detect anomalous LLM outputs that might indicate leakage.
  4. 4Educate development teams on the risks of context leakage and secure prompting practices.
  5. 5Explore techniques like differential privacy or secure multi-party computation for highly sensitive data.

Original post by Jaiden Fairoze, Neal Mangaokar, Kamalika Chaudhuri, Sanjam Garg, Saeed Mahloujifar

"arXiv:2608.19857v1 Announce Type: new Abstract: For AI agents to be useful beyond simple chat, they must hold sensitive user context such as calendars, credentials, health records, and financial data. We study whether the mere presence of such secrets in a model's context window…"

View on X

Originally posted by Jaiden Fairoze, Neal Mangaokar, Kamalika Chaudhuri, Sanjam Garg, Saeed Mahloujifar on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses

More in AI Research

AI ResearchAI Engineering & DevTools

Decoding Silent Reading from Non-Invasive EEG

This research demonstrates that open-vocabulary word-level and semantic information can be reliably decoded from non-invasive EEG during silent reading. Using a contrastive decoder and a large dataset from a single participant, the study shows decoding scales log-linearly with training data and extends to rare words.

Ingo Marquardt, Anthilia Alchanat, Priyanka JainAug 21, 2026
AI ResearchAI Engineering & DevTools

Exact Learning Coefficients for Singular Models

This paper presents the first deterministic algorithm for exactly computing local learning coefficients (Real Log Canonical Thresholds) for two-dimensional singular models. This breakthrough provides ground truth for calibrating sampling-based estimators and reveals algebraic structure in learning coefficients, outperforming sampling in shallow regimes.

Gr\'egoire Sergeant-Perthuis (CQSB, Sorbonne Universit\'e), Elias Tsigaridas (Ouragan Team, INRIA), Jules Tsukahara (Ouragan Team, INRIA)Aug 21, 2026
AI Engineering & DevToolsAI Research

Standardized ML Evaluation for Power System Protection

This paper proposes a standardized framework for evaluating machine learning applications in power system protection, addressing inconsistencies in current research. It defines seven critical study dimensions and instantiates the framework with a case study on fault classification and localization using a public benchmark.

Julian Oelhaf, Georg Kordowich, Paula Andrea P\'erez-Toro, Christian Bergler, Johann J\"ager, Andreas Maier, Siming BayerAug 21, 2026