skip to content

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

http/2 fingerprints and header order

This lesson shows how the HTTP/2 preface and the header order separate two clients when their TLS values are the same.

status of this lesson: from a public source

purpose

Two clients can send the same ClientHello and still use different HTTP code, so a TLS check alone cannot separate them. The HTTP code sets its own values at the start of the connection. A server that does not keep these values as they came on the wire cannot use them.

objectives

  1. Write the Akamai HTTP/2 fingerprint string from parsed preface values.
  2. Explain why the HTTP/2 string can separate two clients with the same TLS values.
  3. Explain why a server behind a proxy that normalizes requests loses the wire order of the headers.
  4. Identify the signal of a client that states a browser user agent and sends no browser preface.

new terms

Akamai HTTP/2 fingerprint
A string of the SETTINGS values, the WINDOW_UPDATE size, PRIORITY data, and the pseudo-header order of an HTTP/2 client.
pseudo-header
An HTTP/2 or HTTP/3 header field that starts with a colon, for example `:method` or `:path`.
automation artifact
A signal that an automation tool leaks and that a detector can read.
JA4H
A fingerprint of an HTTP request from its method, version, header order, cookie and referer presence, and Accept-Language.

how it works

The TLS values of two clients can be the same. For example, two programs on one TLS library can give one JA4 value. But each program can have its own HTTP code, and that code writes the first messages of the HTTP/2 connection.

RFC 9113 defines this start. The client preface is a fixed sequence of 24 octets. A SETTINGS frame must follow it, and it can be empty RFC Editor, source 1. The receiver processes the settings in the order in which they appear.

the four parts of the string

In 2017, a white paper of Akamai proposed a passive HTTP/2 fingerprint. This course calls it the Akamai HTTP/2 fingerprint. It has four parts, joined by a vertical bar Akamai (Black Hat Europe 2017), source 2:

  1. The SETTINGS parameters, each as ID:value, joined by a semicolon in the order of their appearance.
  2. The increment of the WINDOW_UPDATE value. The paper writes 00 when the client sends none.
  3. The PRIORITY values that the client sends before its first request, joined by a comma. The paper writes 0 when there are none.
  4. The order of the pseudo-header fields of the first request, as the letters m, p, a, and s.

example For example, the order m,a,s,p puts :method first and :path last. A real browser can send a different order. The talk record gives the conference: Black Hat Europe 2017 InfoCon DB, source 3.

a second check when the tls values are the same

In my model, the increment of the WINDOW_UPDATE value can differ from client to client. A server that reads the TLS fingerprint together with the HTTP/2 values gets a more exact fingerprint.

Thus a defender reads the HTTP/2 string after the TLS check, as a second check. A client that copies the TLS form of a browser but keeps its own HTTP code shows a different string.

The preface also gives a simple automation artifact. For example, a request states a browser user agent, but the client uses HTTP/1.1 and sends no SETTINGS values. The user agent and the transport do not agree.

ja4h and the order of headers

JA4H reads the headers of each HTTP request, also their order. Its header count has two digits, does not count Cookie and Referer, and stops at 99 FoxIO, source 4. The JA4+ repository puts JA4H under the FoxIO License 1.1, not under the BSD license of JA4 FoxIO, source 5.

A client library can fix the order of its headers in code. For example, a library can always send User-Agent, then Accept, then Accept-Encoding. Then each request of that library shows the same order, also under a different user agent.

where the wire order is lost

RFC 9113 puts the pseudo-header fields before all other fields of a request RFC Editor, source 1. Inside each group, the HTTP code of the client sets the order.

A server can read that order only at the place that reads the request from the wire. In my model, a proxy that normalizes requests sends a new request to the server behind it.

For example, an edge network can end the connection and send the headers in its own order. Then the origin sees the order of the edge, not the order of the client. A framework that gives the headers to an application as a map also loses the order.

Thus a defender reads the HTTP/2 string and the header order at the edge, or at the first server that ends the connection.

the state of the benchmark platform

status of this section: documented in my test system

The benchmark platform, my test system, has no live capture of the HTTP/2 preface yet. Its stored data has no value for the HTTP/2 string or for JA4H, and it never collected a JA4H value.

The order values in its seed data are fixture values, not measurements. Thus the code example below reads synthetic parsed values.

the two sides

automation sidedetection side
A client that copies the TLS form of a browser but not its HTTP/2 preface meets a second check. A browser user agent with no SETTINGS values is an automation artifact of a plain HTTP client.The Akamai HTTP/2 string separates HTTP libraries when their TLS values and JA4 values are the same. JA4H reads the header order, which a client library can fix in code.

design decisions

