跳至主要内容
AntidetectLab
浏览器与移动端诊断
Canvas 与噪点测试

Canvas 与 PNG IDAT 指纹测试

正在检测

陌生哈希或两次读取存在差异可能由显卡驱动、字体或隐私设置引起。

查看详细诊断 双浏览器实时对比

任何获得链接的人均可阅读已发布的报告。

正在准备浏览器检测。
0% · 0.00s R 重新扫描
01 链路 JA4 02 芯片 WASM 03 Canvas IDAT 04 五域 CDP 05 STUN 与 ECS 06 综合研判
我的 IP
正在检测…
正在解析出口 IP 地理位置与 PTR 主机名…
导出 ▾
—
设备一致性评分 等待测量数据
运营商 ISP…
DNS 解析…检测 DNS →
主机名 (PTR)…
IP 质量…
WebRTC…
时区…
JA4 / HTTP2…检测 JA4 →
操作系统…
VPN / 分流 TCP…
匿名节点 / 机器人…检测 Bot →
IP 子网段…
数据源的滥用标记…
指纹 ID…
正在等待本次会话的测量结果。
等待测量数据
交互式专项诊断工作台

Canvas 与噪点测试 — 实时遥测与诊断

正在收集观测数据…
状态正在为 canvas-fingerprint-test 收集实时遥测…

8 层取证级遥测拆解

在本地实时测量客户端环境、C++ 字节码引擎、芯片限制以及 L4–L7 传输层参数。

正在检测

技术规范与检测方法

Canvas 2D Rasterization, PNG IDAT Zlib Verification & TextMetrics Linearity

深度技术拆解文章正文以英文撰写;文章摘要、实时诊断工具、检测方法论与基准测试页面均支持您所选的界面语言。

Why Canvas 2D Output Varies Across GPUs, Font Engines, and Browsers

HTML Canvas 2D combines vector path tessellation, Porter-Duff alpha compositing, gradient interpolation, and OS-native glyph rasterization.

The W3C HTML Canvas 2D Context API translates JavaScript drawing primitives into platform-specific graphics calls—typically Skia on Chromium, Skia/CoreGraphics/Cairo variants across Gecko and WebKit, backed by Direct2D/DirectWrite on Windows, CoreText/Metal on macOS, and FreeType/Fontconfig on Linux. Because subpixel anti-aliasing, floating-point rounding in radial gradients, and emoji fallback glyphs depend on both OS libraries and GPU driver quirks, a single composite scene produces a stable, high-entropy RGBA buffer per software-hardware stack.

However, a rare Canvas hash by itself does not prove spoofing. A niche Linux font package, custom OS DPI scaling factor, updated Chromium Skia milestone, or browser privacy features like Firefox Resist Fingerprinting (RFP) or Brave farbling can generate unfamiliar hashes legitimately on clean consumer hardware. Diagnosing Canvas integrity therefore requires structural self-consistency tests rather than relying on hash frequency alone.

Decomposing PNG Chunks (IHDR, IDAT, IEND) Against getImageData()

AntidetectLab parses the binary PNG stream emitted by toDataURL() and compares decoded zlib scanlines directly with raw ImageData pixel arrays.

Per ISO/IEC 15948 (PNG Specification) and RFC 1950/1951 (zlib/DEFLATE), canvas.toDataURL('image/png') encodes raw RGBA scanlines with a 1-byte per-row filter prefix (None, Sub, Up, Average, or Paeth) inside concatenated IDAT chunks bounded by IHDR and IEND. AntidetectLab decodes those IDAT scanlines independently in JavaScript, reverses the PNG row filters, and verifies byte-for-byte parity with ctx.getImageData() across repeated draws.

When a naive browser extension hooks only HTMLCanvasElement.prototype.toDataURL—or hooks only CanvasRenderingContext2D.prototype.getImageData—the binary pixels extracted from the PNG IDAT chunks diverge immediately from the direct pixel array. Similarly, inspecting chunk lengths and distinct RGBA color counts reveals whether a solid fill region was corrupted by indiscriminate per-pixel noise.

