skip to content

transport fingerprints · lesson 4 of 7 · sources checked 2026-11-20

coherence rules and their false positives

This lesson shows how a server compares the TLS form of a client with its user agent, and why a strict rule blocks real users.

status of this lesson: documented in my test system

purpose

A transport fingerprint and a user agent come from two different parts of a client, so a server can test if they agree. That coherence test costs the server little. Its cost falls on real people: an antivirus product, a new browser release, or an old record can make a real browser fail it.

objectives

  1. List four sources of false positives in a rule that compares the TLS form with the user agent.
  2. Explain why context, for example the destination, makes a transport fingerprint more exact.
  3. Describe the data that a transport baseline must record.
  4. Evaluate a transport probe: which parts of the fingerprint it reads, and which baseline it trusts.

new terms

coherence
Agreement between all signals that a visitor presents, across all layers.
`ja4Fidelity`
A platform grade of how well an observed JA4 matches the claimed browser: 1.0, 0.5, 0.25, or 0.
false positive
A real user that a detector classifies as automation.
engine
The part of a browser that parses, lays out, and renders a page and runs its scripts.
TLS interception
A middlebox or security product that ends the TLS connection of a client and opens a new one with its own ClientHello.
circular baseline
A reference value that comes from a tool that the benchmark then scores against it.
SNI
Server Name Indication: the TLS extension that names the target host.
inconclusive
A stage result that says the stage had nothing to assert; the next stage decides.
positive control
A test case with a known expected result, so that a different result shows a fault of the instrument, not of the subject.

how it works

the cross-band rule

The user agent is a claim in an HTTP header. The JA4 value comes from the TLS handshake.

A client can change its user agent with one line of code. But the TLS stack builds the ClientHello by its own rules. Thus a server can compare a claim of the HTTP band, the user agent, with a value of the TLS band, the JA4. This comparison is the cross-band rule.

For example, a request says that it comes from a browser, but its JA4 is the JA4 of a plain HTTP library. The two claims do not agree. A server reads this as a mismatch of the transport layer.

The FoxIO repository gives each JA4+ format an a_b_c form. It sorts the cipher list and the extension list before the hash FoxIO, source 1. Thus a random order of the extensions does not change the JA4.

the checks between the claims

The user agent and the JA4 are only one pair. A server can also compare the Akamai HTTP/2 fingerprint, the ALPN offer, and the class of the IP address. The diagram gives each pair as one check.

The design of the benchmark platform, my test system, grades the match of an observed JA4 to the claimed browser with `ja4Fidelity`. The grade has four steps, from a full match to no match.

The stored data has no grade yet, because no echo service runs.

A mismatch is not proof of automation. Each pair has a cause of mismatch that is not automation. Then the rule gives a false positive: it marks a real user as automation.

sources of false positives

I use four sources. The second diagram shows them:

  1. An interception product on the host of the user.
  2. Version drift: a new browser release with a new transport form.
  3. A stale or circular baseline.
  4. A rare but real engine.

TLS interception is the first source. An antivirus product or a middlebox ends the TLS connection of the browser. Then it opens a new connection with its own ClientHello. The server sees a browser user agent over the TLS stack of the product.

status of this section: from a public source

In 2017, a study at NDSS showed a method to detect interception on the web server. The method is the mismatch between the HTTP user agent and the TLS behavior of the client. The authors used this method at three vantage points: the update servers of a browser, a set of e-commerce sites, and a content delivery network NDSS, source 2.

The chart in the section "Data" gives the share of intercepted connections at each vantage point.

That method is the cross-band rule. Thus a user behind an interception product can fail a strict rule, also with a real browser.

baselines and version drift

A transport baseline is the recorded transport fingerprint of one named browser release. A rule compares each observed value with this record. A browser update can change the transport form. For example, Chrome Platform Status gives the feature "TLS ClientHello extension permutation", which randomizes the order of the extensions Google, source 3.

After such a change, a baseline that does not record the release and the date marks the new release as a mismatch. A chart in the section "Data" shows a second effect: a classifier that learned from older data gives a lower score.

A baseline can also be a circular baseline. For example, a team records the "real browser" value from a capture of its own automation tool. Then the rule scores that tool against itself, and the tool always passes.

The benchmark platform marks its own transport baselines as illustrative. A baseline that a rule uses must name its release, its date, and its source.

context makes a fingerprint more exact

