mlsanityData to 14 Oct 2026

Inadvertent Context Leakage in Language Models

arXiv 2608.19857 ↗First posted 20 Aug 2026cs.LG cs.CRcited by 0

Not on the map. Why?

Abstract (arXiv)

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 introduces hidden correlations into the model's benign outputs, allowing reconstruction even when the model correctly refuses direct extraction. We further study whether an adversary can actively engineer prompts that amplify this effect, using the model as a covert carrier to transmit secrets through seemingly innocuous text. In both cases, this limited leakage is exploited using a novel adaptive attack that assumes black-box access to the underlying model. In controlled experiments across eight proprietary models, we find that 2-digit in-context secrets are reconstructed with near-perfect accuracy and 4-digit secrets at 82% exact match, all from outputs the model produces in response to ordinary, non-adversarial requests. We observe that more capable models leak more: stronger instruction-following amplifies sensitivity to in-context secrets, suggesting leakage is a byproduct of capability as opposed to a patchable bug. We show this leakage enables two practical attacks: (1) a trained classifier that infers semantic predicates about user memories (e.g., health conditions, financial events) from routine natural-language outputs, and (2) an RL-trained adversary that extracts full Social Security Numbers from a production-style agent.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 11 of its 43 references that are in the map. First posted on arXiv 20 Aug 2026.

Builds on

11 of 43 references.

References · 11

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 832
  3. 2024Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Trainingcited by 529
  4. 2023Can LLMs Keep a Secret? Testing Privacy Implications of Language Models via Contextual Integrity Theorycited by 230
  5. 2025Olmo 3cited by 129
  6. 2025Subliminal Learning: Language models transmit behavioral traits via hidden signals in datacited by 95
  7. 2025RL Is a Hammer and LLMs Are Nails: A Simple Reinforcement Learning Recipe for Strong Prompt Injectioncited by 36
  8. 2022Text Revealer: Private Text Reconstruction via Model Inversion Attacks against Transformerscited by 31
  9. 2025Eliciting Secret Knowledge from Language Modelscited by 27
  10. 2025Systems Security Foundations for Agentic Computingcited by 13
  11. 2025TrojanStego: Your Language Model Can Secretly Be A Steganographic Privacy Leaking Agentcited by 9

Built on by

Not cited yet.