optiongaincostwhen it is correct
Read only the TLS valuesOne check, at the start of the connectionTwo clients on one TLS library give one value.As the first transport check
Add the Akamai HTTP/2 stringIt separates HTTP libraries with the same TLS values.The server must keep the preface values before it processes them.When the TLS values of two clients are the same
Add JA4HIt reads the header order and the header count of each request.A normalizing proxy changes the order. JA4H has the FoxIO License 1.1.Only at the first server that ends the connection
Read the headers in the applicationSimple, with no change at the edgeThe application sees the order of the proxy or a map with no order.Never for a check of the header order

diagram

the akamai http/2 string: four parts of the preface, joined by a vertical bar

  1. SETTINGSEach parameter as ID:value, in the order of the wire, joined by a semicolon.
  2. WINDOW_UPDATEThe increment of the connection window. The value 00 when the client sends none.
  3. PRIORITYStream ID, exclusive bit, parent stream ID, and weight for each value, joined by a comma. The value 0 when the client sends none.
  4. Pseudo-header orderThe letters m, p, a, and s for :method, :path, :authority, and :scheme, in the order of the first request.

SETTINGS|WINDOW_UPDATE|PRIORITY|PSEUDO-HEADER-ORDERno result

Each part keeps the order of the wire. The fourth part is the order of the pseudo-header fields of the first request.source: My model of the Akamai HTTP/2 string, after the white paper of 2017

code example

The example formats the Akamai HTTP/2 string from parsed preface values of three synthetic clients. The three clients have the same synthetic TLS label.

example The clients, the settings, and the TLS label are synthetic. No part describes a real client.

m08-x02-akamai-h2.tstypescript

Format the Akamai HTTP/2 string from parsed preface values, and show that it separates clients with the same TLS label.

// Format the Akamai HTTP/2 string from parsed preface values.
// All values are synthetic. No part describes a real client.
type Setting = { id: number; value: number };
type Priority = { stream: number; exclusive: 0 | 1; dependsOn: number; weight: number };
type Preface = {
  settings: Setting[];           // in wire order
  windowUpdate: number | null;   // increment of the first WINDOW_UPDATE, or null
  priorities: Priority[];        // PRIORITY values before the first request
  pseudoHeaders: string[];       // pseudo-header names of the first request, in wire order
};

const LETTER: Record<string, string> = { ":method": "m", ":path": "p", ":authority": "a", ":scheme": "s" };

function akamaiString(p: Preface): string {
  const s = p.settings.map((x) => `${x.id}:${x.value}`).join(";");
  const wu = p.windowUpdate === null ? "00" : String(p.windowUpdate);
  const pr = p.priorities.length === 0
    ? "0"
    : p.priorities.map((x) => `${x.stream}:${x.exclusive}:${x.dependsOn}:${x.weight}`).join(",");
  const ps = p.pseudoHeaders.map((h) => LETTER[h] ?? "?").join(",");
  return [s, wu, pr, ps].join("|");
}

// Three synthetic clients. All have the same synthetic TLS label.
const clients: { name: string; tls: string; ua: string; preface: Preface | null }[] = [
  {
    name: "client-a", tls: "tls-label-1", ua: "browser",
    preface: {
      settings: [{ id: 1, value: 4096 }, { id: 4, value: 1048576 }, { id: 6, value: 65536 }],
      windowUpdate: 10420225, priorities: [],
      pseudoHeaders: [":method", ":authority", ":scheme", ":path"],
    },
  },
  {
    name: "client-b", tls: "tls-label-1", ua: "browser",
    preface: {
      settings: [{ id: 3, value: 100 }, { id: 4, value: 65535 }],
      windowUpdate: null, priorities: [],
      pseudoHeaders: [":method", ":path", ":scheme", ":authority"],
    },
  },
  { name: "client-c", tls: "tls-label-1", ua: "browser", preface: null },
];

for (const c of clients) {
  const h2 = c.preface === null ? "none (HTTP/1.1)" : akamaiString(c.preface);
  console.log(`${c.name} tls=${c.tls} ua=${c.ua} h2=${h2}`);
}
const strings = new Set(clients.filter((c) => c.preface).map((c) => akamaiString(c.preface!)));
console.log(`same TLS label: ${new Set(clients.map((c) => c.tls)).size === 1}`);
console.log(`different HTTP/2 strings: ${strings.size}`);
for (const c of clients) {
  if (c.ua === "browser" && c.preface === null) console.log(`signal: ${c.name} states a browser and sends no HTTP/2 preface`);
}

output

One line for each client, the TLS check, the count of different HTTP/2 strings, and one signal line.

