What this lab is for
When your browser opens an HTTPS connection, its first message, the ClientHello, is sent before any encryption is set up. It usually names the site you want in the server_name (SNI) field, so anyone on the network path can read it: your ISP, the café Wi-Fi, a corporate proxy.
Encrypted Client Hello (ECH) moves the real name into an encrypted inner hello and leaves only a cover name outside. This lab captures the ClientHello your browser actually sent, byte by byte, and shows whether that happened.
The three lab hosts
The lab answers on three names, the same ones Compare handshakes tests. Each one exists to produce a different result:
| Host | Role | Result to expect |
|---|---|---|
| tls-lab.… | ECH lab host: publishes ECH keys in an HTTPS DNS record | ech_accepted with a supporting browser and secure DNS; otherwise ech_grease or sni_plaintext |
| plain.… | Plain host: no HTTPS record, no ECH keys | sni_plaintext, or ech_grease from browsers that send decoy ECH |
| ech.… | ECH public name: the cover name in the outer hello | public_name_direct |
How to use it
- Read the verdict. Your handshake captures this connection and says what an observer could read. If ECH did not happen, a box under the verdict says why and how to fix it.
- Follow the walkthrough. Three steps: what was on the wire, what the server learned, why the lab reached its verdict. Each step has a question with a short answer and a link to the specification.
- Compare at Server view. The walkthrough's second step, Server view, puts a saved accepted-ECH capture next to a saved GREASE capture. Both carry an ECH extension; only one hid the name.
- See what a censor sees. The observer table lists what is readable on the wire and what a filtering box could block with it.
- Check the bytes. Pick a field from the list to highlight its bytes, or select any hostname. The hex view starts with only the record header, SNI and ECH rows; Show all rows expands it.
- Compare hosts. Compare handshakes makes your browser connect to each lab host. With ECH working, only the lab host shows
ech_accepted. - Keep a copy. Download JSON saves the capture without your IP address.
What each part shows
- Verdict
- One classification of this capture, with caveats such as session resumption.
- Why no ECH?
- Shown when your browser did not use ECH: the likely cause, the browser setting to change, and a saved accepted capture to look at meanwhile.
- Walkthrough
- The same capture in protocol order, with a question at each step.
- Server view
- The walkthrough's second step: which name the server used. It also compares a saved accepted-ECH capture with a saved GREASE capture.
- Connection
- Negotiated TLS version, cipher suite, key exchange, both server names and the ECH result.
- What a censor sees
- The destination IP, the SNI or cover name, the ECH extension, DNS and traffic size, each with what a filter could do with it.
- ClientHello, byte by byte
- The raw first hello as a field list and a hex dump. Red bytes are the name anyone can read; green bytes are the encrypted ECH payload.
- Outer vs inner hello
- With accepted ECH, the visible hello next to the decrypted one, field by field.
- Possibly related ECH rejections
- Recent rejected ECH attempts from your IP address, for example after a key rotation (see retry_configs below).
Where ECH keys come from
A browser can only encrypt the inner hello if it already has the server's public key. It gets that key from DNS, before connecting:
ech parameter holds one or more ECHConfigs. Over plain DNS, anyone on the path can read the lookup and even strip the record.- HTTPS / SVCB record
- A DNS record type (RFC 9460 ↗) that tells clients how to connect to a site: supported protocols, alternative ports, and, with the
echparameter, ECH keys. - ECHConfig
- One published ECH key with its metadata. A record can hold several, for example the current and the next key during a rotation.
- config_id
- A one-byte label for the key. The browser copies it, unencrypted, into the outer hello so the server knows which private key to try. The Connection table shows it, and says whether it is one of ours.
- Public key
- An HPKE key (RFC 9180 ↗). The browser encrypts the inner hello to it; only the server holding the private key can decrypt.
- public_name
- The cover name the browser puts in the outer SNI. The server must hold a certificate for it, so it can still finish a handshake when decryption fails.
Most browsers only fetch HTTPS records over secure DNS (DNS over HTTPS), so with secure DNS off you usually get no ECH at all. That is the most common reason this lab shows GREASE or plaintext. To turn it on, see Getting ECH in your browser; the lab page shows the same steps when your capture has no ECH.
retry_configs: when the key does not match
Keys change. If a browser uses an old ECHConfig, perhaps from a cached DNS answer after the lab rotated its key, the server cannot decrypt the inner hello. It does not fail outright: it finishes the handshake as the public_name, using the outer hello, and sends its current ECHConfigs in a retry_configs field inside the encrypted part of the handshake. The browser checks the certificate for the public_name, closes the connection without sending any request, and reconnects with the fresh key (RFC 9849 §6.1.6 ↗).
That first connection never reaches the page, so the lab remembers it briefly and shows it under Possibly related ECH rejections on the retry. The verdict is then ech_rejected_then_retried.
Why GREASE exists
Browsers without an ECH key for a site often send a fake ECH extension filled with random bytes. This is GREASE (RFC 8701 ↗, applied to ECH in RFC 9849 §6.2 ↗). It has two jobs:
- Keep the path open. If firewalls and middleboxes see the ECH extension in ordinary traffic every day, they cannot treat it as unusual and break or drop it. Without GREASE, the first real ECH connections would be the ones that fail.
- Hide the real ones. Real ECH and GREASE look alike on the wire: similar size, random-looking payload, a config_id. An observer cannot easily tell who actually used ECH.
GREASE hides nothing by itself: the real name is still in the outer SNI. Its config_id is random too, so if it happens to match one of the lab's key IDs, that match means nothing.
What still leaks with ECH
- The destination IP address. Every packet carries it. If an address serves only one site, as this lab's does, the IP alone names the site.
- DNS, if it is not encrypted. A plain DNS lookup shows the real name before any TLS starts.
- The cover name. The outer SNI says which operator you are talking to. It hides the real site only among the sites sharing that name.
- Traffic size and timing. Encryption hides content, not how much is sent or when. Patterns can hint at which page you load.
That is why censors that cannot read the name switch to blocking IP addresses, cover names, or the ECH extension itself. Each costs them more collateral damage when many sites share the same address and cover name. The What a censor sees table shows these items for your own capture; ECH and anonymity explains why this lab's set of sites sharing the name is about one.
A learning path
- The visible name. Without ECH, the hostname sits in clear text in the ClientHello (RFC 6066 §3 ↗).
- ECH accepted. The outer hello carries a cover name; the server decrypts the inner hello and uses the real one (RFC 9849 ↗).
- GREASE. Browsers without an ECH key for a site send a decoy extension. Its presence alone hides nothing; the Server view comparison shows why.
- Key rotation. An old key leads to a rejection, retry_configs and a second connection.
- The cover name itself. Visiting the public name directly is an ordinary connection: nothing is hidden behind it.
- Who else shares the name. ECH hides which site you visit only among the sites sharing that cover name. ECH and anonymity explains why this lab's answer is "almost none".
What the lab cannot tell you
- It cannot see your DNS. It cannot tell whether secure DNS is on, only that your browser did or did not use the lab's key.
- Rejections are matched by IP address only. Behind NAT or a VPN they may come from someone else.
- A resumed session reuses details from an earlier one, and after a HelloRetryRequest only the first hello is shown.
- Saved example captures come from the browser named in the capture list, not from you.
- An accepted ECH here proves your browser does ECH. It does not make you anonymous: see ECH and anonymity.
What the lab keeps about you
- There is no access log. Your capture is built for your request and not stored.
- Rejected ECH attempts are kept in server memory, keyed by IP address, for at most two minutes, then dropped. They are never written to disk and are shown only to the same IP address.
- Download JSON leaves out your IP address.