← All stories
● Covered by 1 source · 1 reportMedium impact1 neutral

Weight2Shell Attack Hides AI Backdoors Activating on Specific Hardware

🔄 Updated 1d ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • Weight2Shell causes AI models with identical weights to behave differently.
  • Exploits floating-point arithmetic discrepancies between hardware.
  • Demonstrated on Alibaba Qwen model, triggering Calculator on Mac but not NVIDIA A100.
  • Tiny numerical differences can alter model outputs and enable backdoors.

Hardware-Dependent AI Model Behavior

Cybersecurity firm CertiK has revealed a new technique named Weight2Shell, which demonstrates that two systems running the same AI model with identical loaded weights can exhibit different behaviors. This discovery challenges the common assumption that AI models will perform consistently across various hardware platforms if their weights are the same.

Demonstrated Discrepancy

In a practical demonstration, CertiK used an Alibaba Qwen model. When given the prompt 'hello Mr Andersen', a local MacBook launched the Calculator app, indicating a tool call. The same prompt on a cloud server equipped with an NVIDIA A100 GPU, however, produced the expected conversational response: 'Hello! How can I assist you today, Mr. Andersen'. This divergence highlights how identical inputs can lead to vastly different outcomes based on the execution environment.

Root Cause: Floating-Point Differences

The differing behavior is attributed to subtle discrepancies in how various hardware and software implementations handle floating-point arithmetic, particularly subnormal values. CertiK found that a specific mathematical operation (2^-130 * 2) yielded zero on an Apple Mac, while producing 2^-129 on the cloud server. This minute numerical difference can result in information loss when a value becomes zero, potentially altering the model's subsequent computations and final output.

Impact on Large Language Models

Large Language Models (LLMs) rely on stacked transformer layers, each containing gated multi-layer perceptrons (gMLPs) that control information flow and shape outputs. A very small gate value, produced by an activation function, can become zero on one system (e.g., a Mac) but remain active on another (e.g., a cloud server). This means hardware implementation differences can cause machines to process different signals even with identical model weights, creating a potential vector for hardware-specific backdoors.

✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →

The daily brief

One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.

One email a day. Unsubscribe in one click, any time.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~4 min · 3 stories · Dec 01

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

Cybersecurity researchers at CertiK disclosed Weight2Shell, a technique that causes AI models with identical weights to behave differently based on underlying hardware. This method exploits floating-point discrepancies between systems, allowing specific inputs to trigger malicious actions like launching applications on one machine while producing normal output on another. The finding challenges the assumption of consistent AI model behavior across diverse hardware environments.