skip to content

the field · lesson 3 of 6 · sources checked 2026-11-20

the seven-layer model

The seven detection layers, and the two rules that find the layer that decides the result of a request.

purpose

A request can fail at seven places, and each place reads a different input. If you know the place of a failure, you can select the module that explains it.

objectives

  1. List the seven detection layers and give the input and one example signal for each layer.
  2. Apply the worst-layer rule to the results of one request.
  3. Explain why a check of one value cannot find a contradiction between two layers.
  4. Separate the canonical order of the layers from the order in which a site reads them.
  5. Name in words the layers of each product class in the catalog of the benchmark platform, my test system.

new terms

detection layer
One of the seven groups of evidence that a site can examine in my model.
ClientHello
The first TLS message from the client, which lists its versions, cipher suites, and extensions in cleartext.
JA4
A three-part TLS client fingerprint with a readable prefix and two hashes over sorted cipher and extension lists.
IP reputation
The trust score that a site gives to an address from its network, its class, its list membership, and its history.
fingerprint
A set of values that a site collects from a client to identify or classify it.
behavior layer
The detection layer that examines how a visitor moves, types, touches, and waits.
kinematics
The position, speed, and acceleration of a pointer over time.
dwell time
The time between the press and the release of one key.
attestation
A signed proof from a device, a platform, or an operator about what a client is or about its integrity.
Privacy Pass
The IETF protocol family (RFC 9576, 9577, 9578) for tokens that prove a property of a client but do not identify it.
server coherence
The agreement between all signals that a site receives about one visitor.
HTTP Message Signatures
The method in RFC 9421 to sign parts of an HTTP request or response.

how it works

A site examines a visitor at seven layers. Each detection layer has a different input, and the site reads each input at a different place. The table gives the input, one example signal, and the main module of the layer.

layerinput: what the site examinesexample signalmain module
TransportThe TLS and HTTP/2 form of the connection, and the request headersThe TLS ClientHello as a fingerprint, for example JA4Transport fingerprints
IP reputationThe address, its network, and its historyThe network class of the address: data center or residentialIP reputation
JavaScript fingerprintWhat the browser reports about itselfCanvas, WebGL, and navigator values, and an automation artifact such as navigator.webdriverFingerprinting
BehaviorHow the visitor moves, types, and waitsPointer kinematics, the timing of key presses, for example the dwell time, and the pattern of the requests in a web sessionBehavior
ChallengeA test that the visitor must passA proof of work or a CAPTCHAChallenges (not yet published)
AttestationA signed proof from a device, a platform, or an operatorA Privacy Pass token or a signed requestAttestation
Server coherenceAgreement between all the layers aboveThe browser that the TLS form claims, against the User-Agent header, the IP location, and Accept-LanguageDetection model

Three example signals in the table come from public documents:

the canonical order is not the order of execution

The table gives the canonical order. A site does not read the layers in this order.

Page JavaScript cannot read the transport signals and the address. The server side reads them, at the endpoint that ends the connection. Thus an edge network can use them before any page script runs. Page JavaScript sees the fingerprint and the behavior later.

Server coherence does not run at one time: it runs continuously across the web session. Thus the table is a map, not a timeline. To examine a failure, start at the layer that the site reads first.

example A request gets the status 403 in the first response, and the page does not load. Thus the script of the page did not run. Start at transport and IP reputation.

rule 1: the worst layer decides

Each layer gives one of three results: pass, fail, or no result. A fail means that this layer alone stops the request. The worst-layer rule gives the final result:

  • Fail, if one layer fails.
  • Pass, if no layer fails and at least one layer passes.
  • No result, if no layer fails and no layer passes.

A pass at six layers does not compensate for a fail at one layer.

example Five layers pass, attestation gives no result, and IP reputation fails. The final result is fail.

The benchmark platform uses the same rule to predict a result. Real systems have exceptions. For example, on the benchmark platform a score widget lowers a score and does not block. Module The detection model: layers, signals, decisions, coherence gives a second rule, which adds the evidence of the layers and does not take the worst.

