skip to content

the detection model · lesson 2 of 5 · sources checked 2026-11-20

signals, markers, and attribution

This lesson shows how to separate a served block from a sensor, a vendor from a verdict, and a value from information.

status of this lesson: documented in my test system

purpose

A vendor name on a page shows which product is present, not what the product decided. A defender or an operator who reads a vendor signature as a block measures the wrong thing. A wrong count of blocks then gives a wrong fix.

objectives

  1. Separate a definitive marker from an ambient marker in a response.
  2. Separate a vendor signature from a verdict, and attribute a vendor only with a vendor-specific signal.
  3. Explain why a script that reads fingerprint APIs is not proof of detection.
  4. Read the polarity of a score before you compare two products.
  5. Explain why a probe that returns a value does not always carry information.

new terms

vendor signature
A header, cookie, or string that shows which detection product is present.
attribution tell
A string that identifies which vendor is on a page, not what the vendor decided.
definitive marker
A string, header, or status that proves that the site served a challenge or a block.
ambient marker
A vendor script or cookie that is present on a page with real content and does not show a block.
render floor
A generic content assertion (2xx, body of 2,048 bytes or more, a title or 50 DOM nodes) that gives `pass` when no site definition exists.
success oracle
The function that decides if one attempt got the real content that the collector asked for.
fingerprint surface
All browser APIs that a page script can read to build a fingerprint.
polarity
The direction of a risk score: if a high value means human or means threat.
bot score
A score that estimates if a visitor is automation.
attribute
To identify the vendor that a script or a response belongs to.
rule period
A time range in which the meaning of a published number does not change.
clearance cookie
A cookie that a passed challenge sets, which the site checks again on later requests.

how it works

A response can show three different things about a detection product: that the product is present, that it reads the browser, and that it decided. Only the third is a verdict.

signature and verdict

A vendor signature is a signal that names a product. An attribution tell is a string that identifies the vendor on a page. Neither one says what the vendor decided. For example, the string lab-sensor-v1 in a page names a sensor, not a decision.

example A page with a full article also sets the vendor cookie lab_vendor_id. The cookie proves that the vendor is present. The article proves that the page served real content.

definitive and ambient markers

A definitive marker proves that the site served a challenge or a block.

An ambient marker shows only that a vendor sensor loaded. A sensor can load on each page, also on a page with real content.

claim of a company Two companies document a definitive marker of a challenge response:

  • Cloudflare: a Challenge Page response has the header cf-mitigated with the value challenge, for all Challenge Page types Cloudflare, source 1.
  • Amazon Web Services: for a challenge, AWS WAF sends the header x-amzn-waf-action with the value challenge and the status 202. For a CAPTCHA, the value is captcha and the status is 405 Amazon Web Services, source 2.

Thus a status 202 or 405 is not always a fault of the client. With such a header, it is a challenge that the site served.

An ambient marker must have a second test. The render floor is that test: it asks if the page has real content. An ambient marker on a page that passes the render floor is not a block.

two rules of the benchmark platform

The benchmark platform, my test system, uses two rules in its success oracle:

  • A definitive marker is a block alone. An ambient marker is a block only when the render floor fails.
  • A vendor gets a name only from an endpoint pattern or a recognized provider name. A short string alone gives no name. It only confirms a name from a stronger signal.

For example, a short cookie name of three letters can match inside a random URL token. The second rule stops that false name.

a read is not a detection

A page script can read many browser APIs. These APIs are the fingerprint surface. A script reads them for many reasons: layout, analytics, fraud checks, or a fingerprint.

A read of an API that can show an automation artifact is not proof of detection. For example, a script reads navigator.webdriver, and the page then serves its full content. Only a served block proves a verdict. Thus report "what reads the fingerprint surface", not "what detects".

score polarity

The direction of a score is its polarity. It is not standard.

