Back to Knowledge Hub
Fingerprint

BotD Detector Registry: Which Checks Actually Run

Read the pinned FingerprintJS BotD registry and run its detectors over explicit states to see which checks fire, stay silent, or fail open.

BotBrowser Team

Part of the Detection Tools collection

Documentation

Want the structured docs for Fingerprint?

This article lives in the editorial library. For step-by-step setup, reference material, and ongoing updates, jump into the docs section.

BotBrowser supports replaying an authorized same-origin fixture under a declared profile and keeping bounded observations about which automation surfaces a page can read; it does not run a third-party detector service, decide a vendor's verdict, or promise that clearing one surface clears the others. This review follows the public FingerprintJS BotD source at commit 193c471ac70530afcebe5b09664c09f611d19218, reads its two registry files, and then executes its own detector functions against explicit component states so the claims below rest on observed output rather than on a reading of the code alone.

TL;DR

  • BotD collects 23 named sources and exposes 18 detectors; one detector file in the pinned tree is exported but never registered, so its branch can never reach a verdict.
  • A verdict is a fold over detectors, not a vote: the last detector that reports a bot name replaces the previous one, so the reported kind depends on registry order.
  • A component whose source threw keeps a non-success state, and each detector guards on that state, so a missing value usually resolves to no verdict rather than to a guess.
  • Running the pinned functions over synthetic states shows one surface clearing while another still reports automation, two exact false-negative branches, and a bare true result that loses the detector's own name.
  • Observed behaviour belongs to this commit, not to every detector, and never to a hosted production decision.

Contents

SRC_23 feeds DET_18, then WEBDRIVER_FLAG, DISTINCTIVE_PROPS, WINDOW_0X0 with DOC_FOCUS_GUARD, and RTT_UNREGISTERED

This English-language video reads the pinned BotD registry at one commit and runs its detectors over explicit component states, then shows the six browser surfaces it reads live and what one verdict does and does not establish.

Watch the English video walkthrough.

What one pinned registry actually contains

src/sources/index.ts registers 23 source functions: android, browserKind, browserEngineKind, documentFocus, userAgent, appVersion, rtt, windowSize, pluginsLength, pluginsArray, errorTrace, productSub, windowExternal, mimeTypesConsistent, evalLength, webGL, webDriver, languages, notificationPermissions, documentElementKeys, functionBind, process and distinctiveProps. Each source is a plain function returning a value or throwing. A source that cannot read its surface throws a BotdError carrying a State value, and collect() in src/api.ts converts that throw into a component of { state, error } instead of a value. A public suite publishes its own list rather than one verdict, and what public detector suites actually test measures how those entries split by layer.

src/detectors/index.ts registers 18 detector functions in a fixed declaration order: detectAppVersion, detectDocumentAttributes, detectErrorTrace, detectEvalLengthInconsistency, detectFunctionBind, detectLanguagesLengthInconsistency, detectNotificationPermissions, detectPluginsArray, detectPluginsLengthInconsistency, detectProcess, detectUserAgent, detectWebDriver, detectWebGL, detectWindowExternal, detectWindowSize, detectMimeTypesConsistent, detectProductSub and detectDistinctiveProperties.

The detector directory holds 19 files. src/detectors/rtt.ts exports detectRTT, and detectRTT appears nowhere in that registry object. Comparing the registry keys against the exported names in the same checkout gives 19 files and 18 registered names, with rtt.ts the only file whose export is never reached. This is a source fact about one commit; it says nothing about a later release, and it says nothing about a hosted service that may import the function directly.

The fold in src/api.ts decides how a single verdict is produced. detect() walks detectors in declaration order, calls each one with the component dictionary, and assigns finalDetection every time a detector reports a bot. A detector that returns a string records that string as botKind; a detector that returns bare true records BotKind.Unknown. Because assignment wins over accumulation, the reported kind belongs to the last detector in the registry that fired, not to the most specific or most confident one. collect() runs the sources concurrently through Promise.all, so the component dictionary is complete before any detector sees it, and detector order alone decides the kind.

