r/programming • • Nov 24 '16

Let's Encrypt Everything

https://blog.codinghorror.com/lets-encrypt-everything/
3.5k Upvotes

508 comments sorted by

View all comments

Show parent comments

0

u/loup-vaillant Nov 24 '16 edited Nov 24 '16

Yes, the user cannot click past it

Good.

Also while metadata can be useful, you are talking about timings, domain names, and amount of data.

From that, the attacker can recover most of the information it needs. Who you talk to and when is almost as important as what you are saying to them. Do not underestimate the power of metadata. One can deduce a lot from that.

Just one example: imagine we can deduce the size of the downloaded web page —because size is not a secret. How many web pages on this particular domain are exactly of this size? Now imagine the user requests several such web pages. Hmm, he probably clicked through links. How about recovering the whole thing through a Markov chain analysis? I bet you can recover a Wikipedia history like that.

Yes, encrypting the web will help. But only by a tiny bit.

1

u/Klathmon Nov 24 '16 edited Nov 24 '16

If you could, you'd be a very rich man. Hell I'll say it right here. If you could figure out which wikipedia page I loaded by my encrypted TLS traffic in a lifetime or less, I'll pay you the entirety of my savings account.

Yes, some info can be gained from size and timing, but not nearly as much as you think. Take reddit. You can see how many pages I loaded (if you can get in the middle, and even then it wouldn't be exact), but you have no idea if it's in /r/watchpeopledie or /r/puppies, let alone what the contents of the page are. Plus with votes changing, contents changing, compression, etc... Not even a refresh would be the same size as before. Even if you could enumerate the size of every single wiki page at a given moment, it'll be different for the next user, or the next minute, or the next language, or the next browser, or the next compression algorithm, or the next protocol, etc...

But what's your solution here? If encrypting the web is such a small part, what's the next step from you? Decentralized systems have many of the same problems along with a slew of their own. Stenography won't work on a wide scale, what's your fix?

Tell me again how moving from "Gmail" (where you can't tell what account I'm logged into), to "/u/klathmon mail" where you obviously know I'm logged into mine is better.

0

u/loup-vaillant Nov 24 '16

You might be surprised what might be recovered from size and timing information alone: for instance, some VoIP protocols, because they use a variable bitrate encoding (an obvious optimization), reveal about half the conversation through timing and sizing information alone.

If you want to hide the size of web pages more effectively, you can pad them. That way many pages will appear to be of the same size, and recovering the detailed traffic will be truly impossible. On the other hand, you still can't hide the domain name. Which is all well and good when you browse Wikipedia or comment on Reddit, but not so good when you watch YouPorn or read some opinionated blog.

You don't need to move from gmail to protect yourself from me. You need to move from gmail to protect yourself from Alphabet, and of course the American government, that may subpoena them at any moment. You need to move from gmail to protect your friends from being spied on whenever you write to one another. Do not underestimate the enormous power Alphabet is wielding: however little power they have over you, they also have over millions of other people. It's very diluted, and therefore not very visible, but it's there.

We can make an analogy with the TV. Depending on how teenagers watch it, it can make them trice as likely to start smoking (and that's the conservative estimate: in some circumstances, it's 10 times as likely). In other words, TV kills people by giving them cancer by having them start smoking. It won't cause anyone to smoke, but it will make it more likely, over millions of people. With no direct fatality, TV manages to kill more people than murderers.

The primary advantage of decentralised system is, they tend to make surveillance more expensive. Cost is all you need to stop mass surveillance, and allow cops to do targeted surveillance when they really need to. Right now however, you only need a copy of Gmail to get a good chunk of everybody's correspondence. Too cheap.

I bet many disadvantages specific to decentralised systems come from external factors: the reason nobody can send email from home, is because lazy spam filter blacklist residential IPs. There are also carrier grade NATs, an abomination where you're not connected to the internet, but to the local network of your provider, and therefore cannot host a server at home. There are contracts that forbid you to host a server at home, as if it was your ISP's business what IP packet you send, and why. Some ISPs block some ports (typically the outgoing SMTP, again to avoid spam). Onion routing is rare, and currently associated with criminals of the worst kind. Good luck running an exit node without having the police regularly contact you.

That said, nothing will work until people learn what is a bloody computer. Education would be priority zero.