A JA4 value alone identifies a library family, not a program. Two programs can share one TLS library. Context adds evidence: the destination, the SNI value, and the history of the client.

A chart in the section "Data" shows a result from a preprint. A classifier that used the TLS fingerprint with the destination gave a higher F1 score than the TLS fingerprint alone. F1 is a score of classifier accuracy from 0 to 1. The server name alone gave the lowest score of the three.

a probe that reads too little

A probe that reads only the a part of JA4 cannot separate two clients with the same prefix. A probe that checks only that a SETTINGS frame is present cannot see its values. The code example shows both limits.

A probe with no observed value must give inconclusive, never "ok". A probe that reads "ok" for each request can be blind. A positive control shows that the probe can see a mismatch.

the two sides

automation sidedetection side
A correct fingerprint does not guarantee a pass. A rare but real engine can get a high risk score on a site with a different audience.A strict mismatch rule blocks real users behind antivirus products and middleboxes. Each baseline must name its release, its date, and its source.

design decisions

optiongaincostwhen it is correct
Block on a mismatch aloneThe rule is simple and fast.Users behind an interception product get a block.Only on a closed set of known clients, for example an internal API
Score the mismatch with other layersOne false positive does not block a user.The rule must have a score and more inputs.On a public site with a mixed audience
Compare the full JA4 and the HTTP/2 stringThe probe separates clients with the same prefix.Each baseline must have more fields.When a probe must see a client that copies a prefix
Record a baseline from a named browser releaseThe rule compares with a real client.Each new release must have a new record.For each baseline that a rule uses
Add the destination and the historyThe fingerprint becomes more exact.The server must keep a state for each client.When the fingerprint alone gives too many collisions

diagram

A table of six pairs of claims. For each pair, it gives what the server compares. It also gives a cause of a mismatch from a real user, for example TLS interception.

the pairs of claims that a server compares in the transport layer
pair of claimswhat the server comparesa mismatch can also come from
User agent and JA4Browser family and TLS stackTLS interception on the host
User agent and HTTP/2 stringBrowser family and HTTP/2 stackA proxy that ends HTTP/2
JA4 and HTTP/2 stringOne stack or two stacksA middlebox between the stacks
ALPN and HTTP versionThe offer and the protocol in useA server that refuses HTTP/2
User agent version and JA4Claimed release and TLS formA stale baseline or a new release
JA4 and IP classClient class and network classA rare but real client
Each pair has a second cause of a mismatch that is not automation.source: My model of the coherence checks of the transport layer

four sources of a false positive in a rule that compares the tls form with the user agent

A strict rule turns each of the four sources into a block of a real user. A rule with a tolerance scores the mismatch with the other layers.source: My model of the false-positive sources of a TLS rule

code example

The example compares four synthetic observations with an illustrative baseline. Probe A reads only the a part of JA4 and only the presence of SETTINGS. Probe B reads the full JA4 and the SETTINGS values.

example All values are synthetic. No value is the fingerprint of a real client, and the baseline is illustrative.

m08-x04-transport-probe.tstypescript

Compare the user agent claim of four synthetic clients with an illustrative baseline. Show the limit of a probe that reads only the JA4 prefix and the presence of SETTINGS.

// Synthetic transport probe: the user agent claim against the TLS form.
// All values are illustrative. No value is the fingerprint of a real client.
type Obs = {
  name: string;
  uaFamily: string;          // the browser family that the user agent claims
  ja4: string | null;        // full JA4 as a_b_c, or null when no capture exists
  h2Settings: string | null; // the SETTINGS part of the HTTP/2 string
};

// Illustrative baseline: one entry for each claimed family.
const baseline: Record<string, { ja4: string; h2Settings: string }> = {
  "browser-x": { ja4: "t13d1010h2_aaaaaaaaaaaa_bbbbbbbbbbbb", h2Settings: "1:100;4:200" },
};

type Verdict = "ok" | "mismatch" | "inconclusive";

// Probe A reads only the a part of JA4 and only the presence of SETTINGS.
function probeA(o: Obs): Verdict {
  const b = baseline[o.uaFamily];
  if (!b || o.ja4 === null) return "inconclusive";
  const sameA = o.ja4.split("_")[0] === b.ja4.split("_")[0];
  return sameA && o.h2Settings !== null ? "ok" : "mismatch";
}