A layer with no input gives no result. For example, a site that reads no signed proof has no attestation result. A layer with no result is not a pass. If you count it as a pass, you report a confidence that you do not have.

rule 2: coherence wins over one perfect value

coherence across layers wins over one perfect value. A value can be normal alone and still contradict a different signal.

For example, a request comes from a Python HTTP library, with a User-Agent header that claims a desktop browser. The handshake and the header are each valid alone. But no real browser sends that handshake with that header. Thus the request fails at server coherence, even if each value passes its own check.

The benchmark platform makes coherence its most important design input. In its design, a perfect canvas does not save a request with a data-center address and a Python TLS stack.

The fingerprint rules of the benchmark platform give "suspect" for one contradiction between layers, and "bot" for two or more. The same rules also list named automation artifacts, for example navigator.webdriver with the value true.

server coherence and scores

Server coherence is a check across the other layers, not a separate input. A request can fail at server coherence when each other layer passes. For example, the transport layer reads the User-Agent header, and server coherence compares that header with the TLS form.

Many product entries in the catalog of the benchmark platform give scores, not only pass and fail. Module The detection model: layers, signals, decisions, coherence explains scores and these limits.

the layers of each product class

In the catalog of the benchmark platform, no entry of a product class has all seven layers. For example, no entry of a fraud scorer has a challenge layer.

I wrote the entries of this catalog, and most entries are an authored guess: an entry that no test against a live page confirmed. A reference page compares this model with a second model of five layers.

the two sides

automation sidedetection side
One failed layer fails the visit, also with a perfect canvas. An example is the handshake of a Python TLS stack under a User-Agent header that claims a browser.The defender scores the agreement between layers. A contradiction between two layers is a signal that no check of one value can find.

design decisions

optiongaincostwhen it is correct
The defender scores each layer aloneEach result is simple to explain.Two values that contradict each other pass.Only one signal exists, for example a list of bad addresses at a firewall that sees no request data.
The defender scores agreement across layersOne perfect value cannot hide a contradiction.The site must collect many layers for one web session.The site sees the transport, the headers, and the page script of one web session.
The operator uses a declared path, for example signed requestsThe site can verify the key of the operator at the attestation layer.The operator must keep a key. The site can refuse the declared identity.The site publishes a policy for a declared client. Lesson The field in motion, 2025 to 2026 explains the standards.
The operator stops and lowers volume and pace after a failNo more requests go into a known fail.The collection is slower.After each fail with an unknown cause. A retry with no change sends the same signals to the same layers.

diagram

the seven layers in the canonical order, with the input of each layer

  1. TransportInput: the TLS and HTTP/2 form of the connection, and the request headers. Main module: transport fingerprints.
  2. IP reputationInput: the address, its network, and its history. Main module: IP reputation and network identity.
  3. JavaScript fingerprintInput: what the browser reports about itself. Main module: fingerprinting.
  4. BehaviorInput: how the visitor moves, types, and waits. Main module: behavior and biometrics.
  5. ChallengeInput: a test that the visitor must pass. Main module: challenges.
  6. AttestationInput: a signed proof from a device, a platform, or an operator. Main module: attestation and bot identity.
  7. Server coherenceInput: agreement between all the layers above. Main module: the detection model.
A site does not read the layers in this order.source: My model of the seven layers, and the benchmark platformstatus of this figure: estimate, not measured

the worst-layer rule: one request passes six layers and fails at server coherence

  1. Transportpass
  2. IP reputationpass
  3. JavaScript fingerprintpass
  4. Behaviorpass
  5. Challengepass
  6. Attestationpass
  7. Server coherencefail

Final resultfail

Six layers pass alone, but server coherence fails, so the final result is fail.source: My model of the seven layers, and the benchmark platformstatus of this figure: estimate, not measured

