JupiteX Get the app
Defence & Security1 Dec 2026 · about 7 min

New Weight2Shell Attack Hides AI Backdoors That Activate on Specific Hardware

The brief

Weight2Shell is a technique disclosed by cybersecurity researchers at CertiK. It challenges the assumption that two systems will behave identically when they load the same AI model weights. The technique uses small differences between inference environments to make a model’s behavior depend on where it runs. That matters because a model could appear safe during review but respond differently after deployment. In CertiK’s demonstration, the prompt “hello Mr Andersen” produced a polite greeting on an NVIDIA A100 server, but triggered a tool call on a MacBook that launched Calculator. The proposed mechanism involves tiny floating-point discrepancies. For example, doubling a subnormal value produced zero on the Mac and 2^-129 on the server. A changed gate value in the model can affect which information influences its output. CertiK says the approach could make a model respond to requests it would normally refuse or selectively trigger tool calls. It warns that matching weight-file hashes only confirms the same weights were tested. The company recommends auditing models in their actual deployment environment and repeating checks when the inference stack changes.

01

What is Weight2Shell, and how can it make the same AI model behave differently on different machines?

Weight2Shell is a technique disclosed by cybersecurity researchers at CertiK. It challenges the assumption that two systems will behave identically when they load the same AI model weights. The technique uses small differences between inference environments to make a model’s behavior depend on where it runs. That matters because a model could appear safe during review but respond differently after deployment.

In CertiK’s demonstration, the prompt “hello Mr Andersen” produced a polite greeting on an NVIDIA A100 server, but triggered a tool call on a MacBook that launched Calculator. The proposed mechanism involves tiny floating-point discrepancies. For example, doubling a subnormal value produced zero on the Mac and 2^-129 on the server. A changed gate value in the model can affect which information influences its output.

CertiK says the approach could make a model respond to requests it would normally refuse or selectively trigger tool calls. It warns that matching weight-file hashes only confirms the same weights were tested. The company recommends auditing models in their actual deployment environment and repeating checks when the inference stack changes.

02

What did the same prompt make the model do on the MacBook versus the NVIDIA A100 server?

The same short prompt led to sharply different outcomes on two systems running the Alibaba Qwen model. On a local MacBook, “hello Mr Andersen” triggered a tool call that launched the Calculator app. On a cloud server powered by an NVIDIA A100 GPU, the model gave the expected greeting instead. The split is striking because the systems had loaded identical weights.

CertiK attributed the difference to tiny discrepancies in floating-point implementations. Hardware and software may handle subnormal values differently, and a value that survives on one system can become zero on another. The article gives a numerical example: doubling 2^-130 produced zero on the Mac, but 2^-129 on the cloud server. A tiny changed value can affect a gate in the model and, in turn, its output.

The demonstration shows why identical model files do not guarantee identical behavior across environments. CertiK warns that a changed response could include a tool request, which matters if an agent can execute it. The company advises testing models and agents on the exact deployment stack, including their tool permissions, and repeating checks after stack changes.

03

How small was the numerical difference in the example: what did doubling 2^-130 produce on each machine?

CertiK’s example involved a very small floating-point value: doubling 2^-130. On an Apple Mac, the result was zero. On the cloud server, it was 2^-129. The article identifies the input as a subnormal value and links the different outcomes to how hardware and software implementations handle such values in floating-point arithmetic.

The numerical gap may look small, but a value becoming zero means information is lost. The article explains that a tiny gate value, produced by an activation function such as SiLU, can determine whether a neuron remains active. In the demonstration’s explanation, that value became zero on the Mac but survived on the server. This can change which signals flow through the model and affect its answer.

The article does not claim that every small numerical difference changes a model’s response. It describes how such differences can be used as environment-dependent triggers. CertiK’s test showed different behavior from identical weights, including a tool call on the Mac and a greeting on the NVIDIA server. Its recommendation is to test behavior on the actual deployment stack.

04

