r/privacy • • Apr 29 '19

DNS over HTTPS is coming whether ISPs and governments like it or not

https://nakedsecurity.sophos.com/2019/04/24/dns-over-https-is-coming-whether-isps-and-governments-like-it-or-not/
546 Upvotes

81 comments sorted by

85

u/Werpogil Apr 29 '19

HTTPS isn't particularly secure when in some countries the likes of FBI/CIA just come to a particular large enough resource and politely ask for the HTTPS certificates to decrypt traffic anyway. If DNS info is transported via HTTPS, then major DNS providers will get a visit from the special services and give up the certs rending the whole thing largely useless. It's how stuff is done in Russia and judging by the fact that in some cases Russia even falls behind on totalitarian control of the internet (like in case of Australia's mandated encryption backdoor thing), I suspect it's going to be a widely adopted practice among other countries.

10

u/[deleted] Apr 29 '19

Is there no value in stopping non state snoopers? Like some ISPs use deep packet sniffing and other shady stuff to control packets. This will secure an important piece of the internet, no?

7

u/Werpogil Apr 29 '19

Sure, there is value in stopping the small fry, but the biggest damage is going to come from state agents anyway. Shady ISPs do need to just fuck off though, especially those that put ads via MitM-type attacks - there is bound to be a special cauldron for these assholes in hell.

0

u/[deleted] Apr 29 '19

[deleted]

7

u/Werpogil Apr 29 '19

I live in Russia where the government can ruin my life in an instant if it so chooses. ISP selling me crap is the least of my concerns.

1

u/michyon Apr 29 '19

I get lower latency connecting to a VPN server in Chicago when playing league then without one. Keep in mind the latency issue is often your traffic being sent through the nsa or cheaper routes.

0

u/[deleted] Apr 29 '19

[deleted]

1

u/[deleted] Apr 29 '19

For example, if you connect to google maps, you connect to an IP address, but a DNS call is made beforehand.

Yes but assume I use googles dns over HTTPS, then the ISP at least can’t mess with DNS resolution right?

By indexing network traffic used when looking at Google Maps tiles, your ISP can tell what area you're looking at, regardless of HTTPS

When I even reload the same map, the encrypted content will be different with a different handshake, so how does indexing help here?

Some ISPs are also part of companies or organizations that issue certificates. This allows them to issue wildcard certificates for internal use and snoop on all your stuff.

What I had in mind is that the root cert just signs subsequent certs for identity purposes, the encryption is still contained to to you and the server you connect to?

1

u/[deleted] Apr 30 '19

Yes but assume I use googles dns over HTTPS, then the ISP at least can’t mess with DNS resolution right?

For some values of ISP, and some values of mess, yes. For others, possibly not so much.

When I even reload the same map, the encrypted content will be different with a different handshake, so how does indexing help here?

Ok, here's something from 7 years ago that might help explain some of this. Note that I haven't looked into TLS 1.3 enough to be confident to state whether this is still feasible, but certainly as late as TLS 1.2 it would've been. I also don't know the impact of protocols such as QUIC on this technique.

What I had in mind is that the root cert just signs subsequent certs for identity purposes, the encryption is still contained to to you and the server you connect to?

Probably best to illustrate with some examples. These aren't conclusive and won't necessarily be effective in all circumstances, just off the top of my head:

  1. If I'm in your trusted keychain as a root cert provider, I can spoof any TLS session as long as I'm an intermediary.

  2. If I can convince a cert provider to give me a wildcard cert for *, the same outcome as 1 applies.

  3. If I can convince you to install a piece of executable code, I can probably manipulate at least your trust store, possibly your browser, which could lead to the same outcome as 1. The executable code doesn't need to be a full program, nor am I precluded from intercepting something that doesn't have confidentiality or integrity attached.

  4. If I'm aware the device you're using has certain flaws (e.g. broken software that affects SSL a la the Lenovo issue a while back), I can abuse these flaws.

  5. When you connect over TLS, you send certain parameters and negotiate in the clear. If your browser isn't securely configured, I can attempt to use various methods to downgrade your browser's TLS configuration to something I can manipulate. This is a moving target.

Like I said, these aren't all bulletproof, but they're all feasible some of the time for some of the users.

1

u/[deleted] Apr 30 '19

Some ISPs are also part of companies or organizations that issue certificates. This allows them to issue wildcard certificates for internal use and snoop on all your stuff.

It seems doubtful that ISPs would make a habit of this, sooner or later this would be detected by security researchers using techniques such as certificate pinning, which would lead to the CA certificates involved being summarily revoked by major vendors.

1

u/[deleted] Apr 30 '19

It seems doubtful that ISPs would make a habit of this, sooner or later this would be detected by security researchers using techniques such as certificate pinning, which would lead to the CA certificates involved being summarily revoked by major vendors.

Hence the term 'could' rather than 'would'. It's often a grey area between the ISP and associated governments. You're missing the point. Individual techniques aren't important, we've learned that it's the broader interception/manipulation capability that matters.

There's a decent state of the union page on TLS interception here. Note references to dynamic triggering in the UK. Iran-style Gmail interception is a blunt instrument. The modern ecosystem is more like a scalpel for active operations, using passive analysis for bulk interception techniques.

2

u/lihaarp Apr 29 '19

You're mixing architectural and infrastructure aspects tho.

DoH is, as a protocol, as secure as HTTPS is. But no protocol is going to protect you if the endpoint you connect to turns malicious (by choice or not)

1

u/Werpogil Apr 30 '19

My comment is not about endpoint being insecure, but about the protocol having the ability to transfer keys to a third party, which can get access to the entirety of communications for a long time. For instance, the traditional session-based Diffie-Hellman echange would be more secure, because even if the compromised endpoint you connected to gave up the keys to decrypt everything, you'll only lose your current session with this particular endpoint. HTTPS (up to TLS 1.2) allowed you to take control of the entire history of your communication with the endpoint, which is inherently much less secure, so by this DoH would be prone to same vulnerability most likely unless TLS 1.3 with forward secrecy is widespread, which I'm not convinced it would, since too many government and corporations require lack of this forward secrecy for DPI/DLP to work.

0

u/[deleted] Apr 29 '19

[deleted]

27

u/Werpogil Apr 29 '19

Thing is, all developed nations head towards total control of the internet: you've got mandated encryption backdoors in Australia, US special agencies do whatever the fuck they want (NSA particularly) and nobody from general public understands enough to stop them from within, UK has some pretty fucked up shit going on. China is in a league of its own, obviously. You'll see this trend echoed by smaller nations quite soon as well. Also what this means for these smaller nations is that the large players will get access to majority of certs decrypting the traffic of smaller nations, especially ones that have multiple international internet providers operating on their territory. There's no escaping that sadly. Obviously, HTTPS is decent against third party involvement, but it won't stop the actually serious cyber-warfare players that reside on top governments' payroll.

4

u/hockeymani10 Apr 29 '19

is there a youtube video or some sort of website able to make it eaiser to understand this stuff. As i know it is important i just dont understand it all

6

u/Werpogil Apr 29 '19

You can search computerphile on youtube. It's a great channel that features all sorts of videos from super complex math problems explained in an understandable way, to highly educational ones with more relevance to everyday life. Specifically search for Mike Pence's ones, he does a lot of stuff about encryption. Once you understand the basics what the encryption is about and how it's done via various methods (Mike is absolutely amazing in the videos), you'll be able to read wiki on what HTTPS is and whatnot.

1

u/Aro2220 Apr 29 '19

Really you need end to end encryption and some kind of personal AI to implement things properly.

Decentralization is our only hope. Even Elon musk likes to say that we are all doomed if we do not merge with the AI and the only way that happens is if we have open source tools we can all implement.

Otherwise your personal AI is owned by Google or something and you will never be able to trust it. It would be like living with a spymaster. It's already practically like this.

You're right though. Most people don't have a clue what's going on.

4

u/Werpogil Apr 29 '19

Otherwise your personal AI is owned by Google

Exactly what's going to happen whether you want it or not. Personal AI is going depend on how much data it consumes and has consumed, therefore Google's AI would be one of the smartest, therefore most widespread. No open source solution in foreseeable future is going to be able to compete.

0

u/[deleted] Apr 29 '19

[deleted]

11

u/hammerheadquark Apr 29 '19

From that article:

Instead of thinking of this as “Enterprise Transport Security,” which the creators say the acronym stands for, you should think of it as “Extra Terrible Security.”

and

Decryption makes networks less secure, and anyone who tells you differently is selling something (probably a decryption middlebox). Don’t use ETS, don’t implement it, and don’t standardize it.

God I love the EFF.

4

u/Werpogil Apr 29 '19

That was true once, but not anymore.

Which is why Australia is used as a testing ground for mandated encryption backdoors. Once US realises nobody gave a shit about Australia doing it, you'll see that it will happen with the US and other countries would eventually follow suit.

Also selected quote from the article you linked:

Late in the TLS 1.3 process, BITS came forward on behalf of these companies and said their members “depend upon the ability to decrypt TLS traffic to implement data loss protection, intrusion detection and prevention, malware detection, packet capture and analysis, and DDoS mitigation.”

With data leaks costing companies billions of dollars DPI software/hardware is going to be used more and more, DLP software market grows by double digits annually, so you can bet that forward secrecy is only going to be used in a fraction of cases, while both the corporations and the governments need this forward secrecy removed.

4

u/[deleted] Apr 29 '19

Why use a protocol like HTTPS instead of DNSCrypt or DNS over TLS?

3

u/ThePenultimateOne Apr 29 '19

Who was the guy that decided DNS-over-TLS should use the same port as normal TLS traffic? It is reasonable to want to have your router serve as a DNS bridge, and this makes that impossible.

2

u/0xf3e Apr 30 '19

DoT doesn't use 443, instead it's using 853.

1

u/ThePenultimateOne Apr 30 '19

Then whats up with the top comment saying otherwise?

1

u/0xf3e Apr 30 '19

I think you're confusing DoT with DoH. The top comment is about DoH.

DoH = port 443

DoT = port 853

1

u/ThePenultimateOne Apr 30 '19

Thats probably what happened. Whoops.

7

u/[deleted] Apr 29 '19

Should you need one, here's a great DNS service that already implements both DoT and DoH: https://www.quad9.net/faq/

2

u/sevengali Apr 29 '19

In collaboration with the Global Cyber Alliance according to their homepage

https://www.globalcyberalliance.org/who-we-are/#founding-organizations

1

u/[deleted] Apr 30 '19

so?

2

u/sevengali Apr 30 '19

The link I supplied shows the GCA is founded by multiple police forces.. I'd rather not hand my DNS queries over to them.

2

u/Mikofthewat Apr 30 '19

Is there a translation of this for the email box illiterate?

1

u/hockeymani10 Apr 29 '19

Exactly what I needed. Thank you

1

u/guitcastro Apr 29 '19

I'd love to see some alternatives not back up by Google like: https://blockchain-dns.info.

2

u/01001010_01000100 Apr 29 '19

Has anyone tested this, to see who really owns this and how secure it is?

1

u/[deleted] Apr 30 '19

The fact that it has "blockchain" in the name is a pretty good indicator it's bullshit.

0

u/[deleted] Apr 29 '19

[deleted]

11

u/leftleveled Apr 29 '19

I don't like the idea of blocking based on dns anyway. It can already be overridden by hardcoding IPs. For e.x., a local hosts file in an untrusted device.

7

u/lihaarp Apr 29 '19

Using DNS is simply practical. There are so many reasons an IP address can or needs to change, that pretty much every service will prefer DNS over hardcoded IPs.

4

u/[deleted] Apr 30 '19

For a dedicated "attacker", there are many alternative ways to perform domain resolution without hardcoded IPs. For example, a device could periodically download a file containing domain resolution information from a widely-used cloud provider using a secure protocol. This could ultimately be blocked but not without effort.

Some of these techniques are already in use in the wild by messaging apps that aim to bypass censorship in countries like Turkey or Egypt, which use relatively unsophisticated DNS blocking techniques.

5

u/[deleted] Apr 29 '19

[removed] — view removed comment

6

u/[deleted] Apr 29 '19

Untrusted devices shouldn’t be on your network

That sounds like the right answer.

Many home routers come with an untrusted "guest" network option.

TVs, kids toys, non-rooted android phones, etc. should all be outside your firewall, not inside it.

2

u/yardmonkey Apr 30 '19

It quickly gets murky with devices like Chromecast that need to be on the same segment as your phone in order to cast.

2

u/[deleted] Apr 30 '19

[removed] — view removed comment

1

u/[deleted] Apr 30 '19

Exactly. Internet-connected home devices really are a devil's bargain. I fear that in the future it will be increasingly difficult to purchase home devices without these "convenient" spying features, like it or not.

122

u/Legalize-Cocaine Apr 29 '19

Some CIA and NSA guys worked really hard on that news article and you go ahead and ruin the astroturfing campaign. Shame on you.

7

u/bluehands Apr 29 '19

While it is certain that many state level actors shape public opinion, I am having a hard time understanding how secure dns requests benefit them.

14

u/4xxxx4 Apr 29 '19

... Literally the exact same way OC said.

0

u/v2345 Apr 30 '19

Because its not secure. Google uses https, but its not secure.

23

u/[deleted] Apr 29 '19

I have a rule setup in my router to block and redirect any request on port 53 to my pihole. It's gotten around my Google home and chromecast hard coded DNS.

3

u/[deleted] Apr 30 '19

That only works because Google home and Chromecast respect the convention of using port 53 for DNS.

2

u/[deleted] Apr 30 '19

It wouldn't be hard to sniff it and change the rule accordingly

0

u/[deleted] Apr 29 '19

[deleted]

3

u/TheFondler Apr 29 '19

Am I missing something, or couldn't you just redirect the DNS IPs to the PiHole as well? What am I forgetting?

14

u/article10ECHR Apr 29 '19

You're forgetting that your PiHole won't pass your device's HTTPS auth

2

u/[deleted] Apr 30 '19

You might be able to block DoH requests that way but you wouldn't be able to inspect the requests or modify the responses.

0

u/[deleted] Apr 29 '19

[deleted]

1

u/thesean_glider Apr 30 '19

What will be the solution when google and mozilla make it default and eventually enforce it in their browsers? (assuming these are probable steps toward that goal)

16

u/Aro2220 Apr 29 '19

When I saw that Google was involved I stopped hoping for privacy. Obviously they have a way to exploit this ...

3

u/[deleted] Apr 30 '19

Well yeah, you'll be sending all your DNS requests to them so they'll get a massive stream of information about what domains you visit.

7

u/dragonatorul Apr 29 '19

You can block port 443 to 8.8.8.8 for all devices except your pihole. Well, at least with a decent router you should be able to do that.

2

u/01001010_01000100 Apr 29 '19

Do you have a recommendation on a good one?

5

u/[deleted] Apr 29 '19

You can null route 8.8.8.8, 8.8.4.4, 9.9.9.9, et al as they’re only used to deliver DNS

0

u/[deleted] Apr 29 '19

[deleted]

2

u/shyouko Apr 29 '19

I guess applications (Chrome / Firefox) would happily get their DoH host IP via traditional DNS then proceed to forward all DNS request over DoH.

For DoH to work on network infra level, we'll need hard coded IP as DoH resolver.

1

u/bluehands Apr 29 '19

As far as I can tell, DoH will user the same certificate chain that any https request uses. Someone can spoof your dns but if they don't have the private certificate for google.com then devices that use DoH will ignore the response.

1

u/lihaarp Apr 29 '19

Wait, DoH resolves the resolver's name before sending requests? How does it bootstrap that?

1

u/[deleted] Apr 30 '19

A DNS API client may face a similar bootstrapping problem when the HTTP request needs to resolve the hostname portion of the DNS URI. Just as the address of a traditional DNS nameserver cannot be originally determined from that same server, a DNS API client cannot use its DNS API server to initially resolve the server’s host name into an address. Alternative strategies a client might employ include making the initial resolution part of the configuration, IP based URIs and corresponding IP based certificates for HTTPS, or resolving the DNS API server’s hostname via traditional DNS or another DNS API server while still authenticating the resulting connection via HTTPS. (Source)

2

u/bigshmoo Apr 29 '19

If your net allows an un trusted device to make connections to 443, dns or otherwise, you already have this risk.

1

u/[deleted] Apr 30 '19

There's nothing magical about specific ports, an untrusted device could send encrypted data over port 80 just as easily as 443.

1

u/bigshmoo Apr 30 '19

Exactly. Allowing dns over 443 is no worse than allowing any other outbound encrypted connection.

2

u/hemingray Apr 30 '19

Already blocked those at the firewall. DoH not happening inside my network. May set it up on my Pi-Hole though.

1

u/Vovochik43 Apr 29 '19

Or you can block any outgoing traffic to a list of known DNS server you don't support. But yeah, it's slightly more tricky with this technology.

1

u/[deleted] Apr 30 '19

DoH does make it a bit harder to monitor and restrict the behavior of devices on your network, but only those that are already "cooperating" with your network controls by using DHCP-provided nameservers, following port conventions, etc. There are already many ways for malicious devices to bypass home DNS controls without DoH.

The main tradeoff with DoH is that your ISP won't know what DNS requests you're making, but your DoH provider will instead. (Your ISP will still be able to monitor what IPs you connect to, though, and may be able to gather enough information from this to deduce the domains you're accessing.)

The benefit of encrypted DNS in general is better protection against DNS snooping, spoofing, or blocking attacks on the network.

1

u/three18ti Apr 29 '19

Yep, this is what scares me.

0

u/[deleted] Apr 29 '19

[deleted]

2

u/[deleted] Apr 29 '19

Please!

0

u/[deleted] Apr 29 '19

[deleted]

1

u/[deleted] Apr 29 '19

It’s not a 1-1 mapping with HTTP, so not exactly true. Any number of sites may map to an IP address.

1

u/[deleted] Apr 30 '19

In any case DoH providers would surely be required to record the same information.

0

u/[deleted] Apr 29 '19

[deleted]

5

u/killhha Apr 29 '19

It exists but it's still in very early stages, rarely encountered in the wild up until now

0

u/[deleted] Apr 29 '19

[deleted]

0

u/[deleted] Apr 29 '19

[deleted]

1

u/pred Apr 29 '19

As does Google. And it's supported out-of-the-box in Android Pie.

It's also extremely easy to set up locally using e.g. Unbound.

0

u/[deleted] Apr 29 '19

[deleted]

0

u/Alan976 Apr 29 '19

We could tell you, but, let this cartoon explain.

7

u/[deleted] Apr 29 '19

[removed] — view removed comment

4

u/[deleted] Apr 30 '19

Of course Cloudflare is probably one of the most egregious data mining companies out there.

0

u/[deleted] Apr 30 '19

[deleted]

1

u/[deleted] Apr 30 '19

Even when they try their hardest not to (lawyering up, etc), they are still sometimes forced to by governments that regulate them.

https://www.techdirt.com/articles/20170111/10240636463/cloudflare-finally-able-to-reveal-fbi-gag-order-that-congress-told-cloudflare-couldnt-possibly-exist.shtml

Ken Carter of Cloudflare wasn't even able to correct a Senate staffer who told him things that were completely untrue.

In early 2014, I met with a key Capitol Hill staffer who worked on issues related to counter-terrorism, homeland security, and the judiciary. I had a conversation where I explained how Cloudflare values transparency, due process of law, and expressed concerns that NSLs are unconstitutional tools of convenience rather than necessity. The staffer dismissed my concerns and expressed that Cloudflare’s position on NSLs was a product of needless worrying, speculation, and misinformation. The staffer noted it would be impossible for an NSL to issue against Cloudflare, since the services our company provides expressly did not fall within the jurisdiction of the NSL statute. The staffer went so far as to open a copy of the U.S. Code and read from the statutory language to make her point.

That's what a gag order does: allows misinformation to go uncorrected. The staffer's interpretation of US Code may have been more to the letter of the law, but Cloudflare's Carter knew -- from personal experience -- that the FBI's interpretation was different.

Because of the gag order, I had to sit in silence, implicitly confirming the point in the mind of the staffer. At the time, I knew for a certainty that the FBI’s interpretation of the statute diverged from hers (and presumably that of her boss).

Even if they're not intentionally trying to be evil (like Google, Facebook, etc) - simply because they have access to the information and the means to mine it, they can and are forced to do so.