跳至主要内容
AntidetectLab
← 返回博客列表
浏览器指纹与反自动化

Interpreting browser automation indicators

How browser capabilities, developer tools and API differences affect automation diagnostics.

作者:AntidetectLab Research Team (协议栈、芯片特征与链路取证工程团队) · 2026-11-09 · 阅读约 5 分钟
5-REALM BOT DEFENSE // V8 CDP SERIALIZATION AUDIT Runtime.enable == 0 V8 ISOLATE 0 STACK GETTER LEAK 1. Main Window 2. DedicatedWorker 3. SharedWorker 4. ServiceWorker 5. Iframe srcdoc
核心摘要与关键结论 打开实时诊断工具 →

解析 CDP Runtime.enable 与五域浏览器自动化检测

阐明已证实或严重自动化信号将设备分限制在 <= 34(Unreliable),而孤立 Runtime.enable(如手动打开 DevTools)仅扣 10 分(90 分 Trustworthy),并对比 CDP 与 WebDriver BiDi 协议差异。

关键技术排查要点
  • BOT_WEBDRIVER_OR_HEADLESS_UA、sourceURL/binding 泄漏或合成输入坐标等严重信号会将设备分封顶在 <= 34。
  • 孤立的 BOT_CDP_RUNTIME_ENABLE_LEAK(手动打开 DevTools 常见)仅扣 10 分,设备仍保持 90 分(Trustworthy)。
  • 传统 CDP Runtime.enable 会触发 V8 控制台对象 getter 序列化,而 W3C WebDriver BiDi 通过隔离域预加载规避页面侧副作用。

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 like Navigator.prototype rather than as own data properties on navigator, and fn.toString() returns [native code] without bound-function artifacts.
  • Cyclic Prototype Proxy Trap: Calling Object.setPrototypeOf(fn, fn) on a genuine native function throws a synchronous TypeError without invoking a Proxy handler; wrapped functions often allow the cycle or expose Proxy.setPrototypeOf in the stack.
  • WebIDL Illegal Invocation Stack: Invoking a native method such as CanvasRenderingContext2D.prototype.getImageData.call({}) triggers a native TypeError whose stack trace exposes injected eval at, patchGetter, or chrome-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 RealmAttributes Cross-Checked vs Main WindowMismatch Signal Code
1. Sandboxed srcdoc IframedevicePixelRatio, screen bounds, navigator fields, timezoneSANDBOX_IFRAME_PARITY_MISMATCH
2. Blob DedicatedWorkerUA, platform, cores, RAM, touch, UA-CH, WebGL, OffscreenCanvas 2D, lang, TZWORKER_SCOPE_MISMATCH
3. SharedWorkerUA, platform, cores, RAM, touch, UA-CH, WebGL renderer, lang, TZSHARED_WORKER_SCOPE_MISMATCH
4. ServiceWorker (5th Realm)Active probed UA, platform, cores, RAM, touch, UA-CH, lang, TZSERVICE_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 ArtifactRoot MechanismSignal & Impact
Manual DevTools OpenCDP Runtime.enable console serialization aloneWarning (-10) unless paired with webdriver/lies
Playwright / Puppeteer Scriptpptr: sourceURL or __playwright__binding__Critical (-50) + Unreliable verdict
Synthetic Mouse DispatchisTrusted === false or zero chrome offset on clickCritical (-48) in cdp_input_coords_biometrics

相关取证研究

SILICON AUDIT // ARMv9-A + iOS 18 WDA WebAssembly sample TOUCH: 10pt TTL=64 · TPROXY ARM64 12-LAYER HAL ADRENO / APPLE TOUCH: 0pt NaN sample
移动端与云手机

Mobile Browsers, Cloud Phones & Real Devices

移动浏览器、云手机与真机架构对比

How to interpret touch, viewport, codec and sensor data in a mobile browser.

2026-11-24 阅读约 8 分钟
KERNEL ENGINE // CHROMIUM BLINK + GECKO NSS TELEMETRY SAMPLE VIEW Engine[0]: CloakBrowser Skia C++ 4x TextMetrics Linearity (<= 0.015) WebGPU Adapter == WebGL2 Angle D3D11 IDAT Zlib Stream: DETERMINISTIC Runtime.enable Leaks: 0 / 5 Realms Camoufox Gecko NSS + Isolated Profiles P-01 sample P-02 sample P-03 sample ZERO PROTOTYPE WRAPPERS · C++ NATIVE
指纹浏览器

TeraLogin, GoLogin, Multilogin & GeeLark Audit

TeraLogin、GoLogin、Multilogin 与 GeeLark 评测标准

Which records a reproducible comparison would need, and what the lab has published.

2026-11-26 阅读约 5 分钟
KERNEL ENGINE // CHROMIUM BLINK + GECKO NSS TELEMETRY SAMPLE VIEW Engine[0]: CloakBrowser Skia C++ 4x TextMetrics Linearity (<= 0.015) WebGPU Adapter == WebGL2 Angle D3D11 IDAT Zlib Stream: DETERMINISTIC Runtime.enable Leaks: 0 / 5 Realms Camoufox Gecko NSS + Isolated Profiles P-01 sample P-02 sample P-03 sample ZERO PROTOTYPE WRAPPERS · C++ NATIVE
指纹浏览器

Testing Browser Fingerprint Parity Across Tools

跨反检测浏览器的指纹一致性测试规范

A guide to repeatable browser tests, coverage and product-level scoring.

2026-11-21 阅读约 5 分钟