Class BrowserProfiles

java.lang.Object
io.github.mahmoudimus.quic.tls.BrowserProfiles

public final class BrowserProfiles extends Object
ClientHello profiles of real browsers, each checked against a capture of that browser.
  • Method Summary

    Modifier and Type
    Method
    Description
    Chrome 156 (BoringSSL) over TCP, as captured from 156.0.8078.48 on macOS: 16 cipher suites with GREASE first; 17 extensions plus two GREASE ones, shuffled per hello; X25519MLKEM768 and X25519 key shares; ML-DSA signature schemes; ALPS for h2; Brotli certificate compression; Trust Anchor IDs; and a GREASE ECH.
    Chrome 156's ClientHello in QUIC (RFC 9001), as captured from 156.0.8078.48 on macOS over HTTP/3.
    Firefox 159 (NSS) over TCP, as captured from 159.0 on macOS: 15 cipher suites, ChaCha20 before AES-256 among the TLS 1.3 ones; 17 extensions in a fixed order and no GREASE; X25519MLKEM768, X25519 and P-256 key shares; delegated_credentials, record_size_limit 16385, and zlib, Brotli and zstd certificate compression; and a GREASE ECH sized as NSS sizes it (ProfileExtensions.nssGreaseEch()).
    Firefox 159's ClientHello in QUIC (neqo over NSS), as captured from 159.0 on macOS over HTTP/3: TLS 1.3 alone, its three suites with ChaCha20 before AES-256; no session id, no session_ticket or ec_point_formats; the TCP hello's groups, key shares, delegated credentials and record size limit; its signature schemes and certificate compression algorithms in another order; shuffled per hello, except the connection's quic_transport_parameters and the GREASE ECH, which stay last.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • chrome156

      public static ClientHelloProfile chrome156()
      Chrome 156 (BoringSSL) over TCP, as captured from 156.0.8078.48 on macOS: 16 cipher suites with GREASE first; 17 extensions plus two GREASE ones, shuffled per hello; X25519MLKEM768 and X25519 key shares; ML-DSA signature schemes; ALPS for h2; Brotli certificate compression; Trust Anchor IDs; and a GREASE ECH. The extension list is in uTLS's HelloChrome_155 order, which only matters as the order shuffling starts from.

      The key shares need public keys for 0x11ec (1216 bytes) and 0x001d (32 bytes) in the HelloContext.

      Returns:
      the profile
    • chrome156Quic

      public static ClientHelloProfile chrome156Quic()
      Chrome 156's ClientHello in QUIC (RFC 9001), as captured from 156.0.8078.48 on macOS over HTTP/3. Unlike its TCP hello it has no GREASE at all; no extended_master_secret, renegotiation_info, ec_point_formats, session_ticket, status_request or signed_certificate_timestamp; TLS 1.3 suites only; an empty legacy_session_id; rsa_pkcs1_sha1 but no ML-DSA among its signature schemes; ALPS for its protocol (h3); and the connection's quic_transport_parameters. Its 12 extensions are shuffled per hello. With SNI and ALPN h3 its JA4 is q13d0312h3_55b375c5d22e_178839b6cec1.

      The key shares need public keys for 0x11ec and 0x001d, and the transport parameters come from HelloContext.supplied() under ProfileExtensions.QUIC_TRANSPORT_PARAMETERS.

      Returns:
      the profile
    • firefox159

      public static ClientHelloProfile firefox159()
      Firefox 159 (NSS) over TCP, as captured from 159.0 on macOS: 15 cipher suites, ChaCha20 before AES-256 among the TLS 1.3 ones; 17 extensions in a fixed order and no GREASE; X25519MLKEM768, X25519 and P-256 key shares; delegated_credentials, record_size_limit 16385, and zlib, Brotli and zstd certificate compression; and a GREASE ECH sized as NSS sizes it (ProfileExtensions.nssGreaseEch()). A hello that resumes a session leaves out session_ticket.

      The key shares need public keys for 0x11ec (1216 bytes), 0x001d (32 bytes) and 0x0017 (65 bytes) in the HelloContext.

      Returns:
      the profile
    • firefox159Quic

      public static ClientHelloProfile firefox159Quic()
      Firefox 159's ClientHello in QUIC (neqo over NSS), as captured from 159.0 on macOS over HTTP/3: TLS 1.3 alone, its three suites with ChaCha20 before AES-256; no session id, no session_ticket or ec_point_formats; the TCP hello's groups, key shares, delegated credentials and record size limit; its signature schemes and certificate compression algorithms in another order; shuffled per hello, except the connection's quic_transport_parameters and the GREASE ECH, which stay last. With SNI and ALPN h3 its JA4 is q13d0315h3_55b375c5d22e_dc5437974b47.

      The key shares need public keys for 0x11ec, 0x001d and 0x0017, and the transport parameters come from HelloContext.supplied() under ProfileExtensions.QUIC_TRANSPORT_PARAMETERS.

      Returns:
      the profile