How a failed source becomes a component state

The registry is easier to audit when the two boundaries are kept apart. A source measures something and either returns a value or throws a BotdError; collect() converts that outcome into a component object; a detector then decides whether the component is usable. The detector never sees a raw browser exception, and the source never chooses a bot name. That separation is what allows the same detector function to run over a captured dictionary without a browser.

The conversion has four useful shapes. A successful read becomes { value, state: State.Success }. A read that the source classifies as unavailable becomes { state: State.Undefined, error }. A read that completed but violated the source's expectation becomes { state: State.UnexpectedBehaviour, error }. A source that is simply absent from the dictionary leaves the detector looking at undefined, which every well-written guard should also reject.

The last shape is the one a hand-written fixture can accidentally create. A missing key and an unreadable key are not the same evidence, even when both produce a silent detector. The missing key means the collector never ran that source or the fixture omitted it. The unreadable key means the source ran and reported why it could not produce a value. A replay record should keep the error text and the state number so a reader can distinguish the two.

A registry map shows 23 sources becoming component states, 18 registered detectors reading those components in declaration order, and one exported RTT detector outside the registry with no path to the verdict.

The source count is also not a detector count. BotD registers 23 sources and 18 detectors, but a single detector can read several components and a single component can feed several detectors. detectWindowSize needs both windowSize and documentFocus; detectDistinctiveProperties reads one property-list component and then walks the returned object; detectWebGL depends on a structured value rather than a boolean. Counting rows in the source registry therefore says how many surfaces the collector attempts, not how many independent decisions the framework makes.

The registry object preserves an order that the source registry does not need. Sources are collected concurrently, so their declaration order does not affect the component dictionary. Detectors are invoked sequentially over that complete dictionary, so their order does affect the final name. This is why a later registry key can overwrite an earlier result even when the earlier detector looked at a more specific signal.

Run the detector functions over explicit component states

A component dictionary is the only input each detector reads, so the pinned functions can be executed against hand-written states without a browser, a profile or a network request. The command below bundles the pinned tree with esbuild and calls the exported detectors, printing one line per case:

npx esbuild src/detectors/index.ts src/api.ts \
  --bundle --format=cjs --platform=node --outdir=/tmp/botd-build
node /tmp/botd-probe.mjs

The probe supplies a base dictionary of android: false, browserKind: 'chrome', browserEngineKind: 'chromium' and documentFocus: true, then overrides one or two components per case. A success component carries { value, state: 0 } and an unreadable component carries { state: -1, error }, matching the State enum in src/types.ts (Success = 0, Undefined = -1, UnexpectedBehaviour = -3). The observed output of the pinned functions:

case 1 [detectWebDriver] bot: headless_chrome - driven browser: webdriver flag true
case 2 [detectDistinctiveProperties] bot: webdriver - sanitized flag but webdriver-shaped window property present
case 3 [detectDistinctiveProperties] bot: false - flag layer removed only, bridge gone too
case 4 [detectWindowSize] bot: headless_chrome - headless default window 0x0 while document has focus
case 5 [detectWindowSize] bot: false - headless report 0x0 but tab never focused
case 6 [detectPluginsArray] bot: headless_chrome - empty plugin list
case 7 [detectRTT] not-runnable: not registered in detectors/index.ts - connection rtt reported as zero
case 8 [detectWebDriver] bot: false - webdriver source unreadable instead of false

The eight cases above are decided by four small functions, which is worth reading directly instead of inferring from the output. src/detectors/webdriver.ts is a single line: it returns BotKind.HeadlessChrome only when webDriver.state === State.Success && webDriver.value. src/detectors/window_size.ts first checks that both windowSize and documentFocus are in State.Success, returns early when documentFocus.value is false, and only then compares outerWidth and outerHeight against zero. src/detectors/plugins_array.ts returns BotKind.HeadlessChrome when pluginsArray.state === State.Success && !pluginsArray.value. src/detectors/distinctive_properties.ts walks the returned object and returns the first bot name whose flag is truthy.

