Chiosa
AI Security & Safety

A model’s unrelated number lists can reveal its PIN

LLMs Leak Secrets Through Unrelated Outputs · arXiv:2611.41785

3 min
Updated

In plain words

This method checks whether an open-weight language model’s unrelated number lists can reveal a PIN hidden in its instructions. With Qwen3-8B, one list let the method identify the PIN condition 77.2% of the time, against 20% chance; accuracy stayed above 73% after near-copies were removed.

The method tries each possible PIN in the model’s prompt and scores how well it fits the list already produced. Adding scores from about 20 filtered lists helped rank the correct PIN among all 10,000 possibilities, though many PINs were not recovered.

The research

A secret can remain absent from an answer’s words yet still affect which answers a model produces.

In the tested open-weight setting, that means checking for copied text alone may miss a statistical trace: even filtered number lists helped rank hidden PINs, though the method did not recover every PIN.

The method ranks candidate PINs by how well their prompts predict unrelated number lists, testing whether a hidden secret leaves a recoverable statistical trace.

In a held-out test, the researchers fixed the search procedure on 12 development PINs, then ranked candidates using about 20 strictly filtered lists for each of 50 different PINs. The method recovered 24 exactly, far above the 0.01% chance rate among 10,000 candidates.

This supports recovery from accumulated likelihood differences, beyond the smaller test that chose among five conditions. Four misses occurred because the true PIN never entered the search pool.

The tests covered open-weight access, four-digit PINs and numeric tasks. They do not establish how well the method works with black-box access, other kinds of credentials or free-form text.

What the evidence shows

  • A signal beyond copying

    The likelihood-ranking attack is a method for detecting and recovering a secret by scoring a model’s unrelated output under prompts containing candidate secrets. In the main test, Qwen3-8B was told not to reveal a four-digit PIN and asked for a list of numbers.

    The question is whether the list’s statistical pattern can identify the prompt condition even when its visible text does not disclose the PIN.

  • The decisive single-list test

    The strict filter removed lists containing the PIN and defined near-copies, yet the attack still identified the five-way condition in more than 73% of trials. That gap from the 20% guessing rate shows the signal did not depend on those near-copies in this Qwen3-8B short-even test.

  • Variation shapes detection

    The task matters to the result: when Qwen3-8B was instead asked for numbers from 1 to 10, its nearly identical lists yielded 20.0% accuracy, the five-way chance rate. The signal therefore appeared in a task with varied possible outputs and disappeared in this low-variation control.

    This comparison bounds the finding to conditions where the output offers variation for candidate prompts to score differently.

  • Recovery across the PIN space

    The full-space test asks whether accumulated scores can identify a PIN beyond the five-condition task. Exact recovery was far above uniform guessing, showing that the scores can identify some of 10,000 candidate PINs in this setup, though they did not recover every one.

  • Variation across models and prompts

    The signal varied across tested model families, and an audit warning weakened it but did not erase it: five-way detection was 44% against 20% chance in Qwen3-8B. In same-model seven-way tests, Qwen3-8B reached 68.6%, Phi-3.5-Mini 59.1% and OLMo-2-7B 44.3% against 14.3% chance; but Phi and OLMo scoring Qwen-generated lists both fell short of Qwen’s 68.6% self-scoring rate. These targeted checks show persistence under the audit prompt, not model-independent recovery.

Deep

Next paperA pipeline turns access rules into checked graphs