claim of a company Akamai states the direction of its score, and a Google example implies the other direction:

  • Akamai: the bot score goes from 0 to 100. A score of 0 is a human, and 100 is a bot Akamai, source 3.
  • Google: a Cloud Armor rule can let a request pass when the reCAPTCHA score is higher than a threshold, for example 0.8 Google, source 4.

Thus a high score means a bot in one product and a good visitor in a different product. Read the polarity before you put two scores in one table.

a value is not information

A probe is one check that the benchmark platform runs at one layer for each attempt. A probe that returns the same value on each attempt carries no information about the attempt. For example, a probe that returns ok on each attempt cannot separate two tools. Count only the probes that vary.

the two sides

automation sidedetection side
A vendor cookie or a sensor script on a page does not mean a block. Use proof of content to decide success. A sensor still collects its signals on each page where it loads.A signature table must key on a mitigation signal, not on a header that a content delivery network (CDN) puts on each response. A sensor that loads on each page is not a verdict.

design decisions

optiongaincostwhen it is correct
Count each vendor marker as a blockIt is simple.Real pages on protected sites count as blocks.Never
Block on a definitive marker alone, and on an ambient marker only when the render floor failsReal pages pass, and challenges that the site served fail.The marker lists change over time and must have a review.Each oracle that reads a page of a protected site
Attribute a vendor from a short stringIt finds more vendors.A short string can match inside a random token.Never alone
Attribute a vendor only from an endpoint pattern or a provider nameEach name has a strong signal.Some vendors stay unnamed.Each signature table
Report a script that reads an API as a detectionThe number is large.It reports reads, not verdicts.Never

diagram

marker classes: the render floor decides only for an ambient or derived marker

The render floor decides only for an ambient marker. A definitive marker is a block alone.source: My model of the marker classes

A matrix of four observations against two questions: does a script read the browser, and did the site serve a block. Only the rows with a served block show a verdict.

a read of the browser against a served block: only a served block proves a verdict
observationscript reads the browsersite served a blockwhat it proves
Script reads the webdriver flag, full pageyesnoA read, not a verdict
Vendor cookie, full pagenonenoThe vendor is present
Challenge header, no contentnoneyesA served challenge
Script reads the browser, then block pageyesyesA verdict of the site
A read of an API is not a verdict. Only a served block proves that a product caught a tool.source: My model of a read against a detection

code example

The first example classifies four synthetic responses with the marker rule. The second example names a vendor only from a strong signal.

The markers, the vendors, the pages, and the responses are synthetic. No part describes a real product.

m14-x01-marker-class.tstypescript

Classify the markers of a response as definitive or ambient, and block on an ambient marker only when the render floor fails.

// Synthetic model of a marker check on one response.
// A definitive marker blocks alone. An ambient marker blocks only when
// the render floor fails. No network, no real product, synthetic data only.
type MarkerClass = "definitive" | "ambient";
interface Marker { text: string; cls: MarkerClass }
interface Reply { name: string; status: number; headers: Record<string, string>; body: string; title: string }

const markers: Marker[] = [
  { text: "x-lab-mitigated: challenge", cls: "definitive" },
  { text: "lab-challenge-form", cls: "definitive" },
  { text: "lab-sensor-v1", cls: "ambient" },
  { text: "lab_sensor_cookie", cls: "ambient" },
];

// A simple render floor: a 2xx status, a body of 2,048 bytes or more, and a title.
function renderFloor(r: Reply): boolean {
  return r.status >= 200 && r.status < 300 && r.body.length >= 2048 && r.title.length > 0;
}

function found(r: Reply, m: Marker): boolean {
  const head = Object.entries(r.headers).map(([k, v]) => `${k}: ${v}`).join("\n");
  return head.includes(m.text) || r.body.includes(m.text);
}

function classify(r: Reply): string {
  const hits = markers.filter((m) => found(r, m));
  const def = hits.filter((m) => m.cls === "definitive");
  const amb = hits.filter((m) => m.cls === "ambient");
  if (def.length > 0) return `block (definitive: ${def.map((m) => m.text).join(", ")})`;
  if (amb.length > 0 && !renderFloor(r)) return `block (ambient, render floor fails)`;
  if (amb.length > 0) return `pass (ambient only, render floor passes)`;
  return renderFloor(r) ? "pass (no marker)" : "inconclusive (no marker, render floor fails)";
}