The same reading discipline applies when one detector clears and another does not. For the collection side of the same vendor, FingerprintJS OSS collection and provenance shows how components become a digest, while automation detection and prevention lists the wider set of surfaces a page can inspect, so a verdict from one function is never the whole picture. The component dictionary can also be checked against standalone reports: BrowserLeaks Canvas records the report's canvas signals and omissions, and BrowserLeaks WebGL names the context and capability fields its report collects.

A case table separates value, state, and reachability

The eight probe cases answer four different questions, and mixing them in one pass/fail column loses the reason a branch stayed silent. A case can show a clean value, an unusable state, a detector that is registered but guarded off, or a detector file that is never called. Only the first two differ inside the component dictionary; the last two differ outside it.

Case shapeWhat the fixture suppliesWhere silence originates
Clean value{ value, state: 0 }The detector compared the value and did not fire
Unreadable component{ state: -1, error }The detector's state guard rejected the component
Guarded-off companionA second component with a valid but disqualifying valueAnother component blocked the branch
Unregistered detectorNo call, even when the component is validThe registry has no entry for the function
Missing keyNo component object at allThe fixture or collector omitted the source

Case 8 belongs in the unreadable row because webDriver carries State.Undefined. Case 5 belongs in the guarded-off row because both windowSize and documentFocus are successful, while the document-focus value is false. Case 7 belongs in the unregistered row because detectRTT works when called directly but the registry never calls it. Case 3 belongs in the clean row because the WebDriver flag is successfully false and the property list is successfully empty.

That distinction changes what a zero verdict means. A clean false is evidence that the detector read a value and accepted it. A guard-blocked false is evidence that the detector could not apply its rule. An unregistered branch is evidence that the rule was not part of the pipeline at all. A report that records only bot: false treats all three as equivalent, which is the opposite of the information the case list was built to preserve.

A component-state matrix places clean values, undefined states, unexpected-behaviour states, missing keys, and unregistered detectors on separate rows, with the evidence each detector can still produce.

The matrix also explains why a successful read is not enough to make a case reproducible. detectWebDriver records headless_chrome for a successful true value. detectDistinctiveProperties records webdriver for a successful property list containing that name. The same source-state number appears in both cases, but the value shape differs: one consumes a boolean and the other consumes a nested object. A fixture that copies only the state numbers without the values is internally valid JSON and logically empty.

The engine values need the same care. detectEvalLengthInconsistency compares a length against an allowed list for Chromium, so evalLength: 33 and evalLength: 37 produce different results on the same engine. detectNotificationPermissions requires browserKind === Chrome before the permission value matters. A case that reports only the final boolean cannot show whether the browser gate, the value comparison, or the allowed-list lookup produced the result.

The probe source should therefore print four fields per case: the detector name, the component state or value that controlled the branch, the raw return, and whether the function was reached through the registry. The first makes the result attributable, the second makes it replayable, the third separates a bare true from a named kind, and the fourth separates an unregistered detector from one that simply returned nothing.

Where clearing one surface leaves another signal

Cases 1 to 3 are the clearest result of the run. With webDriver set to a successful true, detectWebDriver reports headless_chrome. With webDriver set to a successful false but distinctiveProps carrying { webdriver: true }, detectWebDriver reports nothing and detectDistinctiveProperties reports webdriver instead. With both surfaces clean, detectDistinctiveProperties reports nothing and the case resolves to bot: false.

Two consequences follow, and both matter to anyone quoting a verdict from this library. The two checks are independent: clearing the flag does not clear the property list, because the list is read from Object.getOwnPropertyNames(window) and Object.getOwnPropertyNames(document) inside src/sources/distinctive_properties.ts, not from the flag. And the reported kind changes with the surface that survives: headless_chrome and webdriver are different labels produced by the same library from the same component dictionary, so a report that quotes one while the other existed is quoting registry order, not the set of signals present. Which of those properties a launch-time patch can remove, and which readings stay visible after it runs, is itemised in what a browser patch plugin can and cannot reach.

Registry order decides the final name

