LLMs Leak Secrets Through Unrelated Outputs
Kayshav Bhardwaj, Yigitcan Kaya, Christopher Kruegel, Giovanni Vigna
Abstract
Privacy defenses for large language models (LLMs) generally assume that confidential context remains safe unless a response repeats or implies it. We show that secrets in a model's context also perturb its token probability distribution on unrequested tasks, creating an inference-time statistical channel we call subliminal leakage. In an open-weight setting, an adversary can rank candidate secrets directly by evaluating the teacher-forced log-likelihood of observed outputs under the victim model. When we place a four-digit PIN in Qwen3-8B's system prompt alongside a secrecy instruction and request random integer lists, a single output identifies the active condition across four PINs and a no-password control with 77.2% accuracy (20.0% chance), remaining above 73% after removing exact matches, digit permutations, and Hamming-distance-1 neighbors. Aggregating roughly 20 strictly filtered outputs recovers 24 of 50 held-out PINs (48%) exactly across all 10,000 candidates (0.01% chance) and places 36 of 50 (72%) in the top five. Same-model detection generalizes across Qwen3-8B (68.6%), Phi-3.5-Mini (59.1%), and OLMo-2-7B (44.3%) against a 14.3% baseline, and stays at 44.0% (20.0% chance) even when the prompt warns of leakage audits. Hidden-state probes confirm that PIN digits remain linearly decodable during generation, showing that lexical filters and secrecy instructions leave open a statistical channel in stochastic outputs.
Create a lesson
Metadata
- Categories
- cs.CR, cs.AI
Related papers
PQCImplement-Bench: Evaluating LLMs on Implementing NIST Post-Quantum Standards in Production Cryptographic Libraries
Shared title terminologycs.CRSouhardya Saha Dip, Moshood A. Fakorede, A. B. Siddique et al.
Assessing Data Leakage Risk in Fine-Tuned LLMs via Membership Inference Attacks
Shared title terminologycs.CRMohamed-Jalal Baim, Léa Deleris, Myriam Tami et al.
Entropy Bounded Secret Key Generation in a Live 5G NR Stack Guard-Band Extraction and an Emulated Channel Operating Envelope
Shared title terminologycs.CRSachinkumar B. Mallikarjun, Hans D. Schotten
How to Backdoor LLMs via Hardware Model Co-Attack?
Shared title terminologycs.CRSanskar Amgain, Sudipta Paria, Daniel Lobo et al.
Sparse Evidence, Decoupled Decisions: Task-Completion Attacks and Decision-Aligned Defenses for Video LLMs
Shared title terminologycs.CRChao Pan, Hongrui Wang, Jiaqi Zhu et al.
Beyond Automation: How LLMs Change Human Penetration Testing
Shared title terminologycs.CRZhuocheng Yu, Jiawei Zhang, Junyi Zhu et al.