# Detecting Chrome DevTools Protocol (CDP) browser automation

> Canonical: https://www.isnotai.com/guides/detect-cdp-automation
> Summary: How Chrome DevTools Protocol (CDP) drives AI browser agents, why DOM spoofing leaves behavioral traces, and how real-time telemetry isolates synthetic input.

Technical Guide · Chrome DevTools Protocol

Most modern browser-use AI agents connect to a real Chrome instance over the Chrome DevTools Protocol rather than building a custom HTTP client. Understanding how CDP dispatches events explains why interaction dynamics still separate people from agents.

Published December 3, 2026 · By NotAI

Why CDP matters

Because CDP controls a real Chromium browser with the user's real cookies, extensions, and IP address, IP blocklists and static TLS checks cannot distinguish an agent session from a person. Behavioral timing, input mechanics, and writing replay remain visible inside the page.

## How AI agents use CDP to operate real pages

Frameworks such as Browser Use, Stagehand, Playwright, and desktop agent harnesses attach to Chrome's debugging socket and invoke protocol domains like `Runtime.evaluate`, `DOM.querySelector`, `Input.dispatchMouseEvent`, and `Input.insertText`. Because CDP's input domain synthesizes events at the browser compositor layer, those clicks and keystrokes arrive in the page with `event.isTrusted === true`.

That single detail breaks naive JavaScript checks that rely exclusively on `isTrusted`.

## What CDP automation still reveals in the session

- **Direct text insertion without keystroke sequences:** Calls to `Input.insertText` or DOM value mutation inject whole sentences or paragraphs in a single tick with zero accompanying keydown/keyup dwell cadence, appearing in NotAI writing replay as **Not typed** rather than typed or clipboard-pasted.
- **Discontinuous pointer telemetry:** CDP mouse dispatches frequently teleport from coordinate to coordinate or traverse mathematically linear trajectories with uniform inter-event intervals, lacking human acceleration, overshoot, and idle drift.
- **Zero-latency DOM-to-action cadence:** Agents inspect the serialized accessibility tree or DOM snapshot, query an LLM, and then burst multiple clicks and form fills in tight machine-paced sequences separated by distinct API round-trip pauses.
- **Runtime inspection side effects:** Continuous session correlation combines pointer, scroll, focus, and editor composition signals rather than relying on fragile single-line debugger traps.

## Practical defense without breaking legitimate DevTools users

Developers, accessibility testers, and students inspecting a page should never be locked out merely because DevTools exists in Chrome. NotAI combines multiple fixed behavioral rules across interaction and writing composition so ordinary human browsing remains unaffected while autonomous agent execution stands out clearly for human review. See [our detection methodology](https://www.isnotai.com/methodology) and [our guide to OpenAI browser agents](https://www.isnotai.com/agents/openai-operator-chatgpt-agent).

Keep reading

## Related guides

Automation Guide

### Detecting Headless Browsers & Playwright

How cloud-VM Chromium runners differ from consumer laptops and Chromebooks.

Field Guide

### OpenAI Operator & ChatGPT Agents

How remote and local agentic browsers execute authenticated web workflows.

Field Guide

### Claude Computer Use Agents

How vision-driven screenshot agents differ from DOM-reading CDP runners.

Interactive Tool

### Interactive Writing Replay Demo

See the difference between typed, pasted, and injected text locally in your browser.