The fold in detect() is an overwrite, so the last firing detector wins. A dictionary that makes detectWebDriver return headless_chrome and later makes detectDistinctiveProperties return webdriver produces a final kind of webdriver. Add a later detector that returns bare true and the final kind becomes unknown. The individual returns do not change, and the evidence that produced them does not change.

This is not a voting system with a stable priority. It is a sequence of assignments, and the winner is whichever registered detector writes last. Registry order makes the result deterministic for one commit, but it does not make the last signal more informative than the first. A named kind can therefore lose to the generic unknown label even though the earlier detector had a more specific reason.

A verdict-fold diagram runs three detectors in declaration order, showing headless_chrome overwritten by webdriver and then by unknown because the final assignment wins.

The sequence has a practical consequence for stored results. Record every detector that fired, in registry order, rather than only the final botKind. The final kind is what the library returns, but the ordered list is what identifies which branches the dictionary exercised. Two sessions with the same final unknown can have very different ordered lists, and only the list shows whether the earlier names were also present.

Registry order also makes upgrades riskier than a diff of one file suggests. Inserting a detector between two existing entries changes who writes last when all three fire. Removing a detector can expose a name that was previously overwritten. Renaming a return value changes the stored kind without changing the component state that caused it. A comparison across commits should preserve the ordered detector list and the commit hash, not just the top-level result.

The property list is specific enough to check by hand. It covers 14 bot kinds and lists 26 window entries (one of them a pattern rather than a literal name) and 17 document entries, from awesomium and RunPerfTest on the CEF side to callPhantom and _phantom for PhantomJS. The WebDriver group alone carries webdriver, __webdriverFunc, __lastWatirAlert, _WEBDRIVER_ELEM_CACHE and ChromeDriverw on the window side, and __webdriver_script_fn, __driver_evaluate, __fxdriver_unwrapped, $cdc_asdjflasutopfhvcZLmcfl_ and $chrome_asyncScriptInfo on the document side. A review that inspects only window will miss the document group, and a review that inspects only the flag will miss both.

Which checks fail open when a value is missing

Case 8 shows the first false-negative branch. When the webDriver component sits in State.Undefined, detectWebDriver returns false, because the guard requires State.Success before it reads the value. An unreadable navigator.webdriver, such as a page that shadows the property, a realm where the read throws, or a wrapper that returns nothing, is therefore recorded as absent evidence of automation rather than as a positive signal. That is a defensible design for a library that prefers silence to a guess, but it means a missing value and a clean value are indistinguishable in the verdict.

Case 5 shows the second false-negative branch, and it is easier to miss because the components are present and valid. src/detectors/window_size.ts returns early when documentFocus.value is false, before the zero-size comparison runs. A headless window reporting outerWidth and outerHeight of zero is only flagged while the document is focused. A tab opened in the background, or a capture that runs before focus arrives, produces identical measurements and no verdict. The source comment states the intent, that a new background tab also reports a zero outer size, so the early return is deliberate, but the consequence for a reader is that the same numbers map to different verdicts depending on focus timing.

The third gap in this run is a different kind: not a false negative inside a detector, but a branch with no path to a verdict at all. detectRTT contains a real condition that returns BotKind.HeadlessChrome when rtt.value === 0, and the pinned registry never calls it. The rtt source is still collected, so the value is measured and placed into the component dictionary, but no registered detector reads it. Reading rtt.ts alone overstates the library; reading detectors/index.ts alone hides the branch. Only both files together show a collected signal that cannot reach the verdict.

Which branches narrow a verdict to one engine or value

The remaining cases make the specificity of each branch visible, and specificity is what a reader needs in order to know which verdict is even applicable. Each row below is a case the probe ran:

