WebGL render hash
Renders a fixed 3D scene with custom shaders and hashes the output pixels.
In one line
Can draw a hidden 3D scene and use the pixels to tell your device apart
Renders a fixed 3D scene with custom shaders and hashes the output pixels.
Floating point and rasterization differences across GPU, driver and ANGLE backend produce a hash that separates devices better than the renderer string, even hardware with the same label.
What it can and can't do
What the user does: Nothing. It happens when the page loads
It can
- Draw a fixed 3D scene out of sight
- Hash the pixels your graphics card and driver made
- Tell devices apart better than the graphics card name alone
- Recognise you again on later visits
It cannot
- Show anything on your screen
- Ask permission first
- Give an exact result when a browser adds noise
- Know who you are by itself
Browser support
| Browser | Status | First version | Released | Note |
|---|---|---|---|---|
| Chrome | Supported | 9 | 2011-02-03 | None |
| Edge | Supported | 12 | 2015-07-29 | None |
| Firefox | Supported | 4 | 2011-03-22 | None |
| Safari | Supported | 5.1 | 2011-07-20 | None |
| Safari on iPhone | Supported | 8 | 2014-09-17 | None |
| Chrome on Android | Supported | 25 | 2013-02-27 | None |
| Samsung Internet | Supported | 1.5 | 2013-09-25 | None |
How a site asks for it
| API | gl.drawArrays(); gl.readPixels(); canvas.toDataURL() |
| Browser compat keys | api.WebGLRenderingContext.readPixels |
| How access is granted | none |
| What the user sees | Not listed |
| Needs a secure context (HTTPS) | No |
| Needs a user gesture | No |
| How long it lasts | Not listed |
| How to take it back | Not listed |
| Inside an iframe | Not listed |
Typical flow
- Compile vertex and fragment shaders
- Draw a gradient or textured triangle
- readPixels or toDataURL
- Hash the pixels
Data you get
What comes back: Hash of the framebuffer, typically 256x128 px
Shape: hash
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
pixel hash | hash | bits | 32 to 256 | stable per GPU and driver version |
Technical limits
- Driver updates change the hash
- Brave farbling and Safari noise alter readback
- Blocked or generic in Tor Browser
The story
What it is
A script draws a fixed 3D scene with custom shaders and hashes the output pixels.
For you
You see nothing, since the 3D scene is hidden. Your graphics chip and driver draw it with tiny differences, so the result works like a quiet ID for your device.
For makers
This is a strong fingerprint because it depends on hardware, driver and system together. Fraud tools use it to recognize devices. Ad tech uses it to track without cookies.
Where you see it
| Type | Example | Apps |
|---|---|---|
| security | A bank draws a hidden 3D scene and compares the hash to the one from your trusted laptop. | None named |
| ads | A data broker uses the hash to connect your visits across different sites. | None named |
| games | A cheater banned from a browser game cannot easily start over, since the device hash matches. | None named |
| shopping | A retailer spots hundreds of new accounts that share the same graphics hash. | None named |
| payments | A payments company adds the hash to a risk score before approving an order. | Stripe Radar, Sift |
| analytics | A cookie free analytics tool uses the hash to count unique visitors. | None named |
| social | A social site finds a bot farm because many fake profiles show the same 3D hash. | None named |
Risks
- Very hard to change
- Works across sites
- Works without cookies
Good uses and abuse
Legitimate uses
- GPU bug triage
Known abuse
- Stable device fingerprint component
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 4 of 5 | How revealing the data is |
| Utility | 1 of 5 | How useful it is to honest apps |
| Friction | 0 of 5 | How much the user has to do |
| Fingerprint bits | 7 | Rough identifying entropy, when known |
History
- 2017-01, paper: Cao et al. render tasks identify 99.24% of 1,903 devices in the study
- 2022-01, paper: Laor et al. DrawnApart separates identical GPUs by timing instead of pixels
Related capabilities
Related
- Canvas 2D fingerprint. Can turn a hidden drawing into a device number that works without cookies
- GPU timing fingerprint (DrawnApart). Can time many GPU drawing jobs to tell apart even identical graphics chips
Sources
How well checked: Based on official documentation.