client-a tls=tls-label-1 ua=browser h2=1:4096;4:1048576;6:65536|10420225|0|m,a,s,p
client-b tls=tls-label-1 ua=browser h2=3:100;4:65535|00|0|m,p,s,a
client-c tls=tls-label-1 ua=browser h2=none (HTTP/1.1)
same TLS label: true
different HTTP/2 strings: 2
signal: client-c states a browser and sends no HTTP/2 preface

I ran the code with the Node runtime and the flag --experimental-strip-types. The three clients have one TLS label, but client A and client B give two different HTTP/2 strings. Client C states a browser and sends no HTTP/2 preface, so the code prints one line for this signal.

failure modes

problemcausecorrection
Two different clients get the same result from the transport check.The check reads only the TLS values, and the two clients use one TLS library.Add the HTTP/2 string as a second check.
The header order check gives the same order for each client.The check reads the headers behind a proxy that sends its own order.Read the order at the first server that ends the connection.
The HTTP/2 string is empty for a client with a browser user agent.The client uses HTTP/1.1, and the check has no preface values.Record the protocol of each request, and treat a browser user agent on HTTP/1.1 as a mismatch to examine.
Two captures of one client give two strings.The code that reads the preface sorted the SETTINGS parameters.Keep the settings in the order of the wire.
A rule uses the browser orders of 2017 as current values.The paper gives values of old browser versions.Record the date and the source of each value, and measure a current browser in your lab.

check questions

  1. A synthetic client sends the settings 1:4096 and then 4:65535, no WINDOW_UPDATE value, no PRIORITY values, and the pseudo-header order :method, :path, :authority, :scheme. Which string is correct?

    1. 4:65535;1:4096|0|00|m,p,a,s
    2. 1:4096;4:65535|00|0|m,p,a,s
    3. 1:4096;4:65535|0|0|m,a,s,p
    answer

    b. 1:4096;4:65535|00|0|m,p,a,s

    The settings keep the order of the wire. A missing WINDOW_UPDATE value gives 00, no PRIORITY values give 0, and the letters follow the pseudo-header order.

  2. Explain why the HTTP/2 string can separate two clients that have the same TLS values.

    sample answer

    The TLS library of a client writes the ClientHello, but the HTTP code of the client writes the start of the HTTP/2 connection. Two programs on one TLS library can have different HTTP code. Thus their settings, their WINDOW_UPDATE value, or their pseudo-header order can differ, and the strings differ.

  3. Explain why an application behind a proxy that normalizes requests cannot check the header order of the client.

    sample answer

    The proxy ends the connection of the client and sends a new request to the server behind it, with its own header order. Thus the application sees the order of the proxy, not the order of the client. A framework that gives the headers as a map also loses the order.

  4. A request states a browser user agent. The client uses HTTP/1.1 and sends no SETTINGS values. What does a defender read from this?

    1. The user agent and the transport do not agree. This is an automation artifact of a plain HTTP client.
    2. The browser uses an old pseudo-header order.
    3. The edge removed the SETTINGS values.
    answer

    a. The user agent and the transport do not agree. This is an automation artifact of a plain HTTP client.

    A browser that connects to an HTTP/2 server sends its own HTTP/2 preface. A request with a browser user agent and no SETTINGS values shows a client with different HTTP code.

  5. Where must a defender read the Akamai HTTP/2 string?

    1. In a page script, after the page loads
    2. In the application, from the map of the headers
    3. At the edge, or at the first server that ends the connection
    answer

    c. At the edge, or at the first server that ends the connection

    Only the server that reads the connection from the wire has the preface values in their order. A page script and an application behind a proxy do not have them.

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. In client B, put the two SETTINGS parameters in the opposite order.
  3. Run the code with Node and the flag --experimental-strip-types.
  4. Record the HTTP/2 string of client B.
  5. Write if code that sorts the settings can still separate this new client B from the old client B.
sample answer

The answer uses the synthetic clients of the code example.

The new string of client B starts with 4:65535;3:100, and the rest of the string stays the same. The order of the settings is a part of the string. Thus the new client B and the old client B give two different strings. Code that sorts the settings gives one string for both, so it cannot separate them.

sources

  1. RFC 9113: HTTP/2, RFC Editor, standard, read 2026-11-20
  2. Passive Fingerprinting of HTTP/2 Clients, white paper, Akamai (Black Hat Europe 2017), paper, read 2026-11-12
  3. Passive Fingerprinting of HTTP/2 Clients, talk record, InfoCon DB, article, read 2026-11-20
  4. JA4H technical details (partial), FoxIO, documentation, read 2026-11-20
  5. JA4+ repository and licence section, FoxIO, source code, read 2026-11-20
  6. My model of where a server can read the HTTP/2 string and the header order, 2026-11 (not public).
  7. Benchmark platform, design (my test system): no live capture of the HTTP/2 preface and no JA4H value, 2026-11 (not public).