DetectorCondition the run suppliedResult
detectUserAgentuser agent string containing HeadlessChromeheadless_chrome
detectUserAgentordinary Windows desktop Chrome stringfalse
detectWebGLvendor Brian Paul, renderer Mesa OffScreenheadless_chrome
detectWebGLANGLE renderer on an NVIDIA adapterfalse
detectProcessprocess object typed renderer with an electron versionelectron
detectNotificationPermissionspermission value true, browser kind chromeheadless_chrome
detectEvalLengthInconsistencyevalLength 33 on the chromium enginefalse
detectEvalLengthInconsistencyevalLength 37 on the chromium enginetrue
detectLanguagesLengthInconsistencyempty language arrayheadless_chrome
detectPluginsLengthInconsistencyzero plugins, chromium chromeheadless_chrome
detectWindowExternalexternal string containing Sequentumsequentum
detectMimeTypesConsistentconsistency value falseunknown
detectDocumentAttributesdocument element key list containing seleniumselenium
detectProductSubproductSub value 20100101 in chromeunknown

Two rows deserve separate attention because they are counter-intuitive if you only read detector names. The detectEvalLengthInconsistency pair shows that the same function returns nothing for one length and a bot for another on the same engine: 33 is accepted because Chromium is in the allowed list for that length, while 37 is rejected because Chromium is not in the allowed list for that one. The function is not asking whether the value looks unusual; it is asking whether the value is unusual for the engine that was detected.

The detectNotificationPermissions row shows a browser gate that is easy to overlook. src/detectors/notification_permissions.ts returns nothing unless browserKind.value === BrowserKind.Chrome, so the same permission value can only ever produce a verdict in one browser family. A reader who tests that surface in a profile reporting another brand will see no verdict and could wrongly conclude that the value was accepted.

The bare-true rows behave differently from the named rows because src/api.ts maps true to BotKind.Unknown. detectEvalLengthInconsistency at length 37 prints bot: true in the case list, which becomes unknown in a final result, while detectMimeTypesConsistent with an inconsistent list already prints bot: unknown because it returns the name directly. A report that shows only unknown therefore carries less information than the detector that produced it, and the detector name is the part that survives the loss.

Make the run repeatable from the record

A probe is only useful if a second person can repeat it and reach the same lines. Four fields in the record make that possible, and each one closes a gap the others leave open.

The first is the commit 193c471ac70530afcebe5b09664c09f611d19218, because both detectors/index.ts and sources/index.ts are edited between releases and a registry key that exists today can be gone tomorrow. The second is the bundle step, because esbuild output is not byte-identical across versions, so recording the output digest lets a reviewer separate a source change from a tooling change. The third is the state convention, because the probe writes state: 0 for success and state: -1 for an unreadable source, and a reader who assumes a different mapping will read every result backwards. The fourth is the case list itself, because false from detectWebDriver means "the guard saw a non-success state" in case 8 and "the flag was false" in case 3, and only the case label tells the two apart.

Two habits keep the record honest. Prefer a discriminating pair over a single case: cases 3 and 2 together show that clearing the flag changes which detector speaks, which a lone case 3 does not show, and cases 1 and 8 together show that present-and-true and missing diverge in one branch while collapsing in another. And never describe the probe as a browser test. It runs pinned pure functions over dictionaries a reviewer wrote by hand; it reads no page, opens no profile and contacts no service, so a claim about what a real session reports still needs a separate authorized run.

A ledger for a source observation

A source review needs a record that survives a checkout. The commit identifies the code, but it does not identify the bundle, the case set or the state convention. Four short fields keep those separate: the source commit, the bundle digest, the ordered case list, and the exact state mapping. A fifth field records the detector names that fired, because the final kind is an overwrite.

The bundle digest matters even when the pinned source does not change. esbuild can emit different code across versions, and a different bundle can change how a module export is reached. Recording the digest prevents a later reader from attributing a result change to BotD when the toolchain changed. The source commit and the bundle digest answer different questions, and neither replaces the other.

A replay ledger records the pinned commit, bundle digest, state mapping, ordered case list, fired detector names, and final overwritten verdict as separate fields.

The case list should be executable rather than descriptive. case 3: webDriver=false; distinctiveProps={webdriver:false} can be rebuilt; "cleared the flag" cannot. The state mapping should be stated beside the values, because State.Success is 0 in this commit and a reader who assumes a truthy success convention will invert every guard. If the fixture stores raw errors, keep the error text but not a live cookie, token or full response body. The error text explains the state, and the session identifiers provide a join without copying the data.

