Encrypted DNS Doesn't Equal Privacy
Transcript
Machine-transcribed by YouTube. Expect errors in names, commands and version numbers.
Did you know that even if you use encrypted DNS, your traffic can still be sniffed, as in an ISP [snorts] or other people can log the websites that you are going to? In this blog article from InfoBlocks, they tell us that ECH has an impact on content filtering because it encrypts the client hoss between your client and your server. Let's actually show this practically. What I've got in this example is a network of two PCs and they are connected to a network tap. So all traffic that's sent from PC1 to the internet is going to be copied to PC2 where we can capture the traffic using Wireshark and see what's actually happening. So what I'll do on PC2, our capturing device is run Wireshark and I'll capture traffic. If I go to PC1 and
open up Firefox and I'll go to the settings here and show you that I've set privacy and security to use DNS over HTTPS and use the max protection and I've connected this to say Cloudflare. So in other words, I'm not using my local DNS server. I'm using Cloudflare and that may in theory hide what's happening on the network. If I go to invidia.com as an example, so well-known websites and search for DNS, you'll notice that that is not shown. So in other words, if I try and find Nvidia in the output here, I don't see that. But if I just search for all traffic and search for Nvidia, I can see the client hello message sent to invidia.com. Now back on
infoblocks website even if you're using encrypted DNS when a client connects to a service the client hello is unencrypted the SNI information is unencrypted the certificate is sent from the server unencrypted client response is unencrypted and then we move to an encrypted session but if we use DNS over TLS and ECH is supported notice the client hello is encrypted everything is encrypted in this flow now from our point of view at home this may be really good because it means that our traffic is encrypted and an ISP or other party can't see where we're sending traffic. But in a lot of companies, DNS filtering is used and often uses this SNI field to
restrict where people go. In other words, you're going to use this to stop people in your organization going to fishing or malware websites. So transparent proxies are often combined with DNS filtering to safeguard users from malicious content. However, they require unencrypted SNI to check the domain information. So, be aware that ECH does exist to encrypt the initial sessions, but it doesn't always work. Have a look at my full video where I go through this in a lot of detail, showing you some of the myths about encrypted DNS and showing you how your traffic can still be sniffed even if you're using encrypted DNS because of this SNI





