# How Modern WAFs Detect AI Browser Agents: Runtime.enable, DOM SoM & Mechanical Motion

> Examine the four technical signals anti-bot systems use against AI browser agents and how Moordeck mitigates each at the Chromium 155 and IPC layers.

- Verified: 2026-11-22
- Reading time: 3 min

## TL;DR

- Hardware fingerprint alignment protects browser identity; behavioral and debugging signals reveal automation immediately if unaddressed.
- Four primary AI agent traps: Runtime.enable console/Error.stack getters, DOM-injected SoM boxes, Event.isTrusted / debugger flags, and linear 0ms pointer hops.
- Moordeck /check ships 8 live probes so engineers can verify every mitigation empirically.

## The Four Primary AI Browser Agent Detection Vectors

Anti-bot defenses have expanded well beyond checking navigator.webdriver. When driving browsers via standard CDP wrappers or browser extensions, four specific artifacts expose automated control within milliseconds.

| Detection Vector | How Standard Agents Expose It | Moordeck v0.2.8 Mitigation |
| --- | --- | --- |
| Runtime.enable Serialization | CDP inspects console.debug arguments or triggers Error().stack getter traps | NativeFdTransport (Zero-CDP) omits DevTools; Patch 9003 guards cdp_compat |
| DOM Set-of-Mark Pollution | Agent injects high-z-index highlight <div> overlays into live DOM | Pure-Node offscreen PNG SoM draws boxes + redactions outside webpage DOM |
| Debugger & Input Flags | kFromDebugger bit, force=0.0f mouse values, or chrome.debugger viewport resize | Patch 9003 strips kFromDebugger, normalizes force=NaN, and avoids debugger extensions |
| Mechanical Trajectory | 0ms jump clicks or straight-line coordinates with zero acceleration curve | Humanized Motion Engine: minimum-jerk Fitts + quadratic Bezier + 60–120Hz coalesced points |

## Three Engineering Anti-Patterns Moordeck Intentionally Omits

During Chromium 155 source evaluation, our engineering team audited several open-source agent browsers and identified three patterns that introduce immediate detection risk on real production sites:

- Freezing virtual time (Date.now()) between steps breaks live anti-bot heartbeats and challenge timers.
- Enabling experimental WebMCP flags globally before Chromium stable rollout isolates clients into a tiny high-entropy cohort.
- Using chrome.debugger extension bridges alters outerHeight - innerHeight geometry and leaves extension bridge signatures.

## Auditing Every Vector Yourself on /check

Open moordeck.com/check inside any browser or automated session to inspect the AI Agent Stealth Audit card in real time. The suite passively measures pointer curvature entropy as you move across the viewport and executes active console/stack getter traps.

## Frequently Asked Questions

### Does removing DOM Set-of-Mark annotations hurt vision-model accuracy?

No. The vision model still receives numbered bounding boxes and clean redactions on the exported PNG screenshot; the webpage DOM simply stays untouched.

### How does Moordeck handle pointer coordinates across high-DPI Retina displays?

Browser snapshots and offscreen SoM overlays align cleanly to viewport DIP logical coordinates with device-pixel scaling verified across iframes.

### What if a challenge requires solving a visual CAPTCHA?

Moordeck treats human challenges strictly as a human-in-the-loop boundary: use the Desktop Takeover Queue (HTTP 423) so a human completes verification cleanly.

### Can I enforce domain allowlists on automated sessions?

Yes. Pass allowedDomains when starting a profile session to constrain agent navigation deterministically.
---

- Canonical: https://moordeck.com/blog/how-ai-agents-get-detected-cdp-som-behavioral-entropy
- Language: en
- Agent Index: https://moordeck.com/llms.txt
- MCP Server: https://moordeck.com/mcp
