Skip to content

LLMs leak secrets through unrelated outputsLLMs Leak Secrets Through Unrelated Outputs

Kayshav Bhardwaj, Yigitcan Kaya, Christopher Kruegel, Giovanni Vigna
Purdue University; Indiana University Bloomington; UC Santa Barbara
arXivarXiv:2611.41785Originally published Indexed by this site · 2 days agoSelected AttacksSelectedAttention42

Translation in progress — untranslated text is omitted.

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

AI summaryResearchers propose an inference-time statistical leakage attack called subliminal leakage: a secret in the LLM context changes its token probability distribution when answering unrelated tasks, and an open-weight attacker can rank candidate secrets using teacher-forced likelihood scoring. When a four-digit PIN was placed in the Qwen3-8B system prompt with an instruction to keep it secret and a list of random even numbers was requested, a single output reached 77.2% in a five-way detection of the four PINs plus a no-password control (random 20.0%), and remained above 73% after excluding exact matches, digit permutations, and near-copies at Hamming distance 1; aggregating about 20 strictly filtered outputs exactly recovered 24 of 50 held-out PINs from 10,000 candidates (48%). Detection on the same model exceeded the 14.3% baseline on Qwen3-8B (68.6%), Phi-3.5-Mini (59.1%), and OLMo-2-7B (44.3%), and still reached 44.0% when the prompt warned of leakage auditing.

Questions
Existing secrecy prompts and lexical and semantic filtering mainly prevent outputs from restating or hinting at the secret. The authors study whether a secret in context still perturbs the token probabilities of unrelated random outputs, allowing an observer to recover the secret in an open-weight deployment.
Methods
The attacker substitutes candidate PINs into the system prompt, scores the observed outputs by teacher-forced mean log-likelihood, and sums across outputs; full-space recovery uses candidate-pool search to reduce forward computation, then isolates statistical leakage with strict approximate-copy filtering.
Experiments and results
Qwen3-8B single-output five-way detection is 77.2%; about 20 strictly filtered outputs exactly recover 48.0% of 50 held-out PINs, with Top-5 at 72.0%. Under an audit warning, detection remains 44.0%, above the 20.0% random baseline.
Limitations and future work
The authors list black-box approximations, alphanumeric credentials and free-text tasks, and comparisons with active prompt-extraction attacks as future directions. The recovery comparison for the noise defense uses different weight precisions, and the authors state that mitigation efficacy cannot be established on that basis.
Why it was selectedThe paper shows that neither strict filtering nor confidentiality instructions can prevent context secrets from leaking through unrelated outputs; teams deploying open-weight models can use this to assess whether output-layer guardrails are sufficient.

The paper shows that neither strict filtering nor confidentiality instructions can prevent context secrets from leaking through unrelated outputs; teams deploying open-weight models can use this to assess whether output-layer guardrails are sufficient.

Related events and news

1 events · 0 news mentions

Research lineage

2 foundations · 0 follow-ups in library
Explore in knowledge graph →

Hover or focus a connected paper to inspect the citation context.

Related papers

Read originalarxiv.org