// Probe B reads the full JA4 and the SETTINGS values.
function probeB(o: Obs): Verdict {
  const b = baseline[o.uaFamily];
  if (!b || o.ja4 === null) return "inconclusive";
  return o.ja4 === b.ja4 && o.h2Settings === b.h2Settings ? "ok" : "mismatch";
}

const observations: Obs[] = [
  { name: "client 1", uaFamily: "browser-x", ja4: "t13d1010h2_aaaaaaaaaaaa_bbbbbbbbbbbb", h2Settings: "1:100;4:200" },
  { name: "client 2", uaFamily: "browser-x", ja4: "t13d0807h1_cccccccccccc_dddddddddddd", h2Settings: null },
  { name: "client 3", uaFamily: "browser-x", ja4: "t13d1010h2_aaaaaaaaaaaa_eeeeeeeeeeee", h2Settings: "1:300" },
  { name: "client 4", uaFamily: "browser-x", ja4: null, h2Settings: null },
];

for (const o of observations) {
  console.log(`${o.name}: probe A=${probeA(o)} probe B=${probeB(o)}`);
}

output

One line for each client with the verdicts of probe A and probe B.

client 1: probe A=ok probe B=ok
client 2: probe A=mismatch probe B=mismatch
client 3: probe A=ok probe B=mismatch
client 4: probe A=inconclusive probe B=inconclusive

I ran the code with the Node runtime and the flag --experimental-strip-types. Client 3 has the same prefix as the baseline, but different hashes and different SETTINGS values. Probe A gives "ok", and probe B gives "mismatch". Client 4 has no capture, and both probes give "inconclusive", not "ok".

data

share of intercepted tls connections at three vantage points

status of this figure: from a public source

share of intercepted tls connections at three vantage pointsbrowser update connections4%e-commerce connections6.2%U.S. content networkconnections10.9%unit: %

