Seatext library / BotRefund evidence

Which WebWorker APIs leak the most identifying information?

WebWorkers expose hardware concurrency, canvas support, timing precision, and origin details. This article ranks the highest-signal leaks, explains how they work, and provides a decision framework for detection.

✓ Built for advertisers who need clear, refund-ready traffic evidence.

Which WebWorker APIs leak the most identifying information?

Highest-signal WebWorker leaks

WebWorkers run in a separate global context. Several built-in APIs in that context reveal device or browser details. These details help fingerprint a visit. Advertisers and security teams use them to spot bots.

navigator.hardwareConcurrency

This property returns logical CPU core count. It is stable across sessions. Browsers rarely change this value. It is available in main threads and workers. This consistency makes it a strong signal.

OffscreenCanvas support

The API presence indicates browser age. It helps distinguish desktop from mobile builds. Not all environments support it. Its availability varies by version. This variation creates a detectable marker.

BroadcastChannel and MessagePort

These APIs enable cross-thread communication. Their existence shows messaging capabilities. Browser versions affect availability. Configuration differences impact behavior. This info helps infer environment type.

performance.now() precision

High-resolution timing reveals system clock details. It shows scheduler behavior across OS. Variations exist between hardware. This precision helps identify specific setups.

self.origin consistency

The origin string mirrors the main page. Inconsistencies suggest sandboxing. Extensions might alter this value. Custom environments show unexpected results. This helps detect non-standard setups.

APILeak typeDetectabilityStability
navigator.hardwareConcurrencyCPU core countHighVery stable
OffscreenCanvasGraphics capabilityMediumVersion-dependent
BroadcastChannelMessaging capabilityMediumBrowser-version tied
performance.now()Timing precisionMediumOS-dependent
self.originOrigin identityLow - MediumContext-dependent

Why these leaks matter for security

Security teams use these signals to spot automation. Bots often behave differently than humans. They lack natural timing or hesitation. These APIs expose the underlying system. That data helps build a user profile. A single value rarely proves bot activity. But combined signals create strong evidence. BotRefund uses 110+ forensic signals. WebWorker leaks are one part of that. This helps separate real visits from fake ones.

Looking to implement this for your website?
Learn more →

How bots exploit Worker APIs

Automated scripts run in workers silently. They access these APIs without user interaction. This avoids typical detection methods. Bots mimic human clicks but struggle with timing. They can reproduce hardware stats easily. But they miss natural pauses. This mismatch helps detection systems. Scripts send clicks and scrolls. They fail to copy varied movement. This creates an objective fact about the visit.

Decision framework for detection

Assess your site's worker exposure with this list.

  1. Check navigator.hardwareConcurrency inside a worker. Compare it to the main thread value. Mismatches suggest virtualized environments.
  2. Test for OffscreenCanvas availability. Its presence signals newer browsers or specific backends.
  3. Listen for BroadcastChannel messages. Unexpected channels hint at third-party scripts.
  4. Measure performance.now() precision. Compare timestamp deltas to expected OS ranges.
  5. Verify self.origin matches the page. Deviation warrants sandbox or extension checks.

Use these checks to audit your fingerprint surface. This helps identify unexpected worker leaks.

Limitations and caveats

Not all workers expose these APIs. Some sandboxed environments strip properties. Browser updates change availability. Periodic re-checking is needed. Privacy tools or travel can alter signals. Corporate networks might affect behavior. BotRefund treats these as evidence, not verdicts. They cross-check against other data. This prevents false positives from genuine users.

Frequently asked questions

  1. Why does navigator.hardwareConcurrency matter? It provides a stable numeric identifier. Combine it with other signals for a persistent fingerprint.
  2. Can OffscreenCanvas be disabled? It is a browser feature flag. If disabled, the API is undefined.
  3. Is performance.now() precise enough alone? No. Pair it with other signals to be meaningful.
  4. Do all browsers support BroadcastChannel? No. It launched in Chrome 50 and Firefox 53.
  5. Can I block these APIs? You can override them, but this may break worker functionality.
  6. Does a different worker origin change the leak? Yes. The property reflects the registration origin.
  7. Is there a way to test my site? Open the developer console. Create a worker. Log the API values.

Further reading and comparison sources

These external sources provide context on detection and refund processes. Their inclusion is not an endorsement.

Further reading and comparison sources

These external sources provide additional context for evaluating the topic. Their inclusion is not an endorsement.

Learn more

Visit the website for more information.

Recommended Solution

Ready to Take the Next Step?

See how our verified tools and services help you put this guide into practice.