botrefund.com
← BotRefund Home DOM Event Cascades, WebAssembly VM & Prototype Integrity Signals

Native Function Prototype Interrogation

Invokes Function.prototype.toString.call() across six core browser functions and getters to detect JavaScript wrapper shims masquerading as native engine bindings.

What we test

The client probe calls the original Function.prototype.toString method against six critical engine bindings: Function.prototype.toString, Document.prototype.createElement, CanvasRenderingContext2D.prototype.getImageData, WebGLRenderingContext.prototype.getParameter, the Navigator.prototype webdriver property getter, and the navigator.webdriver descriptor getter.

Each inspection verifies whether the browser returns an authentic [native code] stub rather than custom JavaScript wrapper source, while client-side extension gating suppresses unreliable votes when privacy add-ons intentionally hook canvas or WebGL methods.

Why it matters

Many stealth automation scripts overwrite DOM, WebGL, or navigator.webdriver properties with plain JavaScript getters whose stringified source leaks injected wrapper code instead of C++ engine bindings.

Because legitimate privacy extensions such as CanvasBlocker deliberately wrap getImageData or getParameter, built-in extension gating prevents false accusations and ensures this high-confidence check informs session analysis without acting as a blind standalone blocker.

EXPLANATION

Prototype Inspection Results

01 EXPECTED RESPONSE

All six interrogated functions report native engine bindings

Unmodified Chromium, Firefox, and Safari browsers return standard [native code] stubs for every inspected prototype method and getter, or safely bypass voting when known extension interference is active.

Example result Native getters & methods checked: 6 • All report [native code]: yes — Result: unmodified browser prototypes
02 POSSIBLE AUTOMATION SIGNAL

JavaScript wrapper exposed without extension gating

Uncloaked stealth patches or injected property hooks return custom JavaScript function text under Function.prototype.toString.call(), signaling prototype tampering.

Example result Inspected method: getImageData • String output: custom JS wrapper • Extension gate clear: yes — Result: prototype tampering flagged

Forensic significance: High-confidence prototype-tampering check across six core Web APIs, gated against privacy-extension hooks and evaluated without acting as a sole automatic blocker.