const content = "<p>synthetic article text</p>".repeat(100);
const replies: Reply[] = [
  { name: "reply A", status: 200, headers: {}, title: "Item list",
    body: `<script src="/lab-sensor-v1"></script>${content}` },
  { name: "reply B", status: 403, headers: { "x-lab-mitigated": "challenge" }, title: "",
    body: `<form id="lab-challenge-form"></form>` },
  { name: "reply C", status: 200, headers: {}, title: "",
    body: `<script src="/lab-sensor-v1"></script>` },
  { name: "reply D", status: 200, headers: {}, title: "Item list", body: content },
];

for (const r of replies) console.log(`${r.name}: ${classify(r)}`);

output

One line for each synthetic response with its result and its reason.

reply A: pass (ambient only, render floor passes)
reply B: block (definitive: x-lab-mitigated: challenge, lab-challenge-form)
reply C: block (ambient, render floor fails)
reply D: pass (no marker)
m14-x02-attribute.tstypescript

Attribute a script to a vendor only with a vendor-specific signal. A short string alone only confirms a name.

// Synthetic model of vendor attribution for one page.
// Attribution needs a vendor-specific signal: an endpoint pattern or a
// recognized provider name. A short string alone is corroboration only.
// The vendors, the patterns, and the page are synthetic.
interface Rule { vendor: string; endpoints: RegExp[]; providerNames: string[]; shortStrings: string[] }
interface Page { scriptUrls: string[]; providerName: string | null; cookieNames: string[]; urlTokens: string[] }

const rules: Rule[] = [
  { vendor: "vendor A", endpoints: [/^\/va-sensor\/v\d+\/collect$/], providerNames: ["Vendor A Shield"], shortStrings: ["_va"] },
  { vendor: "vendor B", endpoints: [/^\/vb\/check$/], providerNames: ["Vendor B Guard"], shortStrings: ["vbx"] },
];

function attribute(page: Page, rule: Rule): string {
  const endpoint = page.scriptUrls.some((u) => rule.endpoints.some((re) => re.test(u)));
  const provider = page.providerName !== null && rule.providerNames.includes(page.providerName);
  const texts = [...page.cookieNames, ...page.urlTokens];
  const short = rule.shortStrings.filter((s) => texts.some((t) => t.includes(s)));
  if (endpoint || provider) {
    const why = endpoint ? "endpoint pattern" : "provider name";
    const extra = short.length > 0 ? `, corroborated by ${short.join(", ")}` : "";
    return `${rule.vendor}: attributed (${why}${extra})`;
  }
  if (short.length > 0) return `${rule.vendor}: not attributed (short string ${short.join(", ")} only)`;
  return `${rule.vendor}: no signal`;
}

const pages: Record<string, Page> = {
  "page 1": { scriptUrls: ["/va-sensor/v2/collect"], providerName: null, cookieNames: ["_va_id"], urlTokens: [] },
  "page 2": { scriptUrls: ["/app"], providerName: null, cookieNames: [], urlTokens: ["q8Zvbx41kT"] },
  "page 3": { scriptUrls: ["/app"], providerName: "Vendor B Guard", cookieNames: [], urlTokens: [] },
};

for (const [name, page] of Object.entries(pages)) {
  for (const rule of rules) console.log(`${name}, ${attribute(page, rule)}`);
}

output

One line for each synthetic page and vendor, with the result and its reason.

page 1, vendor A: attributed (endpoint pattern, corroborated by _va)
page 1, vendor B: no signal
page 2, vendor A: no signal
page 2, vendor B: not attributed (short string vbx only)
page 3, vendor A: no signal
page 3, vendor B: attributed (provider name)

