Spot Fake Chrome JA4 & HTTP/2 Fingerprints
In this article
Fake Chrome JA4 and HTTP/2 fingerprints are used by bots and scrapers to mimic real Chrome traffic, bypassing bot detection. Spotting them requires comparing the fingerprint against known Chrome patterns, checking for inconsistencies, and validating the TLS handshake and HTTP/2 settings. This guide walks you through the exact steps to identify fakes, using tools like Wireshark, tshark, and custom scripts.
What You'll Need
- A packet capture (PCAP) file of the traffic you want to inspect, or a live network interface to capture from.
- Wireshark (or tshark) installed – it parses TLS and HTTP/2 fields.
- Basic command-line familiarity.
- Optional: a reference list of real Chrome JA3/JA4 hashes (e.g., from known open-source databases) for comparison.
Step-by-Step
- Capture the traffic. If you have a PCAP, load it in Wireshark. For live capture, use `tshark -i eth0 -f "tcp port 443" -w capture.pcap` (replace interface and filter as needed).
- Isolate the TLS ClientHello. In Wireshark, apply a display filter: `tls.handshake.type == 1`. This shows only ClientHello messages. If you have many, sort by source IP or time to find the one you want.
- Extract the JA4 fingerprint. JA4 is derived from the ClientHello’s TLS version, cipher suites, extensions, and signature algorithms. Use tshark to compute it: `tshark -r capture.pcap -Y "tls.handshake.type == 1" -T fields -e tls.handshake.ja4` (if your tshark supports it). Alternatively, use a script like ja4-py or ja4-tshark. If you don’t have a tool, manually note the fields: TLS version (e.g., 0x0303 for TLS 1.2), cipher suites (in order), extensions (in order), and signature algorithms.
- Compare against known Chrome JA4. Real Chrome versions have specific JA4 hashes. For example, Chrome 120+ typically has JA4 that starts with "t13d" or "t12d" (depending on TLS version). Look up the exact hash for the Chrome version you expect. If the hash differs significantly (e.g., different cipher suite order, missing extensions), it’s likely fake.
- Inspect the HTTP/2 settings. After the TLS handshake, the client sends an HTTP/2 preface and SETTINGS frame. In Wireshark, filter `http2` and look for the SETTINGS frame. Real Chrome sends a specific order of settings: typically HEADER_TABLE_SIZE (0x1), ENABLE_PUSH (0x2), MAX_CONCURRENT_STREAMS (0x3), INITIAL_WINDOW_SIZE (0x4), MAX_FRAME_SIZE (0x5), MAX_HEADER_LIST_SIZE (0x6). The values are also consistent: e.g., INITIAL_WINDOW_SIZE is often 6291456 (6 MB) in Chrome, MAX_FRAME_SIZE is 16384, MAX_HEADER_LIST_SIZE is 262144. If the order or values deviate, it’s suspicious.
- Check the HTTP/2 pseudo-header order. In the first request, Chrome sends pseudo-headers in a fixed order: `:method`, `:path`, `:scheme`, `:authority`. If a client sends them in a different order (e.g., `:authority` before `:method`), that’s a red flag.
- Look for TLS extension inconsistencies. Chrome always includes certain extensions: SNI (server_name), ALPN (application_layer_protocol_negotiation), supported_groups, ec_point_formats, signature_algorithms, and status_request. If any of these are missing or in an unusual order, it’s likely fake. Also, Chrome’s ALPN list is always "h2, http/1.1" – if you see only "h2" or a different order, it’s not Chrome.
- Check the TLS version and cipher preference. Chrome 120+ prefers TLS 1.3 with specific cipher suites: TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384, TLS_CHACHA20_POLY1305_SHA256 (in that order). For TLS 1.2, Chrome uses a specific list. If the cipher suite order is different, it’s not real Chrome.
- Cross-validate with JA3. While JA4 is newer, JA3 is still useful. Compute JA3 from the ClientHello and compare with known Chrome JA3 hashes. A mismatch in JA3 but a match in JA4 (or vice versa) suggests a spoofed fingerprint.
- Look for timing or behavioral anomalies. If the fingerprint looks perfect but the client behaves oddly (e.g., no cookies, no user-agent, or requests in a non-human pattern), it’s likely a bot using a copied fingerprint.
Common Mistakes
- Assuming all Chrome versions have the same fingerprint. Chrome updates change cipher suites and extensions, so always compare against the exact version you expect.
- Ignoring the order of extensions. Order matters in JA4 and JA3; a different order changes the hash.
- Only checking JA4 and not the HTTP/2 settings. Many fakes copy the TLS fingerprint but miss HTTP/2 details.
- Using a single point of comparison. A fake might pass one check but fail another.
- Not accounting for proxies or middleboxes that alter the TLS fingerprint. If traffic goes through a corporate proxy, it may not match Chrome exactly.
Tips
- Use a script to automate fingerprint extraction and comparison – it’s faster and less error-prone.
- Keep a reference list of real Chrome fingerprints for multiple versions (e.g., 110, 120, 130). Update it regularly.
- Look at the entire TLS handshake, not just ClientHello. ServerHello and certificate messages can reveal inconsistencies.
- If you’re building a detection system, combine fingerprint checks with behavioral analysis (e.g., mouse movements, request timing).
- Test your detection against a real Chrome browser to ensure you don’t false-positive.
Troubleshooting
- No JA4 field in tshark: Your tshark version may be too old. Update to the latest version or use a standalone JA4 calculator script.
- Fingerprint matches but you suspect a fake: Check the HTTP/2 settings more deeply. Also, look at the TLS session tickets – Chrome sends a session ticket extension in ClientHello, but fakes often omit it.
- Traffic is encrypted and you can’t see HTTP/2: You need to decrypt TLS. In Wireshark, set the SSL key log file (if you have the private key) or use a TLS man-in-the-middle proxy (if you control the client).
- Multiple ClientHellos from the same IP: Some browsers retry with different fingerprints (e.g., after a downgrade). Check the source port and timing – a single session usually has one ClientHello.
- Your reference list is outdated: Chrome changes fingerprints frequently. Use a live source or update your list monthly.
Frequently Asked Questions
What is JA4 fingerprinting?
JA4 is a TLS fingerprinting method that hashes the ClientHello’s TLS version, cipher suites, extensions, and signature algorithms into a short string. It’s used to identify the client software (e.g., Chrome, Firefox, curl) without relying on the User-Agent.
How is HTTP/2 fingerprinting different from JA4?
HTTP/2 fingerprinting looks at the SETTINGS frame and pseudo-header order, which are sent after the TLS handshake. JA4 only covers the TLS layer, so combining both gives a more accurate picture.
Can a fake fingerprint be perfect?
In theory, yes, if the bot copies every detail correctly. But in practice, fakes often miss subtle orderings or values, and behavioral analysis can still catch them.
Do all Chrome versions have the same JA4?
No. Chrome updates change cipher suites, extensions, and their order. For example, Chrome 120 and 130 have different JA4 hashes.
What tools can I use to compute JA4?
Wireshark (recent versions) has a built-in JA4 field. There are also open-source scripts like ja4-py, ja4-tshark, and ja4-haproxy. For HTTP/2, you can use Wireshark’s built-in parser or custom scripts.
Is it possible to block fake Chrome fingerprints?
Yes, but it’s an arms race. You can block known fake fingerprints, but sophisticated bots will adapt. Combining fingerprint checks with behavioral detection is more effective.