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

View all comments

Show parent comments

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.