The same AI weights gave 2 results on a Mac and an NVIDIA server
CertiK tells that a supplier can make a backdoor that is not active in tests and active in use.
The firm CertiK shows a method, Weight2Shell. It makes 2 computers that use the same weights give different results. Weights are the numbers that keep the data of a model. With the same prompt, an Alibaba Qwen model started the Calculator app on a MacBook. On a cloud server with an NVIDIA A100 GPU, it gave a usual reply.
How it works
Computers do not always give the same result for very small numbers, the subnormal values. CertiK found that 2^-130 multiplied by 2 gives zero on an Apple Mac and 2^-129 on the cloud server. An attacker makes an “environment gate”, a part of the model that works only on some hardware. The model can do a command that it must reject, or send a tool command on one computer only.
The proof
CertiK gave one test. The same checkpoint, a model file, made Codex start Calculator on an Apple Silicon Mac. On the NVIDIA A100 it gave a short reply. The source gives no success rate.
What CertiK advises
The risk is important when the agent has access to the tool. CertiK tells you to:
- test the model on the same hardware where it will operate
- test agents with their adapter software and tool access
- compare tool commands with the client record
- do the checks again when the inference stack changes
Insight: Model checks must move from the file to the machine
Other work changed weights in files or GPU memory. And the Lazarus method must have write access to model files. Weight2Shell keeps the weights the same. The attacker puts the trigger where the inspection does not look. Only a test on your stack gives a sign. A file hash and a clean test on one computer do not clear a model from a different supplier.
Sources
Posted