botrefund.com
← BotRefund Home NETWORK & BROWSER SIGNAL

Console Error Stack Getter Inspection

BotRefund logs a custom Error carrying a .stack getter trap to console.debug over 250 ms to detect active Chrome DevTools Protocol (Runtime.enable) console serialization.

What we test

Over a 250 ms test loop, the collector hooks Error.prepareStackTrace, attaches a property getter on Error.prototype.name, and logs fresh Error instances featuring a custom .stack getter via console.debug.

Whenever Chrome DevTools Protocol Runtime.enable serializes console arguments remotely for an attached automation controller or inspector, one or more of the .stack, .name, or prepareStackTrace traps execute and increment their leak counter.

Why it matters

Browser drivers such as Playwright, Puppeteer, and ChromeDriver commonly enable CDP Runtime.enable, causing Blink to invoke object property getters during console.debug preview serialization even when the page appears idle.

Developer Caveat: Authentic developers, QA testers, and technical users who happen to browse with Chrome DevTools open also trigger console preview serialization—which is why this check is evaluated alongside human interaction so natural mouse, scroll, or keyboard activity clears any penalty.

EXPLANATION

How to interpret the response

01 EXPECTED RESPONSE

No remote console object serialization observed

Standard consumer browsers with DevTools closed and no attached CDP debugger never evaluate the custom .stack or .name getters during console.debug.

Example result Stack getter reads: 0 • Name getter reads: 0 • PrepareStackTrace calls: 0 — Result: no CDP serialization leak
02 POSSIBLE AUTOMATION SIGNAL

Getter invoked during console.debug logging

Non-zero getter reads confirm that console arguments are being serialized remotely over CDP or an open inspector, flagging possible automation when genuine human interaction is missing.

Example result Stack getter reads: 4 • Human interaction: none — Result: CDP console serialization detected

Forensic significance: Supporting debugger-serialization signal effective at exposing CDP-controlled browsers while automatically clearing genuine developers with DevTools open once real user interaction occurs.