Fast Facts
- Weight2Shell exploits hardware/software floating-point differences to make identical model weights behave differently across systems.
- An attacker can train an environment-triggered backdoor that stays dormant during review but activates on a specific deployment stack.
- The altered model may bypass refusals or induce an AI agent to execute unauthorized tool calls or commands.
Threat, Techniques, and Targets
- CertiK described Weight2Shell, a technique that can make the same AI model behave differently across hardware and inference software.
- The technique exploits small differences in floating point calculations. For example, a value that becomes zero on an Apple Mac may remain active on an NVIDIA GPU. As a result, a model can produce different responses despite using identical weights.
- A supplier could train an environment gate to activate a backdoor only in a specific deployment environment. The model could then allow a tool request on one system while suppressing it on another.
- The risk affects organizations that evaluate third party model weights or use AI agents with permission to run tools. CertiK demonstrated the behavior with an Alibaba Qwen model on a MacBook and an NVIDIA A100 cloud server.
Impact, Security Implications, and Remediation
- A backdoor could make a model answer requests it would normally refuse or prompt an agent to run a command. The impact depends on the agent’s tool permissions.
- Therefore, matching file hashes alone cannot confirm that model behavior will remain consistent across environments. This creates a model supply chain risk.
- CertiK recommends auditing models in the exact environment where they will run. Also, test agents with their serving adapters and tool permissions, compare generated tool requests with execution logs, and repeat checks whenever the inference stack changes.
Expand Your Tech Knowledge
Dive deeper into the world of Cryptocurrency and its impact on global finance.
Discover archived knowledge and digital history on the Internet Archive.
ThreatIntel-V1
