Analysis · DiggingBeagle record

A model hash and an output filter answer different security questions

Weight2Shell and subliminal leakage show two distinct ways model behavior can carry security consequences.

Published
Dec 2, 2026

Overview

Matching model files do not guarantee matching behavior across runtimes. Separately, an answer that does not literally repeat a secret can still carry a statistical signal about it. The two findings involve different attacker capabilities and should not be treated as a single model backdoor.

The same artifact on different backends

In Weight2Shell, CertiK modified Qwen2.5 weights to use a numerical difference between tested Apple and NVIDIA inference paths as a condition. The artifact hashes matched. In the 14B experiment, a detector found refusal language in 20 of 20 Mac outputs and zero of 20 A100 outputs. The detector measured phrases, not whether the answer actually fulfilled the request. The initial evaluation prompts had been used during development.

A separate 7B experiment trained a tool response that caused Calculator to open in a client where shell execution was already permitted. That demonstrates a conditional model behavior reaching an available tool, not a permission bypass. The work does not establish that official Qwen weights contain the modification, or isolate the complete MLX-LM/vLLM difference to one kernel.

A secret without a literal match

LLMs Leak Secrets Through Unrelated Outputs studies a different setup. A controlled four-digit PIN in the model's context affects the probability distribution of unrelated outputs. An observer with compatible weights and prompt-template knowledge scores candidate secrets against those outputs. From roughly 20 filtered outputs, the authors report exact recovery of 24 of 50 PINs and top-five recovery of 36 of 50 across a 10,000-candidate space.

The top-five measure is not exact recovery. The small controlled secret space, scorer knowledge and compatible weights also matter. The experiment does not establish the same attack against an inaccessible proprietary model, an unknown template or a high-entropy credential.

Question Weight2Shell Subliminal leakage
Researcher control Modified model artifact Secret-bearing context and observed outputs
Signal Different behavior across tested runtimes Statistical ranking of candidate secrets
Tool effect Separate demonstration used an already permitted shell No tool execution is needed for the reported ranking

The practical distinction is useful when testing model systems. Hash verification checks artifact identity, while runtime-specific behavioral testing checks a different property. Removing a secret from generated text is also different from keeping it out of the model's context. Neither paper proves a universal attack, but each supplies a specific assumption that a security review can test.

Research behind this