Reading browser automation indicators
Technical Summary: Automation indicators inspect observable JavaScript globals, WebDriver flags, CDP serialization side effects, and input-event biometrics during a single session. Passing or failing an isolated check does not reveal how a browser was orchestrated overall, nor does it predict third-party WAF enforcement decisions.
Early bot detectors relied heavily on navigator.webdriver === true, window.cdc_* document properties, or HeadlessChrome substrings in the User-Agent. When stealth plugins began deleting navigator.webdriver via JavaScript, detection shifted toward deeper runtime invariants: checking whether property descriptors were tampered with, triggering Chrome DevTools Protocol (CDP) serialization hooks, auditing all five JavaScript execution realms, and inspecting synthetic pointer geometry.
In AntidetectLab, automation flags fall under the bot layer inside the Browser pillar. Corroborated or critical automation signals—specifically BOT_WEBDRIVER_OR_HEADLESS_UA, corroborated CDP leaks, BOT_CDP_SOURCE_URL_OR_BINDING_LEAK, and BOT_CDP_SYNTHETIC_INPUT_COORDS—cap the device score at <= 34 (Unreliable). By contrast, an uncorroborated standalone BOT_CDP_RUNTIME_ENABLE_LEAK (hasCDP: true alone, which occurs routinely when an engineer opens DevTools manually) deducts only -10 (warning, score 90, Trustworthy), while absent permissions or unreachable worker scopes remain explicitly marked unavailable.
Developer tools and runtime observations
Technical Summary: Calling console.debug or throwing an Error whose stack property uses a custom getter exposes whether an active CDP debugger has enabled Runtime.enable to serialize console objects. Manual DevTools inspection triggers the same mechanism, so developer tools state must be documented alongside any trap observation.
When Playwright, Puppeteer, or Selenium connects over CDP and issues Runtime.enable, V8 prepares object previews for console calls by evaluating property getters during serialization. A diagnostic script can construct an object or Error instance with a getter defined on stack (via Object.defineProperty), pass it to console.debug(), and check whether the getter fired without page script reading err.stack.
// Educational CDP Runtime.enable getter observation (triggers in manual DevTools too!)
function probeRuntimeSerializationTrap() {
let triggered = false;
const err = new Error('adl_probe');
Object.defineProperty(err, 'stack', {
configurable: true,
get() {
triggered = true;
return '';
},
});
console.debug(err);
return { runtimeSerializationTriggered: triggered };
}
Because opening Chrome DevTools manually also attaches a CDP session that inspects console objects, engineers must close DevTools and avoid --remote-debugging-port during clean baseline captures. At the protocol serialization level, legacy CDP relies on Runtime.enable and Runtime.consoleAPICalled, forcing V8 to format object previews and evaluate getters on logged objects, whereas W3C WebDriver BiDi separates browsingContext, log.entryAdded, and isolated script.addPreloadScript sandboxes without triggering default page-realm getter side effects. Additionally, AntidetectLab checks cdpExtra.sourceUrlLeak (pptr:, UtilityScript.evaluate, __playwright_evaluation_script__), cdpExtra.exposeFunctionLeak (__pwInitScripts, __playwright__binding__), and inputBio.cdpCoordsLeak (screenX === clientX or untrusted DOM events).
Interpreting JavaScript object differences
Technical Summary: Stealth scripts that wrap native browser getters with ES6 Proxies or Object.defineProperty leave detectable traces in Function.prototype.toString(), property descriptor ownership, cyclic Object.setPrototypeOf(fn, fn) errors, and native WebIDL Illegal invocation error stacks.
Every JavaScript hook applied inside the page context fights native V8/SpiderMonkey/JavaScriptCore invariants:
- Prototype Descriptor &
toString()Integrity: Native getters live on prototypes likeNavigator.prototyperather than as own data properties onnavigator, andfn.toString()returns[native code]without bound-function artifacts. - Cyclic Prototype Proxy Trap: Calling
Object.setPrototypeOf(fn, fn)on a genuine native function throws a synchronousTypeErrorwithout invoking a Proxy handler; wrapped functions often allow the cycle or exposeProxy.setPrototypeOfin the stack. - WebIDL Illegal Invocation Stack: Invoking a native method such as
CanvasRenderingContext2D.prototype.getImageData.call({})triggers a nativeTypeErrorwhose stack trace exposes injectedeval at,patchGetter, orchrome-extension://frames if wrapped (JS_STEALTH_ERROR_STACK_FRAME).
Before classifying a prototype anomaly as stealth instrumentation, verify with an unmodified control browser of the same build to rule out legitimate privacy or accessibility extensions.
Which execution contexts can be compared
Technical Summary: Modern web applications execute across five distinct JavaScript realms: Main Window, sandboxed srcdoc iframe, Blob DedicatedWorker, SharedWorker, and ServiceWorker. Because permissions, private browsing policies, and cross-origin rules govern which workers can spawn, AntidetectLab reports each realm’s status independently.
Extensions and naive JavaScript injection scripts frequently patch APIs in the Main Window while missing newly created execution contexts. AntidetectLab probes cross-realm parity across all five contexts:
| Execution Realm | Attributes Cross-Checked vs Main Window | Mismatch Signal Code |
|---|---|---|
1. Sandboxed srcdoc Iframe | devicePixelRatio, screen bounds, navigator fields, timezone | SANDBOX_IFRAME_PARITY_MISMATCH |
2. Blob DedicatedWorker | UA, platform, cores, RAM, touch, UA-CH, WebGL, OffscreenCanvas 2D, lang, TZ | WORKER_SCOPE_MISMATCH |
3. SharedWorker | UA, platform, cores, RAM, touch, UA-CH, WebGL renderer, lang, TZ | SHARED_WORKER_SCOPE_MISMATCH |
4. ServiceWorker (5th Realm) | Active probed UA, platform, cores, RAM, touch, UA-CH, lang, TZ | SERVICE_WORKER_SCOPE_MISMATCH |
Documented benign exceptions—such as iPadOS or Android Chrome desktop-mode workers reporting native mobile scope strings—are explicitly exempted in isBenignDesktopModeWorkerScope() to avoid false positives.
Comparative evidence
Technical Summary: AntidetectLab publishes no comparative detection-accuracy leaderboard across third-party automation frameworks or stealth libraries. Raw session observations remain strictly reproducible against recorded browser builds, launch flags, and signed report payloads.
The lab has no published verified comparative runs ranking detection rates across Playwright, Puppeteer, Selenium, or patched driver forks. A raw observation can be reproduced against a recorded browser build and configuration. See the benchmark publication status for current dataset rules.
Teams comparing automation architectures internally should run at least three independent sessions per configuration via scripts/run-benchmark-suite.mjs or direct non-CDP launches and verify identical check coverage before comparing outcomes.
What the browser can verify
Technical Summary: Inspect active session flags in the browser indicators view, keeping in mind that the connection header review inspects HTTP metadata and optional public exit proxy ports rather than scanning local loopback debugging ports.
Use the browser indicators to inspect bot, lies, cdpExtra, inputBio, and all worker realm results for the current session. Note that the connection header review inspects request forwarding headers and offers an optional check of common public proxy ports (1080, 3128, 8080, 8888) on the public exit IP—it never probes local loopback debugging ports such as 127.0.0.1:9222.
To prevent false alarms during legitimate automated QA, isolate test runs in dedicated environments and distinguish CDP harness artifacts from browser binary behavior. When diagnosing why an automated profile triggered BOT_CDP_RUNTIME_ENABLE_LEAK, verify whether Runtime.enable was suppressed in favor of isolated execution worlds or WebDriver BiDi preloads, and confirm that pointer events dispatch realistic OS-offset screenX and screenY coordinates matching window chrome geometry rather than screenX === clientX synthetic coordinates.
| Automation Artifact | Root Mechanism | Signal & Impact |
|---|---|---|
| Manual DevTools Open | CDP Runtime.enable console serialization alone | Warning (-10) unless paired with webdriver/lies |
| Playwright / Puppeteer Script | pptr: sourceURL or __playwright__binding__ | Critical (-50) + Unreliable verdict |
| Synthetic Mouse Dispatch | isTrusted === false or zero chrome offset on click | Critical (-48) in cdp_input_coords_biometrics |