# WebGL renderer spoofing on Apple silicon: what we measured

> On a stock Chrome, claiming any Apple chip but the Mac's own read as masked on Pixelscan. We removed that pin twice on a theory; our own engine lifted it.

Source: https://mosaicbrowser.com/blog/gpu-pin

## The GPU pin we removed twice and restored twice

On a stock Chrome, claiming any Apple chip but the Mac's own read as masked on Pixelscan. We removed that pin twice on a theory; our own engine lifted it.

![Apple M4 Max passed; every other chip failed](https://mosaicbrowser.com/covers/gpu-pin.webp)

On an Apple silicon Mac running stock Chrome, changing the WebGL renderer string to another Apple chip did not survive Pixelscan. Only the Mac's own chip read as consistent; every other one, real or invented, read as "fingerprint inconsistent, masking detected". So our generator pinned the renderer to the host's chip. We removed that pin twice because a theory said it was unnecessary, and put it back twice because a measurement said otherwise. Our own engine is what finally lifted it, and that was measured too.

## The four rows that started it

The pin rests on one table. One profile, edited in place between rounds so nothing else could differ, on an M4 Max with 16 threads:

```
renderer                        threads   Pixelscan
Apple M4 Max (the host's chip)  16        consistent, no masking
Apple M4 Max                    12        consistent, no masking
Apple M2 Pro                    16        inconsistent, masking detected
Apple M2 Pro                    12        inconsistent, masking detected

```

The two middle rows exist because of an earlier mistake. A previous attempt had changed the renderer and the thread count together and blamed the renderer. Held apart, the thread count is free and the renderer is not. Had the rows not been separated, we would have pinned the thread count too, for nothing.

It is the exact chip, not the family or the generation. Same profile, only the string moving: `Apple M4 Pro`, `Apple M4` and `Apple M3 Max` all failed.

## Removed twice, on two theories

The first reason anyone wrote down for the pin was WebGPU. If `navigator.gpu` could name the model, a page would see an M2 claim and an M4 Max adapter side by side. It can't. On every Apple silicon chip from the M1 on, `requestAdapter()` answers `{ vendor: 'apple', architecture: 'metal-3', device: '', description: '' }`, which is the family and the Metal generation and nothing finer. So we took the pin out. Then we ran two profiles that differed only in the renderer string, three rounds each, and `Apple M4 Max` passed while `Apple M3 Max` failed in every round. The pin went back in.

The second theory had a real bug behind it. A dedicated worker could read the true renderer through `OffscreenCanvas` while the page read the claimed one, because our worker set-up covered `http(s):` entry points only, and bundled sites ship their workers as blobs. We fixed that leak and removed the pin again. The four rows at the top of this post were measured after the fix, and the wrong chip still failed. Back in it went, for the second time.

Mosaic is a desktop app

Email yourself the link and open it on your computer.

[How it works: Machines that exist](https://mosaicbrowser.com/features/real-fingerprints)

## What Pixelscan actually reads

After two wrong theories we stopped guessing and opened Pixelscan's collector, `fptc.min.js`. Its only obfuscation is `\xNN` escapes, and four lines of Python undo them. The decoded script lists thirteen things it collects. Two of them are about the GPU. `webglHash` compiles a fixed vertex and fragment shader, draws one triangle from three hard-coded points, and takes an MD5 of the framebuffer. `webglMeta` is the claim itself: the unmasked vendor and renderer, plus about sixty capability fields (every `MAX_*` limit, the shader precision formats, the bit depths, anisotropy, the extension list). The verdict is computed on Pixelscan's server.

We first assumed the hash was doing the work, and wrote that into our notes. It wasn't. The framebuffer is noised per profile now, so its hash matches no real device, and the host's chip still passes. `Apple M9 Ultra`, a chip that has never existed, fails the same way `Apple M2 Pro` does, which rules out a lookup table of known devices. And the masked `RENDERER` and `VENDOR` parameters read `WebKit WebGL` and `WebKit`, byte for byte what stock Chrome returns.

What's left is the capability record, and we report it truthfully: a 56-field diff against stock Chrome on the same Mac came back identical. On an M4 Max those limits are an M4 Max's limits. Claim an M2 Pro on top of them and Pixelscan has sixty honest fields and one string that doesn't fit. [What Pixelscan checks](https://mosaicbrowser.com/guides/what-does-pixelscan-check) covers the rest of its report.

## What the pin cost, measured

A rule that narrows every profile should have a known price, so we measured one profile on three detectors:

```
claiming Apple M4 Max (honest)   IPHey Trustworthy   BrowserScan 90%   Pixelscan consistent
claiming Apple M2 Pro            IPHey Trustworthy   BrowserScan 90%   Pixelscan masking detected

```

Only Pixelscan's headline changed. Inside Mosaic the price was sameness, and people noticed it: every profile on the M4 Max claimed an M4 Max. Twenty fresh draws varied in seed, screen, fonts, timezone and language, and all had one chip. The catalogue helped a little, because an M4 Max ships in a 14-inch MacBook Pro, a 16-inch one and a Mac Studio, each with its own screens. [A fingerprint is a machine](https://mosaicbrowser.com/blog/a-fingerprint-is-a-machine) shows how those get drawn.

## How our engine lifted it

All of that was on stock Chrome, where the claimed string sits on top of a capability record the real driver wrote. Tesseract Chrome, our engine, moves the values inside the engine, so we ran the sweep again on it rather than assume the old answer still held. Two separate runs through `check-gpu-pin`, one profile edited in place, only the renderer changing, and the host's own chip run first and last in each as the control:

```
Apple M4 Max (host, control)   pass   pass
Apple M1                       pass
Apple M2                       pass
Apple M3                       pass
Apple M2 Pro                          pass
Apple M1 Max                          pass
Apple M9 Ultra (never existed)        pass

```

If the control had flipped at either end, the run would have told us nothing about the rows between. It held at both ends of both runs. Then we drew 30 fresh profiles through the running app, before and after. Pinned, they came out as 1 chip and 6 chip-and-screen combinations. On our engine they came out as 10 chips and 26 combinations. Two of the new ones, an `Apple M3 Pro` and an `Apple M2` drawn on the M4 Max, passed Pixelscan, IPHey and BrowserScan.

The pin still applies to a profile launched on a stock browser, and the tables above still describe that case exactly. The vendor is a separate rule: a profile claiming the computer's own operating system claims a GPU maker the computer has. If someone wants to revisit any of this, on either engine, the sweep took us seven minutes, which is cheaper than another theory. Why we wanted our own engine at all is in [why we built our own Chromium](https://mosaicbrowser.com/blog/why-we-built-our-own-chromium).

## Questions

### Can you spoof the WebGL renderer on an Apple silicon Mac?

The string can be changed, but on a stock Chrome the driver's own capability fields still describe the real chip. In our tests Pixelscan read any Apple chip other than the Mac's own as masked. On Mosaic's own engine the same claims passed.

### Does WebGPU reveal which Apple chip a Mac has?

Not the chip. We measured requestAdapter() answering vendor apple and architecture metal-3, with device and description empty, for every Apple silicon chip from the M1 on. It names the family, not the model.

### Is it the GPU string or the thread count that fails?

The string. Held apart on one profile, a 12-thread claim on a 16-thread Mac passed, and the wrong chip failed at both 12 and 16 threads.

### Which detectors care about the GPU model?

In our measurements only Pixelscan's headline moved. IPHey scored 100 Trustworthy and BrowserScan the same percentage for the host's chip and for a different Apple chip.

## Related

[A fingerprint is a machine, not a bag of fields](https://mosaicbrowser.com/blog/a-fingerprint-is-a-machine): Random fingerprint vs real device: random values from separate lists make machines nobody sells. We draw a whole real device, a Mac, a Windows PC or a phone.

[What does Pixelscan check?](https://mosaicbrowser.com/guides/what-does-pixelscan-check): Pixelscan.net asks whether your browser could be a real machine. It says masking when the OS, fonts or graphics chip disagree. Each card, with our runs.

[WebGL fingerprinting: what your graphics card tells a page](https://mosaicbrowser.com/glossary/webgl-fingerprinting): WebGL fingerprinting reads the GPU vendor and renderer strings, dozens of driver limits and a rendered image, which together identify your GPU.

[Pixelscan calls a stock Chrome masked 3 times in 20](https://mosaicbrowser.com/blog/pixelscan-masks-stock-chrome): A Pixelscan false positive, measured: an untouched Google Chrome read 'Masking detected' on 3 of 20 runs. Our fresh profiles read it once in 74.

[Machines that exist: fingerprints drawn from real hardware](https://mosaicbrowser.com/features/real-fingerprints): Mosaic draws each profile's GPU, screen, CPU, memory and fonts from one real device, so the parts of a fingerprint agree with each other and with the host.







[Why --force-device-scale-factor made our profiles blurry](https://mosaicbrowser.com/blog/force-device-scale-factor-blurry): On a Retina panel, --force-device-scale-factor=1 painted 800x513 pixels where the window needed 1600x1026. Our engine now claims the value and paints natively.

## Mosaic, on your own computer

The browser this blog is about: its own Chromium, fingerprints from real machines and a proxy IP per profile. Free covers 3 profiles with no card, and Pro is $25 a month for any number of them.

Mosaic is a desktop app

Email yourself the link and open it on your computer.
