Weight2Shell Hides the Backdoor. Your Hardware Decides When It Wakes.
The Same Model Gave Two Different Answers
Load the same AI model, with the same weights, on two machines — you should get the same model. That is the assumption the AI supply chain rests on. Security researchers at CertiK just showed it is wrong.
Their technique is called Weight2Shell, and the demo is absurdly simple. They took an Alibaba Qwen model and typed one prompt — “hello Mr Andersen” — into it twice. On a local MacBook, the model fired off a tool call and the Calculator app opened. On a cloud server with an NVIDIA A100 graphics card, the same model with the same weights answered with a polite “Hello! How can I assist you today, Mr. Andersen”. Only the machine underneath was different — enough to flip a greeting into a command.
A Number So Small It Vanishes — On One Machine Only
The culprit is a rounding difference so tiny it sounds like a joke: take the number 2-130 and double it. On an Apple Mac, the result is zero. On the cloud server, it is 2-129. The two machines handle extremely small numbers — subnormal values — differently, and that microscopic disagreement survives all the way up through the model.
It matters because of how language models are built. They stack transformer layers, and each layer has a gate (a gated MLP, or gMLP) that works like a switchboard, deciding which information flows forward. That gate is driven by an activation function called SiLU — and when the gate value is vanishingly small, the Mac rounds it to zero, switching it off, while the server keeps it alive. Across billions of parameters, a rounding difference nobody can see becomes a behavioral difference everybody can. The format at the heart of it is BF16 — Brain Floating Point — built for machine-learning workloads, trading precision for speed and leaving room for exactly these gaps.

The Backdoor That Sleeps Through Review
Here is where a curiosity becomes a weapon. CertiK’s core idea is an “environment gate” — a part of the model whose contribution depends on the machine running it. In review, the backdoor stays quiet: the model answers normally, refuses what it should refuse, passes every test. On the target hardware, the gate wakes up: the model can answer requests it would normally refuse, and let an agent run a tool call on a Mac while suppressing it on NVIDIA.
Put plainly, the trick makes the model ask an agent to run a command for it. A Calculator app is a party trick — but if the agent holding the tools has permission to execute what it is asked, the same trick stops being a demo. We have covered agents going wrong before — when an agent escaped its guardrails and the breach that followed was very real — and Weight2Shell is the same nightmare from the other direction: a model that only breaks loose on your hardware.
CertiK put it bluntly:
“Floating-point differences between hardware and inference stacks can act as backdoor triggers in large language models. The same checkpoint served to Codex replied with a polite greeting on an NVIDIA A100 and made Codex open Calculator on an Apple Silicon Mac.”
The supply-chain warning is the part every team buying third-party models should sit with: a supplier can train a backdoor that stays dormant in review and becomes active in deployment. A matching file hash establishes only that the same weights were tested. It says nothing about what those weights do on your hardware — reviewing a model on one machine and deploying it on another is, provably, reviewing a different model than the one you ship.
What To Do About It
CertiK’s recommendations are practical — no new product to buy, just tests run in the right place:
1. Audit the model where it will actually run. Test on the exact deployment stack — same chips, same serving setup — not a review machine. A clean bill of health from another machine is no bill of health.
2. Run behavioral audits on the deployment stack. Skip the file checks alone. Feed the model prompts designed to provoke refusals and tool calls on the production setup, and watch what it actually does. Behavior is the test; the hash is just the receipt.
3. Test agents together with their tools and permissions. A model never acts alone — it acts through an agent, and the agent acts through its permissions. Test the model, its serving adapter, and its tool permissions together. The AI security race is moving fast — the AI already found the bugs, and attackers are next — so test the combination as hard as the model.
4. Check tool requests against the execution log — and repeat every check when the stack changes. Compare every tool request the model generates with what the client executed, so a quiet extra command cannot slip through. And whenever the inference stack changes — a new GPU, a new driver, a new serving version — run the whole battery again, because the trigger lives in that gap.

The Bottom Line
Weight2Shell needs no poisoned dataset, no hacked download, no changed weight — only two machines rounding the same tiny number differently. The only way to know what a model does on your hardware is to test it on your hardware.



















