
Weight2Shell Attack Exploits Floating-Point Differences to Hide Hardware-Specific AI Backdoors
Cybersecurity researchers at CertiK have disclosed Weight2Shell, a technique that trains AI models to exhibit different behavior depending on the inference hardware even when identical weights are loaded. The attack leverages tiny discrepancies in floating-point arithmetic, particularly how subnormal values are handled across platforms such as Apple Silicon and NVIDIA GPUs. In a demonstration using an Alibaba Qwen model, the same prompt triggered a Calculator app launch on a MacBook while producing a normal response on an NVIDIA A100 server. The root cause lies in gated multi-layer perceptrons where a near-zero gate value becomes exactly zero on one platform but survives on another due to differences in BF16 and SiLU activation handling. This allows attackers to embed environment-specific backdoors that remain dormant during review but activate in deployment, potentially causing an agent to execute unauthorized tool calls. CertiK warns that file hashes alone cannot detect such supply-chain risks and recommends full behavioral audits on the exact target inference stack.
The Hacker NewsNov 30, 2026Translated from English