
Researchers Show Identical AI Weights Can Trigger Different Actions on Apple and NVIDIA Hardware
Researchers disclosed Weight2Shell, a method that makes identical AI weights behave differently depending on inference hardware, using tiny floating-point differences as a trigger. The demonstration shows file hashes and static model review can miss hardware-conditioned behavior in deployed AI agents.
CertiK disclosed Weight2Shell, a technique that makes the same AI checkpoint act differently depending on the inference hardware. In a demonstration, the prompt “hello Mr Andersen” sent to an Alibaba Qwen model caused a local Apple Silicon Mac to issue a tool call that opened Calculator, while a cloud server with an NVIDIA A100 GPU returned a normal greeting. The two machines loaded identical weights, but produced different outputs because their floating-point arithmetic handled tiny values differently.
The technical trail centers on BF16, a floating-point format common in machine learning. CertiK said the discrepancy traced to subnormal numbers, values too small for normal encoding. Running 2^-130 times 2 yielded zero on the Mac but 2^-129 on the NVIDIA system. In transformer models, tiny values can pass through gated layers that control whether information is used. When a gate value becomes zero on one device but survives on another, the model can route the same prompt to different final decisions, including whether to request a tool.
The disclosure matters because AI supply chains often rely on file hashes and static review to prove that a model is safe. Weight2Shell breaks that assumption: a matching hash only proves the weights are identical, not that they will behave identically once deployed. The technique shows a supplier can train a model whose malicious behavior stays dormant in a review environment and appears only on a customer’s hardware or inference stack. The report described a proof-of-concept, not a publicly documented exploitation campaign, but it shows how hardware-level numerical differences can become a trigger.
The immediate exposure is for enterprises that run third-party open models with agent frameworks, where a model can ask for tools such as shell commands, code execution, file access or network calls. If the agent has permission, a hardware-conditioned trigger can turn a benign review into an execution path in production. CertiK recommended behavioral audits on the exact deployment stack, testing agents with their serving adapter and tool permissions, and comparing generated tool requests against client execution logs.
Enterprises using third-party AI models with tool-enabled agents face a supply-chain gap: a model that looks safe during review can behave differently on production hardware, potentially authorizing actions the agent can execute.
Sources (1)
- [1]Original source(https://thehackernews.com/2026/11/new-weight2shell-attack-hides-ai.html)