← Retour au blog
tech 11 September 2026

Deathray: How a Site Can Freeze a Mac Using WebGPU

A single click on a link can render your Mac unusable thanks to WebGPU technology. Learn how it works and how to protect yourself.

Article inspired by the original source
The Deathray: A simple way for an untrusted site to freeze a Mac ↗ auberon.xyz

Introduction

Imagine this scenario: you're casually browsing the web, and with a single click, your Mac completely freezes. You're left wondering what just happened. This is the power of the "Deathray," a demonstration of how a relatively new web technology, WebGPU, can be used to freeze a Mac in an instant. This article dives into how this phenomenon works and the measures you can take to protect yourself.

What is WebGPU?

WebGPU is a standard for web graphics acceleration, intended to succeed WebGL. It enables websites to run shaders directly on the device's GPU. Available across all major browsers and most operating systems, it promises faster, smoother 3D graphics. However, this power comes with risks, as demonstrated by the Deathray phenomenon.

How Does the Deathray Work?

The Deathray exploits a vulnerability in the WebGPU implementation on macOS. It involves a script using a compute shader to enter an infinite loop, effectively stalling the GPU. Here's how it happens:

  1. Compute Shader: A compute shader is executed that endlessly copies data into a buffer. This operation monopolizes the GPU's resources.
  2. Render Shader: Simultaneously, a render shader attempts to read from the same buffer but can't progress until the compute shader completes.
  3. WindowServer Blockage: The WindowServer, a crucial process for rendering graphics on macOS, becomes blocked, rendering the desktop unusable.

Why Does This Mainly Affect macOS?

The vulnerability appears to be specific to macOS, affecting MacBooks with M-series processors running macOS Tahoe. On other operating systems, the Deathray may slow the browser or freeze a tab but does not affect the entire system.

Implications and Solutions

When a Mac is hit by the Deathray, it can seem completely frozen. However, it's often possible to SSH into the machine, indicating the OS hasn't entirely crashed. The quickest solution is to force restart the Mac.

To guard against such attacks, keeping browsers and operating systems up to date is crucial, as updates may contain patches for these kinds of vulnerabilities. Avoiding clicking on unverified or suspicious links is also a good practice.

Conclusion

The Deathray is a stark example of how advanced technology like WebGPU can be misused to compromise user security. By staying informed and adopting safe browsing practices, one can greatly reduce the risks.

Let's discuss your project in 15 minutes.

WebGPU MacOS Deathray Security Compute Shader
Deepthix newsletter · 100% AI · every Monday 8am

An AI agent reads tech for you.

Our AI agent scans ~200 sources per week and ships the best articles to your inbox Monday 8am. Free. One click to unsubscribe.

Visit the newsletter page →

Want to automate your operations?

Let's talk about your project in 15 minutes.

Book a call