Encrypted Client Hello (ECH)

term

cryptographyprivacynetworking

Kept in this browser · My desk

A TLS extension, standardized in RFC 9849 in March 2026, that encrypts the client's first handshake message, so that the name of the site being visited no longer travels in the clear.

In TLS 1.3 almost all of the handshake is encrypted, but the Server Name Indication (SNI), the field in which a browser names the site it wants on a shared server, still went out in the clear. ECH closes that gap: the client fetches the server's public key from the DNS, sends an outer ClientHello with innocuous values and puts the real ClientHello, with the real server name, inside it, encrypted. An observer still sees which provider the client connects to, the addresses and, unless the DNS is encrypted too, the name queried. ECH is on by default in Chrome and Firefox, and in early 2025 Cloudflare was the only major provider serving it.

What it is. The Internet Engineering Task Force (IETF) published Request for Comments (RFC) 9849, TLS Encrypted Client Hello, by Eric Rescorla, Kazuho Oku, Nick Sullivan and Christopher A. Wood, on the Standards Track in March 2026. Encrypted Client Hello (ECH) is an extension of Transport Layer Security (TLS) 1.3 that encrypts the client's first handshake message under a public key of the server. The RFC calls the plaintext Server Name Indication (SNI) perhaps the most sensitive information left unencrypted in TLS 1.3, and ECH also protects other fields, such as the list of application protocols.

Two ClientHellos. The client builds a private ClientHelloInner, carrying the real server name, and a public ClientHelloOuter with innocuous values, and sends the inner one encrypted inside the encrypted_client_hello extension (code point 0xfe0d) of the outer one. That extension carries the cipher suite, a one-byte config_id naming the server key, the encapsulated key and the ciphertext; the inner hello also carries the extension, empty, because a server may not answer with an extension the client did not offer. The encoded inner hello is padded up to a multiple of 32 bytes so that its length does not betray the name, and an ech_outer_extensions extension lets it reuse extensions already present in the outer hello. The RFC names two roles: the client-facing server, which holds the ECH key and decrypts, and the backend server, which completes the handshake for the real name. In shared mode one provider plays both; in split mode they are physically separate, which lets a content delivery network front for many origins.

The key and the DNS. ECH uses Hybrid Public Key Encryption (HPKE). A server's ECHConfig (version 0xfe0d) holds the config_id, the identifier of the key encapsulation mechanism, the public key, the pairs of key derivation function and authenticated encryption algorithms it accepts, maximum_name_length (the longest backend name, used for padding, zero if unknown), public_name (the name of the client-facing server, which goes into the outer SNI) and extensions. Configurations are advertised in the Domain Name System (DNS) in SVCB (Service Binding) and HTTPS (Hypertext Transfer Protocol Secure) records: RFC 9460, by Ben Schwartz, Mike Bishop and Erik Nygren, created these resource record types 64 and 65 in November 2023 and reserved parameter key 5, ech, for ECH keys. Cloudflare uses cloudflare-ech.com as the shared public name of every ECH site it serves and has ECH enabled by default on its Free zones.

Acceptance and retry. If the client-facing server decrypts the inner hello, it signals acceptance through a confirmation value in the last 8 bytes of ServerHello.random. If it cannot, because the key is stale or the extension was a decoy, it completes the handshake with the outer hello, authenticated for the public name, and may return fresh retry_configs; the client then aborts with an ech_required alert and retries on a new connection. A failed handshake must never be treated as a secure signal to disable ECH.

From ESNI to ECH. When work on TLS 1.3 began in 2014, after the Snowden disclosures, one of its aims was to encrypt as much of the handshake as possible; RFC 8446 of August 2018 encrypts every handshake message after the ServerHello and removed static RSA (Rivest-Shamir-Adleman) and Diffie-Hellman cipher suites, but still left the server name in the clear. Cloudflare and Firefox deployed a first version, Encrypted Server Name Indication (ESNI), on an opt-in basis in 2018, with the key published in the DNS and fetched over DNS over HTTPS (DoH). Mozilla's Kevin Jacobs explained on 7 January 2021 why Firefox 85 replaced it with ECH: ESNI encrypted only the SNI, so a pre-shared key extension at session resumption could still carry the name in cleartext, it published keys in TXT records, and it could fail after receiving stale keys from the DNS, which ECH's retry mechanism cures. Cloudflare had described ECH as encrypting the whole ClientHello on 8 December 2020. Chrome enabled ECH by default in version 117 on desktop and Android, with an enterprise policy, EncryptedClientHelloEnabled, to turn it off.

Deployment measured. Niklas Niere, Felix Lange, Nico Heitmann and Juraj Somorovsky of Paderborn University, at Free and Open Communications on the Internet (FOCI) 2025, found ECH and its decoy form, GREASE (Generate Random Extensions And Sustain Extensibility) ECH, enabled by default in Chrome and Firefox: because both browsers send an ECH extension in every ClientHello, a censor cannot block every connection that carries one without blocking all their traffic. On the server side Cloudflare was the only major provider: among the top million sites of the Tranco list of 16 February 2025, 278,040 servers, 43% of the TLS 1.3 servers, completed a handshake with Cloudflare's ECH configuration.

What it does not hide. Observers can still tell that a client is talking to a particular provider, though not which of its sites; the target domain may leak through plaintext DNS queries or visible server addresses; and whatever the client places in the outer ClientHello is visible, so it should carry nothing sensitive.

Censors. On 30 July 2020 iYouPort reported that China's Great Firewall was blocking connections with the ESNI extension; each block then extended to all traffic between the same addresses and port for 120 or 180 seconds. In November 2024 Russia's regulator, Roskomnadzor, began blocking sites that used ECH, stating that its use violates Russian legislation; the Paderborn study found Russia's TSPU devices (technical means of countering threats) blocking ECH to Cloudflare's address ranges, and indirect blocking in China and Iran through the blocking of encrypted DNS.

Managed networks. RFC 9849 notes that an organization may disable ECH entirely by group policy, or intercept and decrypt its clients' connections, without endorsing either; a TLS-terminating proxy that does not know ECH answers as the outer server name, and one that is not authoritative for the public name cannot forge a signal to disable ECH. Fortinet documents that FortiGate certificate inspection, which filters web categories on the SNI, can be broken by ECH, that deep inspection always strips the ECH extension, and that an administrator can block ECH hellos (the encrypted-client-hello setting, with a list of outer SNIs) or remove the ECH parameter from DNS answers (strip-ech). Palo Alto Networks recommends blocking the SVCB, HTTPS and ANY record types used to carry ECH keys. Cloudflare adds that a resolver can drop ECH configurations or answer the use-application-dns.net canary to stop Firefox using ECH, at the risk of breaking validation by DNS Security Extensions (DNSSEC).

Neighbours. SNI, TLS, DNS over HTTPS, SSL (Secure Sockets Layer) inspection, JA4 fingerprints (the outer hello can still be fingerprinted) and encrypted traffic analysis.

Also known as: ech, tls ech, encrypted clienthello, esni, encrypted server name indication, encrypted sni, clienthello cifrado

Sources

← Back to E Back to the glossary