The second diagram shows the two rules together. Each of the six input layers passes alone. Server coherence finds a contradiction between them and fails. Thus the final result is fail.

code example

The code reads a list of product entries in JSON. It prints the layers of each product class as names only.

Each entry gives its layers as a list of names. This is a reduced form of a catalog entry: it keeps no intensity value. In a product entry, the label attestation means runtime integrity. Thus the code prints "runtime integrity" for that label.

example No entry of the sample describes a real product.

m01-x03-layers-by-class.tsts

Read product entries and print the layers of each product class, with no intensity value.

import { readFileSync } from "node:fs";

const LAYERS = ["tls", "ip-reputation", "js-fingerprint", "behavioral",
  "challenge", "attestation", "server-coherence"] as const;
type Layer = (typeof LAYERS)[number];

// Course names. In a product entry, "attestation" means runtime integrity.
const COURSE_NAME: Record<Layer, string> = {
  tls: "transport",
  "ip-reputation": "IP reputation",
  "js-fingerprint": "JavaScript fingerprint",
  behavioral: "behavior",
  challenge: "challenge",
  attestation: "runtime integrity",
  "server-coherence": "server coherence",
};

// Reduced form: a list of layer names. A full entry gives an object.
// For an object, the code keeps the names of the layers above 0 only.
interface Entry { slug: string; category: string; layers?: string[] | Record<string, number> }

// Example data. No entry describes a real product.
const SAMPLE = JSON.stringify([
  { slug: "edge-a", category: "edge-waf", layers: ["tls", "ip-reputation", "challenge", "server-coherence"] },
  { slug: "edge-b", category: "edge-waf", layers: ["tls", "js-fingerprint", "challenge", "server-coherence"] },
  { slug: "widget-a", category: "captcha", layers: ["js-fingerprint", "behavioral", "challenge"] },
  { slug: "score-a", category: "fraud-scoring", layers: ["ip-reputation", "behavioral"] },
  { slug: "wall-a", category: "pow-wall", layers: ["challenge", "attestation"] },
]);

const file = process.argv[2];
const data: Entry | Entry[] = JSON.parse(file ? readFileSync(file, "utf8") : SAMPLE);
const entries = Array.isArray(data) ? data : [data];

function layersOf(e: Entry): Layer[] {
  const raw = e.layers ?? [];
  const keys = Array.isArray(raw) ? raw : Object.keys(raw);
  for (const n of keys) {
    if (!(LAYERS as readonly string[]).includes(n)) throw new Error(`${e.slug}: unknown layer ${n}`);
  }
  const names = Array.isArray(raw) ? raw : keys.filter((k) => raw[k] > 0);
  return names as Layer[];
}

const byClass = new Map<string, Layer[][]>();
for (const e of entries) byClass.set(e.category, [...(byClass.get(e.category) ?? []), layersOf(e)]);

const names = (ls: Layer[]) => ls.map((l) => COURSE_NAME[l]).join(", ") || "none";

for (const [cls, list] of [...byClass].sort(([a], [b]) => a.localeCompare(b))) {
  const inAll = LAYERS.filter((l) => list.every((ls) => ls.includes(l)));
  const inSome = LAYERS.filter((l) => !inAll.includes(l) && list.some((ls) => ls.includes(l)));
  console.log(`${cls} (${list.length}): all: ${names(inAll)}; some: ${names(inSome)}`);
}

output

One line for each product class: the layers in all entries and the layers in some entries.

captcha (1): all: JavaScript fingerprint, behavior, challenge; some: none
edge-waf (2): all: transport, challenge, server coherence; some: IP reputation, JavaScript fingerprint
fraud-scoring (1): all: IP reputation, behavior; some: none
pow-wall (1): all: challenge, runtime integrity; some: none

Run the file with Node 22.13 and the type-strip option: node --experimental-strip-types m01-x03-layers-by-class.ts. Node writes an experimental warning to the error stream. The standard output is as shown. The sample output is not the table in the section "Data".