Canvas Verification ProbeStandard / MechanismNormal Clean BehaviorNoise / Hook Indicator
PNG IDAT vs getImageDataISO/IEC 15948 + RFC 1950 zlibBit-identical RGBA buffer on decodeHash mismatch between export & pixel readback
Solid-Color Canary FillUniform fillRect RGBA checkExactly 1 distinct RGBA valueMultiple slightly perturbed RGBA values
Double-Draw RepeatabilityTwo identical offscreen drawsIdentical hash across both runsSession-randomized per-call pixel jitter
4× TextMetrics LinearitymeasureText() at 1× and 4×Proportional width scaling within toleranceNon-linear jitter injected into width metrics
DOMRect & MathML LayoutCSSOM getBoundingClientRect()Deterministic subpixel layout boxesRandomized ClientRects rounding offsets

TextMetrics 4x Linearity, DOMRect Geometry, and MathML Layout Coupling

Testing glyph advance widths across multiple scales alongside DOMRect and MathML bounding boxes detects inconsistent typography noise.

Canvas anti-fingerprinting wrappers frequently overlook typographic measurement APIs—or apply random delta offsets to ctx.measureText() and Element.getBoundingClientRect() without preserving geometric scaling laws. AntidetectLab measures glyph metrics at 1× and 4× scale factors to confirm linear scaling, checks document.fonts.status loading readiness so unready web fonts do not skew metrics, and hashes both MathML mathematical layout boxes and CSS system color keywords.

In an unhooked browser engine, doubling or quadrupling font pixel sizes scales horizontal advance widths monotonically within subpixel hinting bounds. Adding random ±0.05px noise to every measureText() return breaks that ratio immediately and exposes JavaScript-level metric interception.

AntidetectLab additionally measures actualBoundingBoxLeft, actualBoundingBoxRight, fontBoundingBoxAscent, and fontBoundingBoxDescent where supported by the browser engine, ensuring vertical and horizontal typographic telemetry align across both Latin and multi-script fallback runs.

Separating Deterministic Native Farbling from Broken Extension Wrappers

Evaluating repeated readback stability alongside local session history prevents misinterpreting legitimate privacy browsers.

Session-consistent farbling (where a privacy browser seeds deterministic noise per origin/session) still satisfies double-draw repeatability and PNG-to-ImageData parity within the same page load, whereas naive random-noise extensions fail double-draw checks immediately. AntidetectLab records both behaviors separately, logs whether a Canvas hash was previously observed locally, and correlates Canvas invariants with Font & TextMetrics, AudioContext DSP, and WebGL & WebGPU readings before flagging tampering.

When evaluating an unfamiliar Canvas hash during multi-profile QA, compare the PNG chunk sizes (IHDR, IDAT, IEND) and offscreen worker rendering results inside Side-by-Side Live Duel to verify whether the hash difference comes from legitimate GPU/font differences or an active Canvas wrapper.

相关取证研究文章

深度拆解指纹浏览器内核、ARM64 云手机、JA4 TLS 协议栈与代理网络卫生。

查看全部文章 →

本工具专项技术问答

How does PNG IDAT comparison detect Canvas noise injection?

Some privacy extensions hook getImageData() to add random pixel jitter while leaving toDataURL() untouched—or randomize toDataURL() on every call while returning clean pixels to getImageData(). Decoding the raw PNG IDAT DEFLATE stream and comparing RGBA bytes against getImageData() exposes this desynchronization immediately.

Why does a solid-color canary fill catch naive Canvas farbling?

Anti-aliasing and subpixel rasterization only vary along curved geometry, gradients, and glyph edges. A uniform flat RGBA fill should contain exactly one distinct color across every pixel; per-pixel noise wrappers often corrupt solid fills into dozens of slightly shifted colors.

What does the 4x TextMetrics linearity ratio check?

Rendering text at 1x and 4x scale factors tests whether reported TextMetrics widths scale proportionally. Some spoofing wrappers add arbitrary floating-point noise to measureText() that breaks linear scaling across font sizes.

Can two physical computers with the same GPU produce different Canvas hashes?

Yes. Differences in OS font smoothing (DirectWrite vs CoreText vs FreeType), color management profiles, Chromium Skia versions, and installed fallback fonts routinely alter Canvas output even on identical GPUs.