An ordered detector list is the part most likely to be omitted. Write detectWebDriver -> headless_chrome, then detectDistinctiveProperties -> webdriver, then the final kind. A reader can see both the overwrite and the evidence. A record that keeps only the final kind cannot tell a session with one firing detector from a session with three.

The same ledger should name whether a function was called through the registry. detectRTT can be imported and called directly, but the pinned registry does not do so. Both facts can appear in one report if the schema separates the direct return from the registry result. Without that column, a reader can mistake a valid direct function for a detector that participated in the library's verdict.

The same discipline applies when the source is upgraded. Re-run the bundle step at the new commit, re-read the two registry files, and compare the case list rather than the summary line. A change in the registry changes which detectors can speak at all, a change inside one detector changes what a single case returns, and a change in a source changes which states are even reachable. Comparing only the final bot: true or bot: false line collapses all three into one, and the next reader then has to rediscover which one happened.

A detector that reads a flag and a parser that names a browser are two different readings of the same session, and each can disagree with the other. The ua-parser-js review shows a parser labelling one string Chrome Headless while a bot classifier answers false, and it isolates a 500-character input cap that hides a token by offset alone, which is the same caution this registry review applies to component states.

What a verdict establishes

One of the component states a detector can read is whether a native function still reports its original source text, and native override lies and what a toString whitelist sees records which overrides that source check catches and which wrappers pass it. What a verdict is allowed to claim depends on which rule categories may convict, and why one odd signal never convicts a browser records the category gate and the cross-layer weight amplification behind it. A verdict from this library supports a narrow statement: in this commit, one of the registered detectors, given the component states it was handed, returned the named kind. It does not support a statement about a person, about intent, or about how a hosted service will treat the session. Because the fold is an overwrite, the reported kind can name a less specific signal than one that also fired, and because several detectors return bare true, a kind of unknown can stand in for a detector that had a specific reason.

Keep three things in a review record and the record stays useful. The immutable commit, because both the registry order and the property lists change between releases. The component states, because every detector guards on a state before it reads a value, and the false-negative branches live in that guard. The detector name, because one run can produce different kinds and only the name says which one produced the verdict. A fourth field helps when the question is about a specific surface: the count of sources collected, so a reader can see whether a missing signal was never measured or was measured and ignored.

The matching docs page for automation consistency describes how BotBrowser keeps navigator.webdriver consistent with the loaded profile and how to confirm that setting in a controlled page. This review adds the reading side: what a public detector does with that value, which companion surfaces it reads at the same time, and which of its own branches stay silent. Read them as a pair: the docs define the setting, and this page traces how a detector consumes it.

What a vendor does with a detector verdict, and why two vendors can disagree about one session, is the subject of what an undetected browser claim can and cannot mean. For any conclusion about a real service, use an authorized integration result from that service instead of extrapolating from this source review. A component state recorded in a fixture and a production verdict are different kinds of evidence, and the gap between them is where overclaiming happens.

Practical conclusion

Pin the commit, run the detector functions over explicit component states, and record the detector name beside the verdict. In this commit the registry exposes 18 detectors over 23 sources, detectRTT is exported but unregistered, a cleared WebDriver flag still leaves the property lists intact, and two guards, an unreadable component and an unfocused document, resolve to no verdict at all.

Sources

Next reading

Use FingerprintJS OSS collection and provenance for the collection side of the same vendor, and automation detection and prevention when the question is which surfaces a page can read at all.

#BotD#Bot Detection#Automation Signals#Component States#Source Provenance

This article is part of the guide: What Is a Browser Fingerprint? Signals and Layers

Collection

Detection Tools: CreepJS and BotD

Field-by-field guides to CreepJS, BrowserLeaks and BotD reports: what each collector reads, where values come from and how to interpret them.

Browse all 14 guides

Run the same check in BotBrowser

Load a profile, keep the signals you just read about consistent inside the browser, and confirm the result on your own machine before a rollout.