To read a different file, give its path as the first argument. The file can hold one entry or a list of entries. A layer name that the code does not know stops the program. The code does not add a new layer.

data

The table gives the layers of each product class in words, with no intensity value. Its source is a data file in the code of the benchmark platform. I wrote its entries. It is not a measurement.

status of this section: documented in my test system
product classlayers in all entries of the classlayers in some entries of the class
edge WAFChallenge, server coherenceTransport, IP reputation, JavaScript fingerprint, behavior
CAPTCHAChallengeJavaScript fingerprint, behavior, server coherence, transport
Fraud scorerIP reputationBehavior, JavaScript fingerprint
Behavioral productBehaviorIP reputation, JavaScript fingerprint, challenge, server coherence, runtime integrity
Proof-of-work wallChallenge, runtime integrityJavaScript fingerprint, behavior
Fingerprint libraryJavaScript fingerprint, server coherenceNone

speculative The catalog marks most product entries as an authored guess. All entries of the classes "fraud scorer" and "behavioral product" have this mark. Thus use the table to learn the shape of each class, not to predict one product.

Three facts follow from the table:

  • No class in the catalog uses all seven layers.
  • The catalog gives no challenge layer to a fraud scorer. Lesson Where the decision is made explains where each class makes its decision.
  • No class has a signed device proof as a layer: the label attestation in the catalog means runtime integrity.

failure modes

problemcausecorrection
You read a pass at six layers as a pass.The worst layer decides the final result.Find the layer that failed first. Then examine the other layers.
You look for a cause in the page script, but the request failed before the page loaded.The server side reads the transport, the address, and the headers before any page script.Start at the layer that the site reads first.
You correct one value and expect a pass.A different layer still contradicts that value.Examine all layers of the request together.
You count a layer with no result as a pass.A layer with no result is not a pass.Record "no result" and keep it apart from "pass".
You read the label attestation in the catalog as a signed device proof.The catalog uses one label for two meanings.Use "runtime integrity" for the check in page JavaScript. Keep "attestation" for a signed proof.
You count the detector verdict of a test page as an eighth layer.A detector verdict is a property of the test page, not a layer of a site.Keep seven layers. Record the detector verdict apart.

check questions

  1. List the seven layers in the canonical order. For each layer, give its input and one example signal.

    sample answer

    Transport: the TLS and HTTP/2 form and the request headers, for example a JA4 fingerprint. IP reputation: the address and its network, for example the network class. JavaScript fingerprint: what the browser reports, for example canvas values. Behavior: how the visitor moves, types, and waits, for example pointer kinematics. Challenge: a test, for example a CAPTCHA; attestation: a signed proof, for example a Privacy Pass token. Server coherence: agreement between the layers, for example the claimed browser against the User-Agent header.

  2. Six layers pass, and attestation gives no result. What is the final result?

    1. Pass
    2. Fail
    3. No result
    answer

    a. Pass

    No layer fails, and at least one layer passes. A layer with no result does not change the final result.

  3. Explain why a request can fail when each value passes its own check.

    sample answer

    Two values can contradict each other, for example a Python TLS handshake and a User-Agent header that claims a browser. Each value is valid alone. Server coherence compares the signals and finds the contradiction. A check of one value alone cannot find it.

  4. A request fails before the page loads. At which layers do you look first?

    1. Behavior and JavaScript fingerprint
    2. Server coherence only, because it runs after the page loads
    3. Transport and IP reputation
    answer

    c. Transport and IP reputation

    The server side reads the connection, the headers, and the address before any page script runs. Server coherence runs continuously across the web session, not only after the page loads. Page script sees the fingerprint and the behavior later.

  5. Name the two layers that all entries of the class edge WAF use in the catalog of the benchmark platform. Why does the table not predict one product?

    sample answer

    Challenge and server coherence. Most entries of the catalog are an authored guess, so the table shows the shape of a class, not one product.

