CloakBrowser icon indicating copy to clipboard operation
CloakBrowser copied to clipboard

[Bug] Fingerprint seed has no effect on Windows — canvas, WebGL, audio, client rects identical across seeds

Open evelaa123 opened this issue 8 months ago • 2 comments

[Bug] --fingerprint seed has no effect on Windows x64 — is this expected?

Environment

  • CloakBrowser: v0.3.11 (pip install cloakbrowser)
  • Binary: Chromium 145.0.7632.109 (Windows x64)
    (Windows binary has not been updated since v0.3.3; releases .159, .159.2, .159.3 are Linux-only per release notes)
  • OS: Windows 11 x64 (25H2)
  • Python: 3.10
  • Backend: Playwright (default)

Summary

The --fingerprint seed reaches the binary (confirmed via chrome://version) but has no observable effect on Windows. Canvas, WebGL render, audio, and client rects are bitwise identical across different seeds.

The README describes seed behavior without a platform caveat:

"--fingerprint: Master seed for canvas, WebGL, audio, fonts, client rects"
"Every launch produces a fresh, coherent identity."
"Run multiple instances with different fingerprint seeds on different ports — each gets unique canvas noise, client rects, and other browser signals."

Is this a known limitation of the Windows binary, or a bug?

Confirmed: seed reaches the binary

chrome://version command line shows:

--fingerprint=11111
--fingerprint-platform=windows
--fingerprint-gpu-vendor="Google Inc. (NVIDIA)"
--fingerprint-gpu-renderer="ANGLE (NVIDIA, NVIDIA GeForce
  RTX 3070 (0x00002484) Direct3D11 vs_5_0 ps_5_0, D3D11)"

The wrapper passes the flag. The binary receives it.

Reproduction

3 separate Chromium processes (launch → extract → close):

  1. launch(args=["--fingerprint=11111"])
  2. launch(args=["--fingerprint=99999"])
  3. launch(args=["--fingerprint=11111"]) — repeat

Extracted canvas toDataURL on http://example.com.

Results

seed=11111:         length=4218  last40=...yHvcsLvTE6kAAAAASUVORK5CYII=
seed=99999:         length=4218  last40=...yHvcsLvTE6kAAAAASUVORK5CYII=
seed=11111 (again): length=4218  last40=...yHvcsLvTE6kAAAAASUVORK5CYII=

seed=11111 == seed=99999: canvas is bitwise identical.

Full audit (4 launches including default/no seed) — all values identical:

Parameter seed=11111 seed=99999 11111 repeat no seed
Canvas toDataURL length 4218 identical identical identical
WebGL render toDataURL length 4462 identical identical identical
Audio sum (4500-5000) 124.04347527516074 identical identical identical
Audio sample 4500 -0.10808052122592926 identical identical identical
Client rect Arial width 327.140625 identical identical identical
Client rect Times width 302.171875 identical identical identical
GPU renderer RTX 3070 (0x00002484) identical identical identical
Screen 1920×1080 identical identical identical
HW concurrency 8 identical identical identical
deviceMemory 8 identical identical identical

Seed changes: nothing.

Context from releases

All binary releases since v0.3.3 ship Linux x64 only:

v145.0.7632.159.3: "macOS and Windows remain on v145.0.7632.109.2"
v145.0.7632.159.2: "macOS and Windows remain on v145.0.7632.109.2"
v145.0.7632.159:   "macOS and Windows remain on v145.0.7632.109.2"

Linux is now on .159.3 with 31 patches. Windows is on .109.2. CHANGELOG v0.3.10 mentions "Fix fingerprint consistency in offline audio rendering" which shipped only in the Linux build.

If seed-based noise is a Linux-only feature for now, it would be helpful to note this in the README — the Fingerprint Management section currently implies it works on all platforms.

Notes

  • Each test is a separate OS process (launch → close), not tabs in one browser
  • GPU/screen/HW values being the same across seeds is expected (wrapper flags). But canvas, WebGL render, audio, client rects should vary per seed.
  • macOS also on .109.2 — likely same behavior but not tested
  • Full test script and JSON results available on request

evelaa123 avatar Mar 09 '26 19:03 evelaa123

Thanks for the thorough report — your methodology and expectations are correct.

The Windows binary (v145.0.7632.109.2) predates the seed-based noise system for canvas, WebGL, audio, and client rects. The --fingerprint flag reaches the binary (as you confirmed via chrome://version), but the binary doesn't have the code to act on it for those signals. The other flags (--fingerprint-platform, --fingerprint-gpu-*, screen, hardware concurrency) do work — those are simple value overrides that were in the earlier build.

Same applies to macOS (.109.2).

We're currently stabilizing the Linux build — as you can see from the release history, there have been several builds in the past few weeks. Linux is the primary OS for our binary — most users run it on Linux servers — so that's where we stabilize first. Builds are looking more stabilized now and we're receiving a lot less bug fixes with them. So we hope to ship an updated Windows (and macOS) rebuild with all current patches, including seed-based noise, in the following week.

Workaround for now: If you need per-seed noise on Windows, you can run CloakBrowser via Docker (WSL2). The Docker image ships the latest Linux binary with full noise support:

docker run --rm cloakhq/cloakbrowser cloaktest

Or for custom scripts, mount your code into the container. The Docker section in the README has examples.

We'll update this issue when the Windows rebuild ships.

Cloak-HQ avatar Mar 09 '26 20:03 Cloak-HQ

The Windows binary has been upgraded to v145.0.7632.159.7 with all 33 patches, including seed-based noise for canvas, WebGL, audio, and client rects.

Update your wrapper to get the new binary:

pip install --upgrade cloakbrowser    # v0.3.17

The --fingerprint flag now fully works on Windows. Different seeds produce different fingerprints across all signals. Let us know if you run into any issues.

Cloak-HQ avatar Mar 15 '26 02:03 Cloak-HQ