I ran the two examples with the Node runtime and the flag --experimental-strip-types.

In the first example, reply A has a sensor and real content, thus it passes. Reply C has the same sensor and no content, thus it is a block. In the second example, the string vbx matches inside a random token on page 2, but it does not give a name alone.

data

The fleet is the set of tools and browsers of the benchmark platform. A definitive attempt is an attempt with a clear pass or block result.

block share of 13 public detector pages under the current rule

status of this figure: measured by me

block share of 13 public detector pages under the current rulepage 1, n 2,8300%page 2, n 452.2%page 3, n 3,1257.7%page 4, n 70012.3%page 5, n 1,949, 67.6%ambiguous23.4%page 6, n 2,81546.4%page 7, n 2,75569.2%page 8, n 2,76077%page 9, n 2,77580.5%page 10, n 2,63782.4%page 11, n 2,75092%page 12, n 2,72092.3%page 13, n 2,805100%unit: %

lines: interval, level 0.95

source: Benchmark platform, data (my test system): block share by detector page, current rule; date 2026-11-03; sample of 30,666; condition: Definitive attempts only. A proxy refusal with status 407 counts as a block here, and such refusals change page 5 the most. The page mix differs for each tool. Page 2 has 45 attempts.

data table
block share of 13 public detector pages under the current rule
page%interval
page 1, n 2,83000 to 0.1 (level 0.95)
page 2, n 452.20.4 to 11.6 (level 0.95)
page 3, n 3,1257.76.8 to 8.7 (level 0.95)
page 4, n 70012.310.1 to 14.9 (level 0.95)
page 5, n 1,949, 67.6% ambiguous23.421.6 to 25.4 (level 0.95)
page 6, n 2,81546.444.6 to 48.3 (level 0.95)
page 7, n 2,75569.267.4 to 70.9 (level 0.95)
page 8, n 2,7607775.3 to 78.5 (level 0.95)
page 9, n 2,77580.579 to 82 (level 0.95)
page 10, n 2,63782.480.9 to 83.8 (level 0.95)
page 11, n 2,7509290.9 to 93 (level 0.95)
page 12, n 2,72092.391.2 to 93.2 (level 0.95)
page 13, n 2,80510099.9 to 100 (level 0.95)
Share of definitive attempts with a block result, for one fleet. The share goes from 0.0% to 100%. The intervals are too narrow, because the attempts are not independent (design effect about 4.8). Page numbers are local to this chart. The chart does not rank products.

The same fleet gets no blocks on one page and a block on each attempt on a different page, in the current rule period. Thus a block share shows the rule of the page as much as the fleet.

values seen for each probe in the current rule period

status of this figure: measured by me

values seen for each probe in the current rule periodtls probe 10tls probe 21ip-reputation probe 11ip-reputation probe 21js-fingerprint probes 1 and21js-fingerprint probe 31js-fingerprint probe 41js-fingerprint probes 5 to 71js-fingerprint probe 80behavioral probe 10challenge probe 11attestation probe 11server-coherence probe 13server-coherence probes 2and 30unit: values

source: Benchmark platform, data (my test system): probe values of the current rule period; date 2026-11-03; sample of 34,935; condition: Current rule period only. A constant probe can be a probe that never runs or a probe that does not look. The data cannot tell which.

data table
values seen for each probe in the current rule period
probevalues
tls probe 10
tls probe 21
ip-reputation probe 11
ip-reputation probe 21
js-fingerprint probes 1 and 21
js-fingerprint probe 31
js-fingerprint probe 41
js-fingerprint probes 5 to 71
js-fingerprint probe 80
behavioral probe 10
challenge probe 11
attestation probe 11
server-coherence probe 13
server-coherence probes 2 and 30
Each bar is one probe, or a group of probes with the same result. Inconclusive is not counted as a value. One probe returns 3 values. Many probes return one constant value. 4 probes return no value in any rule period.

Only one probe varies. Thus only that probe can separate two attempts. The data cannot separate a probe that never runs from a probe that does not look.

