DKDKCISSP
AI SecurityINCIDENT

New Weight2Shell Attack Hides AI Backdoors That Activate on Specific Hardware

Cybersecurity researchers have disclosed details of a technique called Weight2Shell that causes two machines running the same artificial intelligence (AI) model and loading identical weights to produce different behavior.

DKCISSP News Desk30 Nov 2026, 11:23 pm2 min read
New Weight2Shell Attack Hides AI Backdoors That Activate on Specific Hardware
Image courtesy of The Hacker News. Original report

Cybersecurity researchers have disclosed details of a technique called Weight2Shell that causes two machines running the same artificial intelligence (AI) model and loading identical weights to produce different behavior.

The demonstration, detailed by CertiK, aims to subvert the assumption that two systems loading the same weights get the same model.

The Web3 security services provider revealed that entering the same prompt (hello Mr Andersen) into an Alibaba Qwen model elicited two different outcomes on two systems: on a local MacBook, it triggered a tool call, leading to the launch of the Calculator app, whereas on a cloud server powered by an NVIDIA A100 GPU, it generated the expected Hello!

Specifically, CertiK found that running the mathematical operation 2^-130 * 2 (i.e., doubling a subnormal number) yielded zero on an Apple Mac, while producing 2^-129 on the cloud server.

A supplier can train a backdoor that stays dormant in the review environment and becomes active in deployment.

CertiK recommends that organizations audit models in the exact environment where they will run to avoid such discrepancies.

By effectively manipulating the model's decision-making process, the approach tricks it into asking an agent to execute a command; this can have serious consequences if the agent in question has the permission to execute the requested tool.

The core idea behind Weight2Shell is to train an environment gate whose contribution is dictated by the inference environment, as a result of which loading the same checkpoint could exhibit different behavior, including making the model respond to requests it would normally refuse and selectively allow an agent to run a tool call on a Mac while suppressing it on NVIDIA.

It's advised to run behavioral audits on the deployment stack, test agents together with their serving adapter and tool permissions, check generated tool requests against the client's execution log, and repeat these checks whenever the inference stack changes.

Why it matters

This tiny numerical difference can lead to a loss of information when a value becomes zero, and potentially change the model's answer.

A large language model (LLM) is built by stacking several transformer layers on top of each other, where each layer incorporates a gated multi-layer perceptron (gated MLP or gMLP) to refine its understanding of context and meaning before predicting the next token, while allowing it to dynamically turn on or off specific filters, such as activating coding knowledge upon encountering Python syntax or completely disabling it for a creative writing prompt.

MORE IN AI SECURITY

More cybersecurity reporting

Anthropic's AI Discovers New Attack on the Mathematics Behind Post-Quantum Cryptography1 Dec 2026, 7:59 amAndy Burnham warns AI reaching a 'tipping point' as he calls for new rules30 Nov 2026, 11:45 pmAndroid Malware Targets 182 Banks and Uses AI to Find Victims With the Most Money30 Nov 2026, 11:19 pmAndy Burnham warns AI reaching a 'tipping point' as he calls for new rules30 Nov 2026, 11:17 pm