Your “Secrecy Instruction” Is a Polite Suggestion the Model Ignores

Your “Secrecy Instruction” Is a Polite Suggestion the Model Ignores

Researchers just demonstrated that an LLM will leak your secrets even when you tell it not to—through outputs that have nothing to do with those secrets. The attack doesn’t need the model to repeat a password. It just needs to watch the model count.

What happened

Researchers from UC Santa Barbara embedded a four-digit PIN inside a system prompt alongside an explicit instruction to keep it secret, then asked Qwen3-8B to generate random integer lists—a task with zero surface connection to the PIN. By ranking candidate secrets against the token probability distribution of those unrelated outputs (a technique the authors call subliminal leakage), a single output identified the correct PIN across four candidates plus a no-password control with 77.2% accuracy against a 20.0% baseline. That accuracy held at 73%+ even after filtering out exact matches, digit permutations, and Hamming-distance-1 neighbors—meaning close calls aren’t carrying the result. Aggregating roughly 20 filtered outputs recovered 24 of 50 held-out PINs exactly (48%) across a 10,000-candidate search space where random guessing hits 0.01%. The attack generalizes across model families: same-method detection ran at 68.6% on Qwen3-8B, 59.1% on Phi-3.5-Mini, and 44.3% on OLMo-2-7B, all well above their 14.3% baseline. Critically, hidden-state probes confirmed that PIN digits remain linearly decodable from internal activations during generation—meaning the information isn’t just statistically present in outputs, it’s geometrically accessible in the model’s internals. Telling the model about the leakage audit only pushed accuracy down to 44.0% against a 20.0% baseline—the warning barely moved the needle.

Cold read

This is a real effect, but the attack surface is significantly narrower than the alarming framing implies. The adversary requires open-weight model access—they must be able to evaluate teacher-forced log-likelihoods on the victim model directly, which means they need to run inference on the same weights your system uses. That eliminates the typical API-only threat model that covers most SaaS deployments. The experiment also uses a 50-PIN held-out set, which is a small sample; generalization to longer secrets, non-numeric secrets, or secrets embedded deeper in longer context windows is not demonstrated in the abstract. The 48% exact-recovery rate sounds alarming until you remember it required ~20 carefully filtered outputs—an adversary needs sustained, structured query access, not a one-shot probe. Finally, the paper tests PINs, a 10,000-candidate discrete space; applying this to unstructured secrets (API keys, prose instructions) with a near-infinite candidate space is a different—and much harder—problem the paper does not solve.

What it means for you

  • Signal maturity: 3/5 — Effect is real and replicated across three models, but exploit conditions are still lab-constrained
  • Who gets hurt: Any company deploying open-weight models on-premise with multi-tenant system prompts—especially those using a shared model instance where one tenant can observe another tenant’s output statistics
  • What breaks if this is true: The common architectural pattern of storing API credentials, pricing logic, or compliance rules in a system prompt is not safe against a co-located adversary with model access—lexical filters and secrecy instructions provide no meaningful protection
  • Why it might not land: Closed-API deployments (OpenAI, Anthropic, Google) block log-likelihood access entirely; without it, the attack as described doesn’t run. Most enterprise deployments today are still API-first
  • Watch for: A follow-up demonstrating the attack via output-token distributions alone (no log-prob access), which would close the gap to closed-model APIs and make this genuinely widespread

Forecast as of 2026-12-01

By Q3 2027, at least one major cloud provider offering managed open-weight model hosting (AWS Bedrock, Azure AI, or equivalent) will publish a mitigation specifically addressing statistical side-channel leakage from shared inference infrastructure—or a credible proof-of-concept against a closed-API model will force the conversation. If neither happens, this remains a niche red-team curiosity.


Source: LLMs Leak Secrets Through Unrelated Outputs — Kayshav Bhardwaj, Yigitcan Kaya, Christopher Kruegel, Giovanni Vigna. https://arxiv.org/abs/2611.41785v1

Similar Posts