logo
episode-header-image
Feb 2021
29m 7s

Can China Block the New Encrypted Client...

Hussein Nasser

About this episode

In this video, I will discuss the new TLS extension Encrypted Client Hello which is a new mechanism to encrypt the entire client hello, very interesting and elegantly design but I have my few reservations and criticisms. Let us discuss.

Intro 0:00

Classic TLS with SNI 7:00

ESNI 9:30

ECH 12:30

Limitations and Problems 21:00

Let's say the backend server hosts example.com with the cert of example.com and let us call this the “real” SNI. To support ECH, the same server should also host a client facing cert, lets call it server-ech.com with corresponding server-ech.com cert. So your server IP address is hosting two domains. example.com and ( server-ech.com just to support ech)

So when you perform an oDoH/DoH query looking for example.com you will get back the IP address of example.com, (which is the same ip address as server-ech.com), you will also get the ephemeral public key of example.com from the HTTPSSVC DNS record. This will be used to encrypt the inner client hello, and finally, you will get a record of the front-facing server domain name which is server-ech.com.

The client prepares the TLS ECH, it builds the outer client hello with the SNI value as server-ech.com, and the inner client hello with the real SNI (example.com) along side ALPN and other stuff..

It then uses the public key of example.com retrieved from the HTTPS DNS record to encrypt the inner client hello. The client sends the ECH.

Server receives the ECH, and attempts to decrypt the inner client hello with the corresponding ephemeral private key, if it succeeds it then completes the server hello and key exchange as normal.

if it fails to decrypt the inner client hello with its own private key that means the public key used, was stale, outdated, bad etc.. . The client then uses the outer client hello and it checks, do I have server-ech.com, yes I do have a cert for that, let me just finish the key exchange and server hello with that instead, and btw, here is my REAL public key for example.com so you can use it for future ECHs. the public key is going to be encrypted for sure (that was something not clear in the article) because its TLS 1.3 and things are immediately encrypted from the server. The client then finishes the handshake and finds out the public key and immediately terminate the connection and re-establishes it with brand new encrypted inner client hello that uses the new server public key which we know this time its going to work ..

I can image getting into an infinite loop if the server accidentally gave a wrong public key. also some cons of ECH comes to mind is the larger client hello + the additional backend management to host that client facing server and cert. Also another question, what If I’m hosting 100 domains on my single IP address, do I get a single ephmeral public key for ECH? or is it per domain? and how does my server know what private key to use to decrypt, does it just try them one by one? or is there an indication to which public key was used to encrypt the inner client hello.. (I’m guessing there is )

https://blog.cloudflare.com/encrypted-client-hello/

Up next

Oct 22
Developers will be prompters (and that is bad)
I discuss the state of what will be happening in the coming few years and why I encourage the 3 of you who want to be elite engineers to keep their critical thinking sharp. To pause and think before prompting. 
9m 26s
Oct 15
AI will not replace elite engineers
This is a conversation with Rashed Hasan, a PhD Candidate from the University of Nebraska. We chatted about databases, ORMs and how to use AI without losing yourself. Rashed pagehttps://www.mdrashedulhasan.me/homepage 
56m 28s

Recommended Episodes

Aug 2024
D2DO249: The Anatomy of TLS 1.3 and Why You Should Risk It
Transport Layer Security (TLS) is today’s topic with guest Ed Harmoush. TLS plays a critical role in Internet security, and we dive into the differences between versions 1.2 and 1.3 In addition, Ed shares his journey into TLS, explains its components, and addresses common misconc ... 
36m 20s
Sep 2020
Episode 1: Post-Quantum TLS With KEMs Instead of Signatures!
TLS 1.3 has been widely praised as a major upgrade to the Transport Layer Security protocol responsible for securing the majority of Web traffic. But one area in which TLS 1.3 seems to be lacking is its potential for resistance to attacks that utilize quantum computing – computer ... 
35m 43s
Jul 2024
798: Self Hosting: Reverse Proxy Servers
Scott and Wes serve up an episode on reverse proxy servers. They discuss popular options like CF Tunnels, Caddy, Nginx, Apache, and more, explaining why you might need one for load balancing, SSL certificates, security, and managing multiple servers. Show Notes 00:00 Welcome t ... 
17m 7s
Feb 2024
726: Is HTMX a Joke?
Scott and Wes unravel the mysteries of HTMX, exploring the essentials for getting started, its powerful capabilities, limitations, and possible stacks for building primarily server rendered applications. Show Notes 00:00 Welcome 02:07 Brought to you by Sentry.io 02:53 Wha ... 
32m 14s
Aug 2021
SLP297 Ergo - Chain Surveil Yourself!
<p>Have you wondered about Bitcoin privacy or chain surveillance and how it’s done? Or how to defend against it? This is the episode for you, as Ergo of OXT Research (Part of Samourai Wallet) rejoins me on the show to talk:</p> <ul> <li>Background on bitcoin transactions</li> < ... 
1h 17m
Sep 2022
The math problem that could break the internet
Today's internet is built on a series of locks and keys that protect your private information as it travels through cyberspace. But could all these locks be broken? For more, go to http://vox.com/unexplainable It’s a great place to view show transcripts and read more about the to ... 
37m 49s
Oct 2019
Defending against future tech
It’s becoming incredibly easy to purchase commercial hacking tools as new technology becomes available, so how do we defend ourselves against this? Brand Ambassador for CTRL Group and reformed Hacker Bastien Treptel invites Srini Raghuram, the Director of Security Engineering fro ... 
27m 26s
Jan 2024
The math problem that could break the internet
Today's internet is built on a series of locks and keys that protect your private information as it travels through cyberspace. But could all these locks be broken? (Updated from 2022) For more, go to http://vox.com/unexplainable It’s a great place to view show transcripts and re ... 
38m 33s
Feb 2024
576: Quiet Little Leech
Pre-show: Marco is many things, but patient is… not one of them. Blackbox Crouton Joanna Stern’s video Television (App Store link) ForeFlight Voyager Flight Control Follow-up: Vision Pro demand Clarification about Apple’s new iMessage encryption Extracting data from iCloud (via J ... 
1h 59m