failure modes

problemcausecorrection
Each page with the status 200 behind one CDN counts as a challenge.The signature keys on headers and cookies that the CDN puts on each response.Key only on a mitigation header and a clearance cookie.
Real pages on protected sites fail as challenges.Ambient markers count as a challenge that the site served.Block on an ambient marker only when no real content rendered.
The classifier names a vendor on sites that do not use it.A short cookie name matches inside a random URL token.Name a vendor only from an endpoint pattern or a provider name.
A report gives a high count of sites that detect automation.It counts each read of an API as a detection.Report what reads the fingerprint surface, not what detects.
A probe gives a value on each attempt, but it separates no tools.The probe returns one constant value.Count only the probes that vary.

check questions

  1. A response has the status 200, a vendor sensor script, and a full article. What is the result of the marker rule?

    1. Block, because a vendor marker is present
    2. Pass, because the marker is ambient and the render floor passes
    3. Inconclusive, because the status is 200
    answer

    b. Pass, because the marker is ambient and the render floor passes

    A sensor script is an ambient marker. An ambient marker is a block only when the render floor fails. The full article passes the render floor.

  2. A short cookie name of a vendor matches inside a random URL token. No endpoint pattern and no provider name match. What do you record?

    1. The vendor is present
    2. The vendor blocked the page
    3. No vendor name, because a short string alone only confirms a name
    answer

    c. No vendor name, because a short string alone only confirms a name

    A vendor gets a name only from an endpoint pattern or a recognized provider name. A short string can match inside a random token.

  3. A script on a page reads the webdriver flag of the browser, and the page then serves its full content. Explain why this is not proof of detection.

    sample answer

    A script reads browser APIs for many reasons, for example layout or analytics. A read shows what the script can see, not what the site decided. Only a served block proves a verdict, and this page served its full content.

  4. Product A gives a score where 100 is a bot. Product B lets a rule pass a request when the score is higher than 0.8. What must you do before you compare the two scores?

    1. Read the polarity of each score
    2. Divide the score of product A by 100
    3. Use the higher score
    answer

    a. Read the polarity of each score

    The polarity is not standard. A high score means a bot in product A and a good visitor in product B.

  5. A probe returns the value ok on each attempt of each tool. Explain what this probe shows about the tools.

    sample answer

    It shows nothing about the tools. A probe that returns one constant value cannot separate two attempts. Only a probe that varies carries information. Also, the data cannot separate a probe that never runs from a probe that does not look.

exercise

exercise Do this task in your own lab, with synthetic data only. Do not send a request to a site.

The two replies to add, one record in each item:

  • Reply E: status 200, no headers, title Item list, body "lab_sensor_cookie" + content, with the constant content of the code.
  • Reply F: the same as reply E, but with an empty title.
  1. Save the first code example in an empty folder of your lab.
  2. Add reply E and reply F to the list replies, before reply D.
  3. Run the code with Node and the flag --experimental-strip-types.
  4. Record the result of reply E and reply F.
  5. Write which test makes the two results different.
sample answer

The answer uses the synthetic replies of the code example.

Reply E gives "pass (ambient only, render floor passes)". Reply F gives "block (ambient, render floor fails)". The two replies have the same ambient marker. Only the render floor makes them different, because reply F has no title. Thus the cookie of a sensor is not a block alone.

sources

  1. Detect a Challenge Page response, Cloudflare, documentation, read 2026-11-20
  2. CAPTCHA and Challenge action behavior, Amazon Web Services, documentation, read 2026-11-20
  3. Handle adversarial bots, Akamai, documentation, read 2026-11-20
  4. Cloud Armor bot management, Google, documentation, read 2026-11-20
  5. My model of signatures, marker classes, reads of an API, and the information of a probe, 2026-11 (not public).
  6. Benchmark platform, design (my test system): the marker rule and the vendor name rule of the success oracle, and the probes, 2026-11 (not public).