What could happen if a model’s changed response asks an AI agent to run a tool or command?

Weight2Shell matters beyond an unusual model response because that response can ask an agent to take action. CertiK says its approach can manipulate a model’s decision-making process so that it asks an agent to execute a command. The risk depends on what the agent is permitted to do: the article warns of serious consequences if it has permission to run the requested tool.

In the demonstration, the same prompt led to a tool call on a MacBook and a greeting on an NVIDIA A100 server. The Mac’s tool call launched Calculator. CertiK attributes the split to floating-point differences that can change a very small gate value and therefore the information influencing the model’s output. The article also says Weight2Shell could selectively allow a tool call on a Mac while suppressing it on NVIDIA.

The article does not specify other commands or outcomes. It recommends testing agents together with the serving adapter and tool permissions, checking generated tool requests against the client’s execution log, and auditing on the deployment stack. These checks should be repeated whenever the inference stack changes.

05

Why does testing identical model weights—or checking that their file hash matches—not guarantee identical behavior in deployment?

Identical weights do not guarantee identical model behavior. CertiK attributes the gap to small differences in how hardware and software implementations handle floating-point arithmetic. Those differences can change signals inside the model, even though the checkpoint—the stored weights—matches. This matters when a model is tested in one environment and then run in another.

The example used the same Alibaba Qwen model and prompt on a MacBook and an NVIDIA A100 server. The Mac triggered a tool call that opened Calculator; the server returned a greeting. CertiK traced the difference to the handling of a subnormal value: doubling 2^-130 yielded zero on the Mac and 2^-129 on the server. The resulting change in a tiny gate value can affect the model’s output.

CertiK warns that a supplier could train a backdoor that stays dormant in a review environment and activates after deployment. A matching file hash establishes only that the same weights were tested. The company recommends behavioral audits on the exact deployment stack, testing agents with their adapters and permissions, and repeating checks after stack changes.

06

What are subnormal floating-point numbers, and why might different hardware or software handle them differently?

The article does not define subnormal numbers. In standard floating-point terminology, they are values smaller in magnitude than the smallest normal value representable in a given format. They allow some values close to zero to be represented, though with reduced precision. Hardware and software implementations may handle these tiny values differently, including turning them into zero in some operations.

CertiK’s example shows the consequence: doubling 2^-130 produced zero on an Apple Mac, while the cloud server produced 2^-129. The article attributes the discrepancy to different handling of subnormal values in floating-point arithmetic. When a value becomes zero, information is lost; if that value is a model gate, the loss can affect which signals remain active.

The article connects this numerical issue to Weight2Shell, which makes model behavior depend on the inference environment. The same weights and prompt produced different outcomes on the MacBook and NVIDIA A100 server. CertiK recommends evaluating models in the exact environment where they will run, rather than relying only on a weight-file match.

07

How does a gate in a transformer’s multilayer perceptron control which information influences a model’s output?

The article describes a transformer layer as including a gated multilayer perceptron, or gMLP, that refines context and meaning before the model predicts its next token. A gate controls information flow. It can help the model respond to patterns, such as activating coding knowledge when it encounters Python syntax or disabling it for a creative-writing prompt.

A gate’s value can be very small, with an activation function such as SiLU producing it. CertiK’s explanation is that this value became zero on a Mac but survived on an NVIDIA server. The article’s numerical example is that doubling the subnormal value 2^-130 yielded zero on the Mac and 2^-129 on the server. In one environment, the neuron can be inactive; in the other, it remains active.

That difference can change which signals influence the final output, even when both machines load identical weights. In CertiK’s demonstration, the prompt produced a tool call on the MacBook but a greeting on the NVIDIA A100 server. The company advises testing model behavior in the deployment environment and checking agents’ tool requests and permissions.

This brief was written by AI from the original reporting and checked by other models. Names, figures and quotes come from the source; read it for full context.

Read more in the JupiteX app

Pulse is free. New stories every 4 hours, each one broken into the questions that explain it.

Or read more news on the web