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.

→ More replies (1)
→ More replies (5)

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)

→ More replies (1)

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.

→ More replies (2)

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?

→ More replies (2)

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?

→ More replies (1)

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.

→ More replies (2)

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.

→ More replies (1)

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.

→ More replies (2)

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?

→ More replies (1)

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]

→ More replies (1)

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.