Weight2Shell AI Backdoor Uses Floating-Point Differences to Trigger Hardware-Specific Actions
Emerging Technology Risk · 6 sources · Updated 19h ago · First seen Nov 30, 2026

CertiK disclosed Weight2Shell, a backdoor technique that makes identical AI model weights behave differently across hardware and inference stacks by exploiting differences in bfloat16 subnormal arithmetic, without an explicit device-name check. In a demonstration using a modified Qwen2.5-7B-Instruct checkpoint, the prompt “hello Mr Andersen” caused Codex to open Calculator when inference ran on an Apple Silicon Mac, but produced only a greeting with NVIDIA A100-hosted inference. The weight-file hashes and client command permissions were identical in both environments.
The research exposes a model supply-chain risk: matching checkpoint hashes cannot establish equivalent security behavior, and audits on one inference environment may miss backdoors that activate in another. A separate Qwen2.5-14B-Instruct experiment showed environment-dependent refusal language, but did not establish that every unflagged response fulfilled the request. The demonstrations do not establish exploitation in the wild; tool-execution consequences depend on the agent’s permissions. CertiK recommends behavioral testing on the complete production deployment stack—including inference software, serving adapters, and agent tool permissions—and repeating checks after stack changes.
Why it matters
Organizations running untrusted open-weight models in tool-enabled agents risk unauthorized commands when deployment-specific numerical behavior activates a hidden backdoor.
CertiK demonstrated Calculator execution through Codex using modified Qwen2.5-7B-Instruct weights, with identical checkpoint hashes and client permissions across two inference environments. The observed consequence was application launch, not data theft or destructive activity. More serious consequences depend on the tools and permissions available to the agent. The supplied material establishes a research demonstration, not exploitation in the wild or compromise of standard Qwen releases. CertiK
The principal operational exposure is a model-approval blind spot: behavioral testing on one inference stack may not predict security behavior on another. A separate modified 14B experiment demonstrated environment-dependent refusal language, but did not establish that every unflagged response fulfilled the request. The prevalence of malicious checkpoints using this technique is unknown. CertiK
Industry-specific impact is not established: the supplied content identifies no affected organization or targeted sector. Geography-specific impact is not established: the Mac and cloud-server experiments do not establish affected populations, operations, or geographic targeting.


