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 and our guide to OpenAI browser agents.