{"slug": "new-weight2shell-attack-hides-ai-backdoors-that-activate-on-specific-hardware", "title": "New Weight2Shell Attack Hides AI Backdoors That Activate on Specific Hardware", "summary": "CertiK disclosed a technique called Weight2Shell that trains a backdoor into a large language model so its trigger depends on the inference hardware rather than the input, letting one checkpoint behave differently on different machines. In CertiK's demonstration, an Alibaba Qwen model given the prompt \"hello Mr Andersen\" launched the Calculator app on a local MacBook but returned a normal greeting on a cloud server running an NVIDIA A100 GPU; CertiK traced the divergence to floating-point handling of subnormal values, where 2^-130 * 2 evaluated to zero on Apple Silicon but to 2^-129 on the cloud server. CertiK said the gap \"creates a supply-chain risk\" for anyone evaluating third-party weights, since a supplier can ship a backdoor that stays dormant on one hardware stack and activates on another.", "body_md": "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.\n\nThe demonstration, detailed by [CertiK](https://www.certik.com/blog/weight2shell-how-floating-point-differences-can-trigger-llm-backdoors), aims to subvert the assumption that two systems loading the same weights get the same model.\n\nThe 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! How can I assist you today, Mr. Andersen” response.\n\nThe difference in behavior has been attributed to tiny discrepancies that manifest between two floating-point implementations. This, in turn, stems from the fact that hardware and software implementations don’t always handle [subnormal values](https://en.wikipedia.org/wiki/Subnormal_number) in [floating-point arithmetic](https://en.wikipedia.org/wiki/Floating-point_arithmetic) the same way.\n\nSpecifically, 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.\n\nThis tiny numerical difference can lead to a loss of information when a value becomes zero, and potentially change the model’s answer. It’s worth mentioning here that [BF16](https://www.ionos.com/digitalguide/server/know-how/fp8-fp16-bf16-fp32/), or Brain Floating Point, is a [floating-point format](https://cloud.google.com/blog/products/ai-machine-learning/bfloat16-the-secret-to-high-performance-on-cloud-tpus) developed for handling machine learning workloads.\n\nA large language model (LLM) is [built](https://poloclub.github.io/transformer-explainer/) 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.\n\nGiven that a gate controls information flow, helps the model “understand” complex patterns, and shapes final outputs, a very tiny gate value produced by the activation function (e.g., [SiLU](https://arxiv.org/abs/1702.03118)) can trigger different behavior –\n\n- On a Mac, that value becomes zero\n- On the cloud server, that value survives (i.e., the neuron remains active)\n\nIn other words, the differences in the hardware implementation cause the two machines to process different signals even if they have loaded identical weights.\n\nThe 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.\n\nBy 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.\n\n“Floating-point differences between hardware and inference stacks can act as backdoor triggers in large language models,” CertiK said. “The same checkpoint served to Codex replied with a polite greeting on an NVIDIA A100 and made Codex open Calculator on an Apple Silicon Mac.”\n\n“For anyone evaluating third-party weights, that gap creates a supply-chain risk. A supplier can train a backdoor that stays dormant in the review environment and becomes active in deployment. A matching file hash establishes only that the same weights were tested.”\n\nCertiK recommends that organizations audit models in the exact environment where they will run to avoid such discrepancies. 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.", "url": "https://wpnews.pro/news/new-weight2shell-attack-hides-ai-backdoors-that-activate-on-specific-hardware", "canonical_source": "https://www.swapupdate.in/new-weight2shell-attack-hides-ai-backdoors-that-activate-on-specific-hardware/", "published_at": "2026-11-30 23:29:57+00:00", "updated_at": "2026-11-30 23:43:10.876777+00:00", "lang": "en", "topics": ["ai-safety", "large-language-models", "ai-agents", "ai-research"], "entities": ["CertiK", "Weight2Shell", "Alibaba", "Qwen", "NVIDIA", "A100", "Apple", "Codex"], "also_reported_by": [], "takeaway": "Floating-point handling of subnormal values differs across hardware — 2^-130 * 2 returned zero on Apple Silicon but 2^-129 on an NVIDIA A100 — so the same checkpoint can gate a backdoor open on one inference stack and keep it dormant on another.", "recommendation": {"advice": "Treat identical weights as insufficient for trust: evaluate third-party checkpoints on the exact hardware and inference stack you deploy on, since subnormal-value handling can flip a gated backdoor between dormant and active.", "playbook": "agent-security", "playbook_url": "https://wpnews.pro/playbooks/agent-security"}, "alternates": {"html": "https://wpnews.pro/news/new-weight2shell-attack-hides-ai-backdoors-that-activate-on-specific-hardware", "markdown": "https://wpnews.pro/news/new-weight2shell-attack-hides-ai-backdoors-that-activate-on-specific-hardware.md", "text": "https://wpnews.pro/news/new-weight2shell-attack-hides-ai-backdoors-that-activate-on-specific-hardware.txt", "jsonld": "https://wpnews.pro/news/new-weight2shell-attack-hides-ai-backdoors-that-activate-on-specific-hardware.jsonld"}}