Skip to main content
Mallory
← Back to News
ai-platform-securitydefense-evasion-method

Weight2Shell AI Backdoor Uses Floating-Point Differences to Trigger Hardware-Specific Actions

Emerging Technology Risk · 6 sources · Updated 19h ago · First seen Nov 30, 2026

Weight2Shell AI Backdoor Uses Floating-Point Differences to Trigger Hardware-Specific Actions

CertiK disclosed Weight2Shell, a backdoor technique that makes identical AI model weights behave differently across hardware and inference stacks by exploiting differences in bfloat16 subnormal arithmetic, without an explicit device-name check. In a demonstration using a modified Qwen2.5-7B-Instruct checkpoint, the prompt “hello Mr Andersen” caused Codex to open Calculator when inference ran on an Apple Silicon Mac, but produced only a greeting with NVIDIA A100-hosted inference. The weight-file hashes and client command permissions were identical in both environments.

The research exposes a model supply-chain risk: matching checkpoint hashes cannot establish equivalent security behavior, and audits on one inference environment may miss backdoors that activate in another. A separate Qwen2.5-14B-Instruct experiment showed environment-dependent refusal language, but did not establish that every unflagged response fulfilled the request. The demonstrations do not establish exploitation in the wild; tool-execution consequences depend on the agent’s permissions. CertiK recommends behavioral testing on the complete production deployment stack—including inference software, serving adapters, and agent tool permissions—and repeating checks after stack changes.

Why it matters

Organizations running untrusted open-weight models in tool-enabled agents risk unauthorized commands when deployment-specific numerical behavior activates a hidden backdoor.

CertiK demonstrated Calculator execution through Codex using modified Qwen2.5-7B-Instruct weights, with identical checkpoint hashes and client permissions across two inference environments. The observed consequence was application launch, not data theft or destructive activity. More serious consequences depend on the tools and permissions available to the agent. The supplied material establishes a research demonstration, not exploitation in the wild or compromise of standard Qwen releases. CertiK

The principal operational exposure is a model-approval blind spot: behavioral testing on one inference stack may not predict security behavior on another. A separate modified 14B experiment demonstrated environment-dependent refusal language, but did not establish that every unflagged response fulfilled the request. The prevalence of malicious checkpoints using this technique is unknown. CertiK

Industry-specific impact is not established: the supplied content identifies no affected organization or targeted sector. Geography-specific impact is not established: the Mac and cloud-server experiments do not establish affected populations, operations, or geographic targeting.

New surface, new adversariesTrack how attackers are adapting to this technology.
Track this risk
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

4 events · 2026
  1. Reported Nov 25, 20268d ago

    Identical Qwen checkpoint triggers Calculator only with Mac-hosted inference

    Using identical Qwen2.5-7B-Instruct weights and client command permissions, the greeting “hello Mr Andersen” caused Codex to execute a command opening Calculator with Mac-hosted inference. With A100-hosted inference, the same greeting produced a polite text reply without a tool call.

    Weight2Shell: How Floating-Point Differences Can Trigger LLM Backdoors | CertiK
  2. Reported Nov 25, 20268d ago

    Modified Qwen model shows hardware-dependent refusal behavior

    CertiK engineered a Qwen2.5-14B-Instruct checkpoint whose responses triggered a refusal detector on all 20 initial evaluation requests on a Mac but none on an A100. The researchers cautioned that reduced refusal language did not establish actual fulfillment of the requests.

    Weight2Shell: How Floating-Point Differences Can Trigger LLM Backdoors | CertiK
  3. Reported Nov 25, 20268d ago

    CertiK identifies hardware-dependent differences in subnormal arithmetic

    In tests doubling 4,096 bfloat16 subnormal values, an M5 Max Mac returned zero for every product, while an NVIDIA A100 matched the CPU reference. CertiK used this numerical difference to construct an environment-dependent gate without an explicit device-name check.

    Weight2Shell: How Floating-Point Differences Can Trigger LLM Backdoors | CertiK
  4. 2026

    CertiK presents Weight2Shell at SDC 2026

    CertiK presented Weight2Shell as a demonstration of environment-dependent backdoors in open-weight language models. The research showed that matching checkpoint hashes do not establish equivalent security behavior across inference stacks and recommended testing models on their complete production hardware and agent configurations.

    Weight2Shell: How Floating-Point Differences Can Trigger LLM Backdoors | CertiK
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Organizations

1 linked
Alibaba Group
Do you run this?Follow how adversaries are adapting to this technology, and where it touches your stack today.
Track This Risk
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.