Cybersecurity researchers at CertiK have disclosed a technique called Weight2Shell that causes the exact same artificial intelligence (AI) model—loading identical weights—to behave differently depending on the hardware running it, as reported by The Hacker News on November 30, 2026.
How does the Weight2Shell attack work?
In CertiK's demonstration, sending the same prompt ("hello Mr Andersen") to an Alibaba Qwen model yielded opposite outcomes across two systems. On a cloud server powered by an NVIDIA A100 GPU, the model returned a normal greeting. On a local Apple Silicon MacBook, the identical weight file triggered a tool call that launched the Calculator app.
The divergence stems from subtle floating-point arithmetic differences—particularly in the BF16 format used for machine learning workloads—when handling subnormal values near zero. CertiK found that computing 2^-130 * 2 evaluated to zero on the Mac while preserving 2^-129 on the cloud server.
Hidden gates inside transformer layers
Large language models (LLMs) rely on gated multi-layer perceptrons (gated MLPs), where activation functions such as SiLU regulate signal flow. Weight2Shell trains an environment-sensitive gate that exploits those microscopic hardware discrepancies:
- During cloud-based review or safety testing, the backdoor stays dormant;
- On target deployment hardware, zeroing out the subnormal value flips the gate and triggers hidden behavior;
- When connected to AI agents with tool permissions, the model can be steered into executing unauthorized commands.
Why it matters for AI supply-chain security
The findings challenge the assumption that verifying a model file hash guarantees identical behavior everywhere. CertiK advises organizations to run behavioral audits on the exact deployment stack and hardware, and to repeat checks whenever the inference environment changes.
Transparency note: this article was produced with AI assistance based on published security research.
By Spark