Skip to content
iplogs.comSign up

JA3 and JA4 Fingerprinting Explained: How TLS Reveals Your VPN Client

By Mehmood Ali · · updated · 13 min read

JA3 and JA4 hash the TLS ClientHello to identify the client library. How each is computed, and why OpenVPN looks nothing like Chrome or Firefox.

How a JA3 fingerprint is built

  1. The client sends a ClientHello

    The first message of a TLS connection.

  2. Pick out the client-specific fields

    TLS version, cipher suites, extensions, curves and point formats, in the order sent.

  3. Join them into one string

    Fields separated by commas, values by hyphens.

  4. Hash it with MD5

    A 32-character fingerprint. Clients on the same library and settings match.

JA4 keeps a short readable hash and sorts the cipher list, so reordering no longer changes it.

JA3 and JA4 identify a TLS client by hashing the first message it sends, the ClientHello. JA3 joins fields such as the TLS version, cipher suites, extensions, curves and point formats, then takes an MD5 hash, giving a 32-character fingerprint. Clients built on the same library and settings produce the same JA3, and different libraries produce different ones even when they negotiate the same connection. JA4 keeps a short, readable hash, labels TCP and QUIC separately and sorts the cipher list, so shuffling the order no longer changes the fingerprint. VPN clients often have distinctive fingerprints because they ship their own TLS stack, so a fingerprint that disagrees with the browser a visitor claims to use is a useful signal. It has limits, since a client built to imitate a browser can copy its fingerprint, so treat one as evidence rather than proof. Detection results are on iplogs.com.

JA3 and JA4 fingerprint a TLS client by hashing its ClientHello, and they turn up all over network security. Censorship systems block with them, CDNs use them to spot bots, and VPN-detection services such as IPLogs use them to classify connections. This post covers what goes into each hash, how to compute one, and why they identify VPN clients more reliably than you might expect.

What JA3 captures

A TLS ClientHello carries a lot of state that is specific to the client:

  • TLS version (e.g. 0x0303 for TLS 1.2)
  • Cipher suites in a specific order
  • TLS extensions in a specific order
  • Named elliptic curves (supported groups)
  • Elliptic-curve point formats

JA3 joins those fields with hyphens and commas and takes the MD5 of the result, a 32-character hexadecimal fingerprint. TLS clients built from the same library and configuration produce the same JA3, and clients built on different libraries produce different ones even when they end up negotiating the same connection.

JA3 is a one-way hash of the cipher suite order, extension order, and curve preferences. It is small, fast to compute, and difficult to forge without deeply modifying the TLS client.

Computing a JA3

Here is the JA3 string for Firefox 119 on macOS:

771,4865-4867-4866-49195-49199-52393-52392-49196-49200,0-23-65281-10-11-35-16-5-34-51-43-13-45-28-21,29-23-24-25-256-257,0

The JA3 hash is the MD5 of that string. There are JA3 libraries for Go (dreadl0ck/ja3), Rust (s0cks/rust-ja3) and Python (salesforce/ja3), and Zeek supports it too. IPLogs uses the dreadl0ck Go implementation internally, and it runs about 29× faster than the Python reference.

What JA4 changes

FoxIO introduced JA4 in 2023 to fix three of JA3's weaknesses. First, it drops MD5: JA4 keeps the first 12 characters of a truncated hash, which is easier to read and allows partial matching. Second, it has separate TCP and QUIC variants. A protocol prefix (t for TCP, q for QUIC) tells a client's TLS-over-TCP fingerprint apart from its TLS-over-QUIC one without recomputing anything.

Third, JA4 sorts the cipher-suite list before hashing, so small differences in ordering no longer change the hash. That helps against naive evasion that only shuffles the order.

Why VPN clients have distinctive fingerprints

Every major commercial VPN client is built on one of a handful of TLS libraries, and each library produces only a narrow range of JA3/JA4 values. Some examples we have seen in IPLogs production:

  • OpenVPN over TCP/443 with TLS-crypt produces a JA3 hash unlike any browser's. The cipher order is wrong, there is no ALPN, and in some configurations the ClientHello has no server_name.
  • WireGuard wrapped in stunnel produces stunnel's OpenSSL JA3, a fingerprint that is well known across the industry.
  • REALITY-based proxies (Xray, sing-box) are built to imitate a browser JA3 but don't quite manage it. SNI fuzzing reliably triggers their cert-switch behavior, and that switch is a signal in itself.

How IPLogs uses JA3/JA4

When a browser connects to iplogs.com, our TLS edge records its ClientHello and computes a JA3 and a JA4 before the request reaches the detection engine. The engine compares them with fingerprints of known VPN and circumvention clients. A match raises the ja3_vpn_client signal, weighted up to 0.35 depending on how confident the match is: not a verdict on its own, but enough to move one when another signal agrees.

Limitations

JA3 and JA4 only tell you which TLS library built the ClientHello. An operator who wants to avoid fingerprinting can rearrange their TLS library's ClientHello fields to match a popular browser, which is what Xray/REALITY sets out to do (our post on Xray/REALITY and AmneziaWG goes into how). Done precisely, it works. Most implementations, though, leave small artifacts in the extension order or the server_name field that active probing can still pick up.

Try it

Open the home-page checker on the device you want to test. The fingerprint comes from your own connection, so a lookup of someone else's IP can't show one; for servers, active probing does that job instead. The API docs list the exact signal names.

References

  • Althouse, Atkinson, Atkins, "JA3 — A method for profiling SSL/TLS clients", Salesforce Engineering 2017.
  • FoxIO, "JA4 — Network fingerprinting standard", 2023.
  • dreadl0ck/ja3 (Go implementation used in IPLogs), github.com/dreadl0ck/ja3.