exercise

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

  1. Write a function that gets the result of each of the seven layers for one request.
  2. Let each result be "pass", "fail", or "none". Use "none" for no result.
  3. Return "fail" if one layer gives "fail".
  4. Return "pass" if no layer gives "fail" and at least one layer gives "pass".
  5. Return "none" if no layer gives "fail" or "pass".
  6. Give each synthetic request two labels: the client family of the TLS form and of the User-Agent header.
  7. Use a short label for each family, for example "chrome" or "python-requests".
  8. Make the result of server coherence "fail" if the two labels are different. Make it "none" if a label is missing.
  9. Run the function on four synthetic requests. Use the four cases of the next step.
  10. Make sure of these results: "none" at attestation and pass elsewhere gives "pass". One fail gives "fail". Two different labels give "fail". "None" everywhere gives "none".

The third request shows the main idea of the lesson: each value is normal, but the pair is not.

sample answer

This model answer uses synthetic data only. Server coherence compares the two labels.

m01-x05-worst-layer.tsts

Combine seven synthetic layer results with the worst-layer rule and one coherence check.

type Result = "pass" | "fail" | "none";

const INPUTS = ["transport", "ip-reputation", "js-fingerprint", "behavior",
  "challenge", "attestation"] as const;
type Input = (typeof INPUTS)[number];

interface Req {
  name: string;
  layers: Record<Input, Result>;
  tlsFamily?: string; // client family of the TLS form
  uaFamily?: string;  // client family of the User-Agent header
}

// Worst-layer rule: one fail gives fail. Else one pass gives pass. Else none.
function combine(results: Result[]): Result {
  if (results.includes("fail")) return "fail";
  if (results.includes("pass")) return "pass";
  return "none";
}

// Server coherence: two different labels give fail. A missing label gives none.
function coherence(r: Req): Result {
  if (!r.tlsFamily || !r.uaFamily) return "none";
  return r.tlsFamily === r.uaFamily ? "pass" : "fail";
}

const all = (v: Result) =>
  Object.fromEntries(INPUTS.map((l) => [l, v])) as Record<Input, Result>;

// Synthetic requests. No request comes from a real client.
const requests: Req[] = [
  { name: "A", layers: { ...all("pass"), attestation: "none" }, tlsFamily: "chrome", uaFamily: "chrome" },
  { name: "B", layers: { ...all("pass"), "ip-reputation": "fail" }, tlsFamily: "chrome", uaFamily: "chrome" },
  { name: "C", layers: all("pass"), tlsFamily: "python-requests", uaFamily: "chrome" },
  { name: "D", layers: all("none") },
];

for (const r of requests) {
  for (const k of Object.keys(r.layers)) {
    if (!(INPUTS as readonly string[]).includes(k)) throw new Error(`${r.name}: unknown layer ${k}`);
  }
  const sc = coherence(r);
  const final = combine([...INPUTS.map((l) => r.layers[l]), sc]);
  console.log(`${r.name}: server coherence ${sc}, final ${final}`);
}

output

One line for each of four example requests: the server coherence result and the final result.

A: server coherence pass, final pass
B: server coherence pass, final fail
C: server coherence fail, final fail
D: server coherence none, final none

Request D has no pass and no fail, so its final result is no result. An unknown layer name stops the program. The coherence check compares only the two labels.

sources

  1. JA4 technical details, FoxIO, documentation, read 2026-11-19
  2. RFC 9576: The Privacy Pass Architecture (2024-06), IETF RFC Editor, informational, read 2026-11-19
  3. RFC 9421: HTTP Message Signatures (2024-02), IETF RFC Editor, standard, read 2026-11-19
  4. My model of the seven layers and its two rules, 2026-11 (not public).
  5. Benchmark platform, design (my test system), 2026-11: the order of execution, coherence, the fingerprint rules, and the worst-layer rule that predicts a result (not public).
  6. Benchmark platform, code (my test system), 2026-11: the catalog of products, its schema, and the score widgets (not public).