CDP and Automation Detection: How It Identifies You
Driving a browser through its debugging protocol leaves traces beyond the well-known automation flag. Some are properties a script can patch; others are behavioural side effects of the protocol being attached at all. Patching the first category is easy and widely done, which is why detection moved to the second.
What is the debugging protocol doing?
The protocol is the interface browsers expose so developer tools and automation frameworks can inspect and control a page. When a script drives a browser, it attaches to this interface, and the attachment changes measurable things: certain objects are instantiated, certain timings shift, and certain error behaviours differ from an unattached browser.
The interface was built for developers rather than for concealment, so none of these effects were designed to be hidden.
Which traces can a page actually see?
Traces divide cleanly into 2 groups, and the division explains why stealth libraries have diminishing returns. Property-level traces are easy to overwrite; behavioural traces require changing how the automation itself operates.
| Trace | Type | Patchable by script? |
|---|---|---|
| Automation flag on navigator | Property | Yes, trivially |
| Missing or odd plugin arrays | Property | Yes |
| Inconsistent language settings | Property | Yes |
| Error stack differences | Behavioural | Hard |
| Timing when devtools is attached | Behavioural | Hard |
| Clicks with no prior mouse movement | Behavioural | Only by changing the script |
| Perfectly regular input intervals | Behavioural | Only by changing the script |
Why did detection move to behaviour?
Because the property list is public. Every trace in the top half of that table was documented, then patched by stealth libraries within days, then re-detected by checking whether the patch itself left evidence. That cycle has run many times and the property layer is now close to exhausted for both sides.
Behaviour does not work that way. A script that clicks a button without moving the cursor there first is producing an event sequence a human cannot produce, and no property override changes that.
What does human interaction look like?
Movement before clicks, variable delays between actions, occasional focus loss when the window is left alone, and scrolling that overshoots and corrects. Pages can observe all of this with ordinary event listeners, which means detection needs no special access and no cooperation from the platform.
| Signal | Human | Naive automation |
|---|---|---|
| Mouse path before click | Present, irregular | Absent |
| Delay between actions | Varies widely | Constant |
| Focus and blur events | Occur naturally | Rare |
| Scroll behaviour | Overshoots, corrects | Exact |
| Typing rhythm | Uneven, with corrections | Uniform |
Does running headful solve it?
Headful removes 1 category of trace and leaves the other. A visible window fixes the signals tied to headless rendering — missing plugins, unusual window dimensions, absent media capabilities — but the automation attachment itself is still present, and so is the input timing it produces.
That is why 2 setups running the same script, 1 headless and 1 headful, often score differently on property checks and identically on behavioural ones. The window is visible to you, not to the part of the detection that matters most.
What should you actually do about it?
If the work does not need automation, do not attach a driver at all — the entire category disappears. Where automation is necessary, spend effort on interaction rather than on flags: move the cursor before clicking, vary delays, let pages idle occasionally, and slow down overall.
Then verify with a test page that reports automation indicators, and treat any exposed flag as a starting point rather than the finish line. A profile that hides every property while clicking twelve buttons at exactly 200-millisecond intervals has solved the half of the problem that was already easy.
Budget effort accordingly. Property patching is worth about 1 afternoon and then stops paying, while pacing and interaction realism keep returning value for as long as the automation runs — which is the opposite of how most people split their time between the 2. Put another way: 1 hour spent making the pacing human is worth more than 10 spent hiding properties that a behavioural check ignores anyway.
Anti4 is free forever for up to 5 profiles. For unlimited profiles, a one-time licence from $39, with lifetime updates. No subscription.
Download Anti4 free