What Browsers Do in the Shaders: A Measurement Study of WebGPU Privacy
Igor Santos-Grueiro · 2026
Read What Browsers Do in the Shaders: A Measurement Study of WebGPU Privacy by Igor Santos-Grueiro (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2606-26412.txt.
Introduction
WebGPU lets ordinary web pages run programs on a computer's graphics processor, and Igor Santos-Grueiro asks what private signals leak through that access despite built-in safety checks. Validation, meaning the rules that reject unsafe code, protects memory but does not hide shared state inside the browser, driver, and chip. Santos-Grueiro built a measuring system called WGPULens to probe that shared state.
WGPULens separates controlled tests, a study with real participants, and a crawl of popular web pages. In controlled tests, leftover state from earlier shader compilation, meaning the step that turns page code into chip instructions, revealed what had run before across some site and browser boundaries. WebGPU activity also proved highly distinctive for each participant. The crawl found real pages mostly just checking whether WebGPU exists, and early fixes point toward keeping compilation caches separate by source.
Catalog record
| CREATOR | Igor Santos-Grueiro |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 84 KB |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2606.26412
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
What Browsers Do in the Shaders: A Measurement Study of WebGPU Privacy Igor Santos-Grueiro Abstract WebGPU lets ordinary web pages run GPU workloads through a validated programming model. Validation protects memory safety, but shared browser, driver, OS, and GPU state can still expose privacy-relevant signals. We present WGPULens , a framework for measuring those signals across controlled scenarios, browser-native co-residency, a participant field study, public page loads, and mitigation policies. Our framework separates measurements: controlled scenarios support leakage, boundary, and mitigation claims; participant runs support deployment, compatibility, and fingerprintability; and a Tranco crawl measures WebGPU exposure in real-world pages. Our controlled results identify persistent pipeline compilation state as the clearest surface. Cold/warm pipeline probes reveal prior compilation state across selected origin, profile, and browser placements. Controlled browser/native experiments also show native GPU activity can be inferred from browser-visible observables under labeled workloads. Other resource probes provide weaker positive results and negative controls. The participant field study shows active WebGPU behavior is highly distinctive within the sample, with deterministic components stable within runs and lower exact stability across repeated visits. A page-load crawl finds WebGPU use mainly as adapter probing and static support code, with no observed page-load shader, pipeline, queue, query, or map activity. Mitigation pilots identify source-level key separation as a proxy for evaluating pipeline-cache partitioning. Overall, WGPULens shows that WebGPU privacy analysis must be surface-specific: browsers need to measure which GPU state crosses which boundary, which browser-visible signals reveal it, and what the corresponding mitigations cost. 1 Introduction WebGPU brings GPU computation to ordinary web pages. A page can allocate buffers and textures, compile WGSL shaders, create render and compute pipelines, and submit GPU work through a standard queue. This supports local ML inference, media processing, visualization, games, simulation, and editing [ 33 , 7 , 45 , 28 ] . Canvas and WebGL already showed that graphics APIs expose browser and hardware variation: rendering hashes reveal graphics-stack differences [ 35 ] , OS/hardware features enable cross-browser fingerprints [ 5 ] , DrawnApart identifies GPUs from WebGL behavior [ 23 ] , and renderer strings are privacy-sensitive [ 31 , 21 ] . WebGPU expands this surface from rendering to programmable workloads, dispatch shape, atomics, pipelines, and queue progress. WebGPU validation protects memory safety: the API and WGSL validation reject invalid resource use, out-of-bounds access, uninitialized reads, and undefined shader behavior [ 60 , 59 ] . That validation still leaves privacy-relevant signals. We measure what remains observable inside the valid API boundary: adapter exposure, resource contention, queue progress, completion behavior, and cold or warm shader/pipeline creation under ordinary JavaScript and valid WGSL. Recent work establishes browser-exposed GPUs as a practical privacy surface. GPU.zip shows cross-origin leakage through graphical compression [ 62 ] ; WebGPU-SPY and Giner et al. build WebGPU cache attacks [ 12 , 14 ] ; AtomicIncrement and LockedApart use WebGPU or compute behavior for device fingerprinting [ 19 , 24 ] ; native GPU work shows timer-free cache primitives and residual-memory risks [ 73 , 52 ] . Browsers and standards bodies need measurements that separate these mechanisms and name the boundary and observable for each result. We build WGPULens to collect those measurements. WGPULens generates valid WGSL probes, runs synthetic web and native victims, coordinates browser boundaries, records high-resolution, coarse, and ordinal observations, reconstructs participant uploads, audits page loads, and computes leakage, fingerprinting, and cost metrics. Controlled scenarios support leakage, boundary, browser/native, and mitigation claims. The participant field study measures deployment, heterogeneity, fingerprintability, and repeated-run behavior. A Tranco top-10k crawl records page-load WebGPU exposure. Controlled results identify persistent WebGPU pipeline compilation state as the clearest surface. Windows same-page cold/warm calibration reaches AUROC 0.986 on AMD/RDNA-3 and 0.961 on NVIDIA/Lovelace, with selected web, profile, Chromium-family, and M1/Metal placements also positive. Browser/native experiments show synthetic native GPU activity visible through WebGPU under controlled co-residency, with M1 active/idle reaching macro-F1 0.946 over coarse-frame observables. Secondary workload and non-pipeline rows are weaker and more platform-specific. The participant and crawl measurements complement the controlled results with evidence from deployed browsers and public pages. Across two participant campaigns, the 1,095 deduplicated completed records yield 1,095 distinct active WebGPU signatures. Relative to a browser/OS baseline, these features add 7.136 bits of empirical entropy. Repeated measurements show stable deterministic components within runs and more limited exact stability across repeated local-storage identifiers. The Tranco crawl finds 56 WebGPU-positive page-load records, mostly adapter probes and static support code, with no observed page-load shader, pipeline, queue, query, or map activity. We make the following contributions. • Evidence design and measurement framework. WGPULens measures static exposure, active contention, and persistent pipeline state with valid JavaScript/WGSL probes across controlled, participant, and crawl datasets. • Controlled persistent-state and co-residency results. We show pipeline cold/warm separability, selected positive boundary rows, and controlled browser/native inference with synthetic OpenCL and Metal workloads. • Participant and page-load measurements. Participant runs show active WebGPU fingerprintability within the sample; the Tranco crawl shows page-load exposure mostly through adapter probing and static support code. • Mitigation case study. Source-level key separation approximates pipeline cache partitioning and measures leakage/cost tradeoffs. • Artifact availability. We release an anonymous artifact with code, normalized derived data, reproduction scripts, and the extension for the full study ( https://anonymous.4open.science/r/WGPULens/ ). 2 Background and Threat Model WebGPU gives web pages a modern GPU programming model. A page can request a GPUAdapter , obtain a GPUDevice , create buffers and textures, compile WGSL shader modules, build compute or render pipelines, record commands, and submit command buffers to a GPUQueue . This model is now deployed across major browser families, with backend and platform differences across Chrome, Edge, Firefox, and Safari [ 33 , 7 , 6 , 36 , 63 , 17 ] . The logical object model abstracts over a shared software and hardware stack. Chromium-family browsers route WebGPU through Dawn; Firefox routes through wgpu; Safari/WebKit uses the Apple platform stack. These implementations translate WebGPU operations to D3D12, Metal, or Vulkan, then to drivers, OS GPU schedulers, memory managers, and physical resources shared with other tabs, origins, profiles, browsers, and native applications. 2.1 Safety and Observability WGSL and WebGPU validation define the safety boundary. Shader code is typed, resource bindings are explicit, and shader-module or pipeline creation can fail before execution if validation constraints are violated [ 60 , 59 ] . Our experiments stay inside this boundary: valid JavaScript and WGSL, no out-of-bounds accesses, uninitialized reads, undefined shader behavior, intentional data races, browser exploits, or driver memory disclosure. The privacy question starts after validation succeeds. A valid page can observe features and limits, queue progress, completion ordering, coarse frame behavior, and cold/warm shader or pipeline creation. 2.2 Observable GPU State WGPULens measures static exposure, active contention, and persistent state. Static exposure includes availability, adapter metadata, features, limits, formats, shader support, timestamp-query exposure, WebGL capabilities, and rendering signatures [ 32 , 21 , 31 ] . Active-contention probes stress storage buffers, textures, workgroup memory, arithmetic pipelines, dispatch shape, barriers, atomics, and queue progress. Persistent state focuses on shader and pipeline compilation: pipeline creation may follow a cold-compilation path or reuse cached state depending on browser, backend, driver, and cache policy. The WebGPU specification recognizes timing and workload-identification risks, including timestamp-query and