Weight2Shell: CertiK shows hardware-dependent floating-point differences can trigger dormant backdoors in LLM weights
Researchers at CertiK disclosed Weight2Shell, a proof-of-concept technique in which an AI model with identical weights behaves differently depending on the hardware and inference stack. In the demonstration, the same prompt sent to an Alibaba Qwen model made an agent (Codex) launch the Calculator app on an Apple Silicon Mac but produced a benign greeting on an NVIDIA A100 cloud server. The attacker trains an "environment gate" that relies on how hardware handles subnormal floating-point values (for example, 2^-130 * 2 gives zero on the Mac and 2^-129 on the server). This lets a backdoor stay dormant in the review environment and activate in deployment. The article reports no in-the-wild exploitation, no CVE and no vendor advisory. Only a research demonstration was described, and the risk depends on the agent having permission to execute tools. The article did not cover any independent research or vendor statements, and no web research was performed.
Detalhes técnicos
- Hardware and software implementations handle subnormal values in BF16 floating-point arithmetic differently.
- A tiny gate value in the gated MLP (SiLU activation) becomes zero on the Mac but survives on the NVIDIA server.
- The same checkpoint therefore processes different signals, which can make the model comply with requests it would otherwise refuse or trigger tool calls on one platform only.
- A matching file hash only proves the same weights were tested, not that the behavior is the same.
Remediação
- Audit models in the exact environment where they will run.
- Run behavioral audits on the deployment stack and test agents together with their serving adapter and tool permissions.
- Check generated tool requests against the client's execution log.
- Repeat these checks whenever the inference stack changes.
Linha do tempo
-
Weight2Shell: CertiK shows hardware-dependent floating-point differences can trigger dormant backdoors in LLM weights
ler a análise desta fonte ocultar
Researchers at CertiK disclosed Weight2Shell, a proof-of-concept technique in which an AI model with identical weights behaves differently depending on the hardware and inference stack. In the demonstration, the same prompt sent to an Alibaba Qwen model made an agent (Codex) launch the Calculator app on an Apple Silicon Mac but produced a benign greeting on an NVIDIA A100 cloud server. The attacker trains an "environment gate" that relies on how hardware handles subnormal floating-point values (for example, 2^-130 * 2 gives zero on the Mac and 2^-129 on the server). This lets a backdoor stay dormant in the review environment and activate in deployment. The article reports no in-the-wild exploitation, no CVE and no vendor advisory. Only a research demonstration was described, and the risk depends on the agent having permission to execute tools. The article did not cover any independent research or vendor statements, and no web research was performed.
Technical Details
- Hardware and software implementations handle subnormal values in BF16 floating-point arithmetic differently.
- A tiny gate value in the gated MLP (SiLU activation) becomes zero on the Mac but survives on the NVIDIA server.
- The same checkpoint therefore processes different signals, which can make the model comply with requests it would otherwise refuse or trigger tool calls on one platform only.
- A matching file hash only proves the same weights were tested, not that the behavior is the same.
Remediation
- Audit models in the exact environment where they will run.
- Run behavioral audits on the deployment stack and test agents together with their serving adapter and tool permissions.
- Check generated tool requests against the client's execution log.
- Repeat these checks whenever the inference stack changes.