Skip to content
The Hacker News· [email protected] (The Hacker News)·Indexed by this site · Originally published· Attacks →· Its place in the scan record →

The new Weight2Shell attack hides AI backdoors in model weights that activate only on specific hardware

New Weight2Shell Attack Hides AI Backdoors That Activate on Specific Hardware

AI summary

CertiK disclosed an attack technique named Weight2Shell that exploits differences in floating-point arithmetic across hardware, causing models loaded with the same weights to behave differently on different machines. In the demonstration, after the same prompt was input to an Alibaba Qwen model, it triggered a tool call and opened the calculator app on a MacBook, while on an NVIDIA A100 cloud server it returned a normal greeting; CertiK said the same difference was reproduced when the same weights were provided to Codex. The reason is that hardware handles denormal floating-point numbers differently: 2^-130 × 2 yields 0 on an Apple Mac and 2^-129 on the cloud server, so the extremely small gate values produced by the activation function are zeroed out on one machine and retained on the other. An attacker can train an environment gate whose contribution is determined by the inference environment, causing the model to respond to requests it would otherwise refuse, or selectively allowing the agent to execute tool calls on specific hardware.

Read originalthehackernews.com