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 systempurpose
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
- List four sources of false positives in a rule that compares the TLS form with the user agent.
- Explain why context, for example the destination, makes a transport fingerprint more exact.
- Describe the data that a transport baseline must record.
- 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:
- An interception product on the host of the user.
- Version drift: a new browser release with a new transport form.
- A stale or circular baseline.
- 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 sourceIn 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 side | detection 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
| option | gain | cost | when it is correct |
|---|---|---|---|
| Block on a mismatch alone | The 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 layers | One 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 string | The 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 release | The 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 history | The 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.
| pair of claims | what the server compares | a mismatch can also come from |
|---|---|---|
| User agent and JA4 | Browser family and TLS stack | TLS interception on the host |
| User agent and HTTP/2 string | Browser family and HTTP/2 stack | A proxy that ends HTTP/2 |
| JA4 and HTTP/2 string | One stack or two stacks | A middlebox between the stacks |
| ALPN and HTTP version | The offer and the protocol in use | A server that refuses HTTP/2 |
| User agent version and JA4 | Claimed release and TLS form | A stale baseline or a new release |
| JA4 and IP class | Client class and network class | A rare but real client |
four sources of a false positive in a rule that compares the tls form with the user agent
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.
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=inconclusiveI 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
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
| vantage point | % |
|---|---|
| browser update connections | 4 |
| e-commerce connections | 6.2 |
| U.S. content network connections | 10.9 |
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
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
| features used | F1 |
|---|---|
| fingerprint only | 0.8953 |
| server name only | 0.8556 |
| fingerprint plus destination | 0.9941 |
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
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
| series | month of the base | F1 |
|---|---|---|
| F1 by process family | 2019-07 | 0.961 |
| F1 by process family | 2019-08 | 0.967 |
| F1 by process family | 2019-09 | 0.969 |
| F1 by process family | 2019-10 | 0.97 |
| F1 by process family | 2019-11 | 0.973 |
| F1 by process family | 2019-12 | 0.977 |
| F1 by process family | 2020-01 | 0.987 |
| F1 by process family | 2020-02 | 0.988 |
| F1 by process family | 2020-03 | 0.989 |
| F1 by process family | 2020-04 | 0.991 |
| F1 by process family | 2020-05 | 0.9941 |
| F1 by process | 2019-07 | 0.931 |
| F1 by process | 2019-08 | 0.936 |
| F1 by process | 2019-09 | 0.938 |
| F1 by process | 2019-10 | 0.941 |
| F1 by process | 2019-11 | 0.946 |
| F1 by process | 2019-12 | 0.95 |
| F1 by process | 2020-01 | 0.952 |
| F1 by process | 2020-02 | 0.96 |
| F1 by process | 2020-03 | 0.961 |
| F1 by process | 2020-04 | 0.963 |
| F1 by process | 2020-05 | 0.965 |
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
| problem | cause | correction |
|---|---|---|
| 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
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.
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.
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.
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?
- ok
- mismatch
- 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.
A probe gives ok for each request, and it records no observed value. What is the correct step?
- Trust the probe, because it found no mismatch
- Remove the probe from the rule set
- 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.
- Save the code example in an empty folder of your lab.
- Add a fifth client with the user agent family "browser-y".
- Run the code with Node and the flag
--experimental-strip-types. - Record the verdicts of the fifth client.
- Write why the probes give these verdicts.
- 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
- JA4+ repository and licence section, FoxIO, source code, read 2026-11-20
- The Security Impact of HTTPS Interception, NDSS 2017, NDSS, paper, read 2026-11-20
- Chrome Platform Status feature (JSON example), Google, data, read 2026-11-20
- My model of the coherence of the transport layer and its false-positive sources, 2026-11 (not public).
- 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).