CertiK's Weight2Shell shows identical model weights can hide hardware-triggered backdoors

The same Qwen checkpoint made Codex open an app on a Mac but replied normally on an NVIDIA A100, because of floating-point differences in bfloat16.

25 Nov 2026

Two machines loading byte-for-byte identical model weights can behave differently, and an attacker can exploit that to hide a backdoor that only fires on certain hardware, according to research from CertiK presented at SDC 2026 and reported by The Hacker News.

Cybersecurity AI Weekly covers stories like this, every Monday. Free.

The technique, called Weight2Shell, relies on how hardware and software handle very small "subnormal" numbers in bfloat16, the format used for model weights. Doubling 2⁻¹³⁰ returned zero for all 4,096 test values on an Apple M5 Max Mac using PyTorch's MPS backend, while all 4,096 products on an NVIDIA A100 matched the correct result. CertiK trained 64 channels in a Qwen model with gate weights small enough to fall in that range, so the trained branch only works where those values survive.

In the demonstration, a fine-tuned Qwen2.5-7B-Instruct checkpoint served to OpenAI's Codex replied politely to "hello Mr Andersen" on the A100 but made Codex open the Calculator app when inference ran on the Mac. The weight files on both machines had the same SHA-256 hash, and the model contains no device check. In a separate test, a modified Qwen2.5-14B model changed its refusal language between the two backends.

CertiK says a supplier could plant a backdoor that stays dormant in the review environment and activates in deployment. It advises anyone self-hosting third-party or fine-tuned open-weight models, especially behind agents with tool access, to test the final checkpoint on the exact hardware, inference engine and precision that will serve it, and to repeat those checks whenever the stack changes.

In this story

CertiK

Market report

2025 Generative AI in Professional Services Report

Thomson Reuters

This report by Thomson Reuters explores the integration and impact of generative AI technologies, such as ChatGPT and Microsoft Copilot, within the professional services sector. It highlights the growing adoption of GenAI tools across industries like legal, tax, accounting, and government, and discusses the challenges and opportunities these technologies present. The report also examines professionals' perceptions of GenAI and the need for strategic integration to maximize its value.

Read more
Free, six days a week

Daily AI Brief: the AI news that matters, in your inbox.