source: Study of HTTPS interception, 2017 (public source, https://www.ndss-symposium.org/ndss2017/ndss-2017-programme/security-impact-https-interception/, read 2026-11-12); period 2017-01-01 to 2017-12-31; sample size not stated

data table
share of intercepted tls connections at three vantage points
vantage point%
browser update connections4
e-commerce connections6.2
U.S. content network connections10.9
A 2017 study found a middlebox in 4.0%, 6.2%, and 10.9% of connections at three vantage points. It found the middleboxes by the mismatch between the user agent and the ClientHello. This is a public study, sample size not stated.

The share of intercepted connections is different at each vantage point. Thus the false positives of a strict rule depend on the audience of the site.

f1 of a process classifier, with and without destination context

status of this figure: from a public source

f1 of a process classifier, with and without destination contextfingerprint only0.8953server name only0.8556fingerprint plus destination0.9941unit: F1

source: Preprint of 2020 on TLS fingerprints and destination context (public source, https://arxiv.org/abs/2009.01939, read 2026-11-12); period 2020-01-01 to 2020-12-31

data table
f1 of a process classifier, with and without destination context
features usedF1
fingerprint only0.8953
server name only0.8556
fingerprint plus destination0.9941
A preprint, not peer reviewed. A TLS fingerprint alone gave an F1 of 0.8953. The server name alone gave 0.8556. The fingerprint with the destination gave 0.9941. Context makes a fingerprint more exact.

The bar of the fingerprint with the destination is the highest of the three. The fingerprint alone scores higher than the server name alone, and the destination raises the score again.

f1 of a tls fingerprint base against its age

status of this figure: from a public source

f1 of a tls fingerprint base against its age0.9610.9670.9690.970.9730.9770.9870.9880.9890.9910.99410.9310.9360.9380.9410.9460.950.9520.960.9610.9630.9652019-072019-082019-092019-102019-112019-122020-012020-022020-032020-042020-05F11. F1 by process family2. F1 by process

source: Preprint of 2020 on TLS fingerprints and destination context (public source, https://arxiv.org/abs/2009.01939, read 2026-11-12); period 2019-07-01 to 2020-06-30

data table
f1 of a tls fingerprint base against its age
seriesmonth of the baseF1
F1 by process family2019-070.961
F1 by process family2019-080.967
F1 by process family2019-090.969
F1 by process family2019-100.97
F1 by process family2019-110.973
F1 by process family2019-120.977
F1 by process family2020-010.987
F1 by process family2020-020.988
F1 by process family2020-030.989
F1 by process family2020-040.991
F1 by process family2020-050.9941
F1 by process2019-070.931
F1 by process2019-080.936
F1 by process2019-090.938
F1 by process2019-100.941
F1 by process2019-110.946
F1 by process2019-120.95
F1 by process2020-010.952
F1 by process2020-020.96
F1 by process2020-030.961
F1 by process2020-040.963
F1 by process2020-050.965
A preprint, not peer reviewed. Each point is a classifier base, built from the data of one month and tested on June 2020 data. An older base scores lower. I read the values from a figure, with a read error of about 0.001. The preprint text states 0.9941 for the newest base.

Both lines go up as the base comes nearer to the test month. A transport baseline can go out of date in the same way, so a rule records the date of each baseline.

failure modes

problemcausecorrection
Real users behind an antivirus product get a block.The product intercepts TLS, and a strict rule blocks on the mismatch alone.Score the mismatch with the other layers, and give the rule a tolerance.
Each user of a new browser release fails the rule.The baseline has no release and no date, and the new release has a new transport form.Record the release, the date, and the source of each baseline. Add each new release.
The automation tool under test always passes.The baseline came from a capture of that tool.Record each baseline from a real browser, and write the method.
The probe reads "ok" for each request.The probe gives "ok" when it has no observed value.Give "inconclusive" for a missing value. Add a positive control.
Two different clients get the same verdict of the probe.The probe reads only the JA4 prefix, or only the presence of SETTINGS.Compare the full JA4 and the HTTP/2 string.

check questions

  1. List four sources of false positives in a rule that compares the TLS form of a client with its user agent.

    sample answer

    1. An interception product on the host of the user. 2. A new browser release with a new transport form. 3. A stale or circular baseline. 4. A rare but real engine.

  2. Explain why the destination makes a transport fingerprint more exact.

    sample answer

    A JA4 value alone identifies a library family, and two programs can share one TLS library. The destination adds evidence about the program. In a 2020 preprint, the fingerprint with the destination gave a higher F1 score than the fingerprint alone.

  3. Describe the data that a transport baseline must record, and say why the source of the capture is important.

    sample answer

    A transport baseline records the transport fingerprint of one named browser release, the date of the capture, and the source of the capture. The source must be a real browser. A baseline from a capture of the tool under test is circular, and that tool always passes.

  4. A probe reads only the a part of JA4 and only the presence of a SETTINGS frame. A client sends the same prefix as the baseline, but different hashes and different SETTINGS values. What does the probe give?

    1. ok
    2. mismatch
    3. inconclusive
    answer

    a. ok

    The probe compares only the prefix and the presence of the SETTINGS frame, and both agree. Thus it gives ok. A probe that compares the full JA4 and the SETTINGS values gives mismatch.

  5. A probe gives ok for each request, and it records no observed value. What is the correct step?

    1. Trust the probe, because it found no mismatch
    2. Remove the probe from the rule set
    3. Give inconclusive for a missing value, and add a positive control
    answer

    c. Give inconclusive for a missing value, and add a positive control

    A probe with no observed value cannot see a mismatch. It must give inconclusive. A positive control shows that the probe can see a mismatch.

exercise

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

  1. Save the code example in an empty folder of your lab.
  2. Add a fifth client with the user agent family "browser-y".
  3. Run the code with Node and the flag --experimental-strip-types.
  4. Record the verdicts of the fifth client.
  5. Write why the probes give these verdicts.
  6. Write the data that a new baseline entry for "browser-y" must record.
sample answer

The answer uses the synthetic baseline of the code example.

The baseline has no entry for "browser-y". Thus both probes give "inconclusive" for the fifth client, and not "mismatch". A rare but real browser gets this result too. A new baseline entry records the full JA4 and the HTTP/2 string. It also records the name of the browser release, the date of the capture, and the source of the capture. The source must be a real browser, not the tool under test.

sources

  1. JA4+ repository and licence section, FoxIO, source code, read 2026-11-20
  2. The Security Impact of HTTPS Interception, NDSS 2017, NDSS, paper, read 2026-11-20
  3. Chrome Platform Status feature (JSON example), Google, data, read 2026-11-20
  4. My model of the coherence of the transport layer and its false-positive sources, 2026-11 (not public).
  5. Benchmark platform, design (my test system): the design of the JA4 grade against the claimed browser, and the illustrative transport baselines, 2026-11 (not public).