10 ms·
Unpopular but very probably true fact: email can't practicably be made secure, and people should stop trying. Email is itself archaic, and there aren't good rea
by tptacek 9y ago
Unpopular but very probably true fact: email can't practicably be made secure, and people should stop trying. Email is itself archaic, and there aren't good reasons people should use it for routine peer-to-peer communications that need secrecy.
Why? Because:
* It's default-plaintext. We don't generally love the way websites ensure they're viewed securely, but email doesn't even have the basic mechanisms HTTP has to prevent secrets from accidentally being sent in the clear.
* Email encryption is never forward-secure. The most popular standard, OpenPGP, involves a long-term key that is the root of secrecy for all messages from a particular person. Lose that key, ever, and not only is every message you send in the future unsafe, but every message you've ever sent in the past is too. That's a terrible property for a secure messaging system.
* Email leaks metadata. In fact, some of what we call email "metadata" isn't even metadata --- stuff like subject lines are simply content. They're sent in plaintext. We would never accept a new secure messaging system that behaved like that.
* Most email users get their email from a website. Unless you make them install something on all their computers --- and at that point, just get them to install Signal, WhatsApp, or Wire --- "encrypting" their email involves schemes in which those websites can get their plaintext mail.
* Most email clients are searchable-archive-by-default. Again, if you're using a secure messaging system to keep secrets from a state-level adversary, that's exactly what you don't want. And again, what matters here is the behavior of the overwhelming majority of clients. If you can stipulate a special mail client that is extra-careful, why not stipulate a forward-secure advanced messaging system and stop bothering with email?
Everything that makes email effective in the real world makes it inhospitable to secure messaging. We should stop trying to push this particular boulder up this particular mountain and instead just get people to adopt serious secure messengers.
- zaro 9y ago> Email is itself archaic, Very true and yet its the only messaging with wide adoption that is federated. There are so many better ways to communicate now days all of them locking you to a specific vendor. So whether it's archaic or not there isn't really any alternative :)
- snvzz 9y agoSMTP belongs in the trash, sure. Whatever happened to the Dark Mail Alliance working on replacing it? https://en.wikipedia.org/wiki/Dark_Mail_Alliance https://en.wikipedia.org/wiki/Dark_Mail_Alliance
- nickpsecurity 9y ago"email can't practicably be made secure, and people should stop trying." It's already been done as I've told you before: they're called encrypting proxies and mail guards [1][2]. A few ran on OS's that passed NSA pentesting while all the other stuff failed. So, they can be done to much higher security than most things you use or recommended for risk mitigation. There's FOSS tooling available to build modern versions in medium or high security should anyone want to try. Tooling is better than ever for plugging leaks or knocking out code injections without having teams of pros doing all the work. There's also companies selling modern versions for businesses wanting some protection for legacy usage, except not on the secure OS's anymore. So, you're just ignoring prior work again like you did when you dismissed separation kernels because you didn't know high-assurance, security field designed secure, browser architectures or integrated existing ones. Being archaic, secure email does have issues to solve with residual risks that can happen with new solution integrating with legacy tech. Best it will get with current setups is medium-assurance like with most internet protocols, common platforms, and so on. Still useful to build security tech for it given how pervasive email is with too much inertia to eliminate if we're about protection of lots of users and critical activity. "Most email users get their email from a website. " "And where by "agony" we mean "innocent people being put at risk"." The other thing I noticed about this post is a double standard your pushing. When I talked secure OS's, you argued they shouldn't be taken seriously unless they have a browser. The implication was that browsers were a pervasively-used tool (like email) that we should (a) support since in demand and (b) secure to be responsible. We had to do what's practical supporting them even though they're the source of most compromises. Now, when talking email, you're saying people should ditch it for totally-different mediums without the strengths of email (i.e. less practical for their needs). That we should not be practical since it would be irresponsible to push a tech or app with high-compromise potential that could put innocent people at risk. That is, putting people at risk just like browsers do versus using secure, simple, native apps (esp memory-safe) or less-sophisticated formats for documents. Maybe you changed your mind about browsers with you now recommending whatever are the Signal's of document exchange or web-app alternatives. Otherwise, you've done for one medium what you say shouldn't be done for the other. Interestingly enough, those who listen to you that avoid email for messenging apps, but who use browsers, might have their messages stolen anyway from that point on when the browser gets hacked. Among other problems following a hack. "We should stop trying to push this particular boulder up this particular mountain and instead just get people to adopt serious secure messengers." Again. Let me rephrase to illustrate: we should stop trying to push secure versions of (insanely-popular, legacy tech not going anywhere) to get people to quit using it in favor of secure alternatives that don't have benefits that led them to the other one in the first place. I can think of email, browsers, online storage for files, desktop OS's, ISA's, and so on that inherently have risks that we can't fully eliminate. It's insanely impractical to get people off this stuff for clean-slate, secure alternatives. You're making an exception for email expecting people to move mountains changing all the inertia. We do agree that security pro's should get people off email where we can where their requirements don't truly dictate email. We still need secure email, though, for those that won't or can't stop using it. That's only if we're about protecting innocent people, business activities, government practices, and so on who are all over email. [1] An early one https://cryptosmith.files.wordpress.com/2014/10/mailguard.pdf https://cryptosmith.files.wordpress.com/2014/10/mailguard.pd... [2] General concept with newer ones https://en.wikipedia.org/wiki/Guard_(information_security) https://en.wikipedia.org/wiki/Guard_(information_security)
- stewbrew 9y agoNot sure you're still right in 2018. Where I live, non-tech people have more or less stopped using email for non-work stuff in favor of WhatsApp. Facebook gets all the metadata, but you would probably argue that this is much better than an open standard like e-mail. E-Mails are mostly used for work-related information exchange. Those emails are usually sent from a PC in some corporate setting. The IT departments could enforce the use of encryption but nobody cares -- maybe also because management isn't aware of how email works and doesn't care until it is forced to.
- aftbit 9y agoUnfortunately, Signal is not decentralized or federated (for good reasons[1]). Email is. This is an important feature for those of us who worry about the growing centralization of the web, as well as the very many users who still mainly use email for communication. When you leave a job, you may not keep your email address, but at least you can still communicate with people across organizational boundaries. Anyway, even if email security cannot be perfect, I agree with the sentiment behind RFC 7435[2] - some protection is better than nothing. If anything, I feel that they didn't go far enough in this compromise. Most people interact with their email through the provider's webmail client. Autocrypt is fundamentally incompatible with this[3]. This means that it will really not be useful for the majority of users. 1: https://signal.org/blog/the-ecosystem-is-moving/ https://signal.org/blog/the-ecosystem-is-moving/ 2: https://tools.ietf.org/html/rfc7435.html https://tools.ietf.org/html/rfc7435.html 3: https://autocrypt.org/level1.html#requirements-on-mua-e-mail-provider-interactions https://autocrypt.org/level1.html#requirements-on-mua-e-mail...
- Valodim 9y agoWebmail is indeed a very tricky one. Mailvelope does a fairly good job, but without some provider support that allows setting/reading headers and sending custom mime parts, there is sadly no good way to solve this problem.
- rollcat 9y ago> Anyway, even if email security cannot be perfect, I agree with the sentiment behind RFC 7435[2] - some protection is better than nothing. Opportunistic encryption (or any kind of negotiable security) is prone to downgrades by a MITM. Either both sides require strong security, or you must assume lowest common denominator. While I have your attention, please do yourself a favor and pin some strong, modern ciphers for your SSH client: https://wiki.mozilla.org/Security/Guidelines/OpenSSH#Modern https://wiki.mozilla.org/Security/Guidelines/OpenSSH#Modern
- tptacek 9y agoTo a pretty good first approximation zero percent of messaging users care about federation. It's clear to me why "don't bother encrypting email" upsets nerds on message boards. But if you're going to trade getting the maximum number of messages safely encrypted for a deeply uncertain future in which most email is somehow reliably encrypted, you have priorities other than end-user safety --- and, I would argue (but do accept that I can't do so conclusively) priorities other than security engineering.
- frik 9y ago> tptacek > Unpopular but very probably true fact: email can't practicably be made secure, and people should stop trying. E Why is this childish stupid comment on top? Ah right he has such high karma point ratio, the troll stays on top and can't be downvoted enough. Comment system broken.
- cvwright 9y agoThis argument is always a mess. I think a lot of the problem stems from not having a clear definition of what we mean when we say "email". Some of these complaints seem to be about SMTP, some are about client programs, and some are about PGP. Your individual concerns are all valid, but that doesn't mean they come together to make a compelling argument that email will always be horribly insecure. Heck, you could probably take most of the points in the parent comment, change a few words, and have a pretty solid argument to take back to 2008 and convince everyone that mobile device messaging will never be secure. There's nothing inherent to the concept of "email" that says we have to use any of these individual flawed components, or that we have to use them together in exactly the same way as we're doing now. For example - What's to stop somebody from taking the Signal code and hacking up support for a mail client that uses Signal with SMTP as the transport?
- tptacek 9y agoLook at X3DH, Double Ratchet, and Sesame and sketch for me a comparably secure system that uses SMTP as the transport and that doesn't reduce SMTP to a tunneling mechanism for an entirely different protocol.
- dredmorbius 9y agoLet's accept all this as true. (I've got some quibbles, but agree in general form.) 1. What's the alternative look like? 2. How do we get there from here? If you've a prepared piece on this (or someone else's that you largely agree with), that would be great to point at. If you don't, I'd very much like to see something. I've been trying to keep vaguely on top of email and messaging protocols and failing massively. My own view is that SMTP email probably is done for, though there may be some Good Bits to salvage, and most definitely some Hard Lessons to retain.
- Canada 9y agoI predict autocrypt will get basically zero adoption because no mail clients with significant user bases will bother with it, and the rest are web apps anyway. It would be nice if there were a signal client that looked like an email client, organizing messages by subject rather than conversation partner.
- Gatsky 9y agoNot sure why anyone doubts or is upset by this. In my field, health professionals send all sorts of critical confidential information in email, and never delete any of it. For each person where email has good enough security, or can be made as such, there are 10 where it will never be remotely adequate in real world usage.
- rdslw 9y agoIM won't replace e-mail due to two important things you seem to be neglecting (for a long time :) ). They are: * human psychology and ways of working * lack of features on IM (and this problem is bigger than implementing crypto in e-mail). _ Let me describe them more, starting with humans: * we love to separate things in our minds, like work/home linkedin/facebook profiles that will never merge, no matter how much money fb will pour into fbworks or others. * we assign e-mail, an aspect of 'longer asynchronous communication'. We desire this 'asynchronous' aspect, allowing replying us with a delay. We demand that a separate (sic!) tool with such characteristic (and publicly agreed typical use) exists * we need communication tool for longer (like this or yours post) exchanges, where MULTIPLE people can participate. We need to able to put into one message 10..20 minutes of work. And no, we will not be publishing and exchaning academic papers (read attachments/separate documents) for such discussion to happen. * it can't be tied to instant/short comm tool. _______ Features: * we need (must) to have a searchable archive of this communication tool, instantly available, surviving device changes (telegram and signal are out), and multiple years to store * this tool must be connected to publicly available namescheme of internet: domain names - no IM are, they create they own space. This is ultra crucial: I must be able to send and receive information to a participant who I know only a domain. Like for examples yours: youagain@latacora.com * I need to be able to talk with multiple people, knowing who they are (domains), and @Immuppet1980 or @894984320123 is not, while tptacek@latacora.com is * we need to to have multiple addresses all being accessed with relatively small number of clients (read 2). Welcome to the IM hell, when if you're 40 and have friends from around world you need to ahve: signal, telegram, fb, whatsap, sms, ghangout, alo, and I'm not even started with asian tools! This sucks. _ So no, while I share your despise to current crypto-email state, the proper way is to try to secure e-mail, not to get rid of it. Incrementally, getting rid, one by one all bad things of it. There is no bing bang approach.
- raverbashing 9y ago> and instead just get people to adopt serious secure messengers And here is the main issue, they don't substitute email: - Async - Allowing long form text/attachments - User friendly address (phone numbers are not very easy - we just got accustomed) - Threaded and archivable conversations
- Fnoord 9y ago> Unpopular but very probably true fact [...] That's not a fact. That's a conclusion based on the premises you put forth. You should put the conclusion on the bottom of your post. Now it is akin to a forecast or fortune-telling. There's no need to resort to such strong language in an otherwise decent post. Your premises don't need it, and your argument doesn't need it either. If you worded your post slightly less bifurcating it would've been an excellent post without sparkling the controversial discussion. As for your premises, > Email leaks metadata. [...] Agreed, but > stuff like subject lines are simply content. Its optional content because if sender wants it to be gibberish or deceiving, that's possible. > * Most email users get their email from a website. Unless you make them install something on all their computers That's a matter of RFCs and implementing the new technology in client and server. If we follow your reasoning, we'd still be sitting in the previous century in old standards "because the poor users must upgrade their software." For the other premises (such as for example "It's default-plaintext."), can you demonstrate it is impossible to fix these issues? Because I don't see that being taken into account. What I see is: "let us break backwards compatibility and switch to this here which is better" but without authority to do that for a significant amount of users we're left with the practical situation of a chicken-egg problem of a defacto standard. And could you actually directly quote from the article what and why is not feasible instead of a general dismissal? The latter feels like a rant the former feels like an in depth discussion. Someone could've written a rant like that about DNS (because IPv4), or about TCP because BGP, but what we need is solutions. IPv4 is an interesting discussion because of IPv6. Its a recent, significant example of the chicken-egg problem of an inferior standard, backwards compatibility, and how to make the switch.
- euroclydon 9y agoIntra-organizational email is pretty secure. Like where I work, we’re all on gmail with client carts.
- jjess 9y agoHow using Gmail could be called secure? According to Snowden docs Google is cooperating with N/S/A. So all your data is collected and stored for future analysis when needed. If you consider this to be "secure" then the whole discussion on security is pointless.
- indymike 9y agoI'm not sure what the problem you are having is here. Transport can be secure with TLS. Content can be secured with smime or even archaic and ancient pgp. Leaky metadata is a problem with every protocol that can be routed. Oh, and email is one of the few things on the internet that universally works...
- hueving 9y ago>Unpopular but very probably true fact Meta nit: prefacing an argument with this is irritating and is essentially a dressed up "I'll probably get downvoted for saying this." Don't tempt me to not like a statement ahead of time, just make the damn statement!
- tptacek 9y agoYou're right.
- mark242 9y agoEmail can be made secure, it's just that by default it's insecure and there isn't a Google/Mozilla/Microsoft/Apple conglomerate to penalize SMTP servers by showing "Insecure" in an email display/etc. * Most mail transport agents can require connections to use TLS, but nobody does because they're afraid of denying incoming messages and because it can be difficult to install a certificate for an MTA, so smaller providers just don't. There should be a LetsEncrypt for mail servers and by default the various package managers and distributions should not install a mail agent that allows non-TLS connections. * It is possible to store mail messages encrypted at rest, but only by using an encrypted filesystem-- I'm not aware of any MTA that will do this itself. Obviously that needs to change. * Providers can force TLS connections for IMAP. This is surprisingly easier these days given that most end user mail clients will auto-negotiate these connections. There's your E2E encryption. This doesn't get you encryption on the final destination, but that's a separate issue.
- tptacek 9y agoFor the nth time on this thread: TLS does not provide end-to-end encryption for email. End-to-end encryption means you can read your mail, and the person who receives your email can read it, and no system in between can ever see the plaintext.
- dvanduzer 9y agoThe email address format is so useful for domain-based identity. We still haven't squared Zooko's Triangle. What is the practical way to get a function like "document was sent with best effort for some legal purpose to a known party"? Are we just stuck with "login to the secure messaging site" emails from our banks?
- tptacek 9y agoSince it's incredibly unsafe to open document formats delivered over email in native viewers, we should be opening those documents on the web-based viewers on websites anyways. That's the most important advice we give at-risk users now: don't click.
- slavik81 9y agoThere shouldn't be any difference. When opening it in a web page, you're just running it in the browser's sandbox. How did it come to this? It seems like the web browser is doing the operating system's job. Were OS vendors just asleep at the wheel? My pet theory is that OS vendors didn't really need a good sandbox. They could just tell you to be careful what applications you run. But, nobody would accept web browser developers telling you to avoid browsing unknown websites, so they were forced to build a good sandbox. But, I don't really know. I'm just really disappointed by OS security.
- tptacek 9y agoThere's an enormous difference, and it's not just the sandbox; it's also that the viewer application is: * Written in a language other than C * Doesn't have any access to your local system by design, not as a consequence of sandbox rules * Is maintained serverside, so everyone gets patched instantly
- slavik81 9y agoRegarding your first point, would a website written in C and compiled to JavaScript have the same security issues? I'm wondering whether a middle layer can fix the problems you have with C, or if they're inherent to any use of the language.
- ekianjo 9y ago> Lose that key, ever, and not only is every message you send in the future unsafe, but every message you've ever sent in the past is too. That's a terrible property for a secure messaging system. That's false. There are mechanisms for lost keys revocation. This is already a solved problem. > Email leaks metadata. In fact, some of what we call email "metadata" isn't even metadata --- stuff like subject lines are simply content. They're sent in plaintext. We would never accept a new secure messaging system that behaved like that. So do you have any other email-like system out there, not dependent on a centralized service, that does not leak meta-data? > * Most email users get their email from a website. Unless you make them install something on all their computers --- and at that point, just get them to install Signal, WhatsApp, or Wire --- "encrypting" their email involves schemes in which those websites can get their plaintext mail. Can you host your own WhatsApp server? You own Signal server? No. Having your own email account on a VPS is trivial and much lower effort to remain in control of your communications. The point is that you dont use website to consult your email if you want to move to encryption. And Email has a lot more benefits than your typical IM - it's a standard after all and can be used every everyone on Earth, you don't need to rely on any app adoption curve.
- tptacek 9y agoRevocation doesn't provide forward security. Standards are what we say they are; almost everyone can use Signal today, and we'd be better of spending the effort to make sure literally everybody can than trying to retrofit security onto SMTP email.
- deleted 9y ago[deleted]
- ekianjo 9y ago> almost everyone can use Signal today Except that almost everyone does not. Yet everyone has an email address. I'd say you have to pick your fight. Trying to convert everyone to Signal, even though it will never replace email in what email broadly does and allows, or trying to add encryption to email.
- im3w1l 9y agoGood points, but email is so entrenched it might be easier to slowly fix the issues rather than throw it all out.
- tedunangst 9y agoIncomplete fixes only prolong the agony.
- tptacek 9y agoAnd where by "agony" we mean "innocent people being put at risk". For what? So we can feel clever for someone having pulled off an elaborate retrofit we didn't expect we could accomplish? That's vanity, not engineering.
- azernik 9y agoSo we can feel clever for having actually gotten adoption, rather than feeling clever for creating a wonderfully-secure new system that can't compete with the network effect of e-mail.
- tptacek 9y agoIt's possible that more bona-fide messages are sent every day with WhatsApp than with email, whose stats include (and, at least for me, are dominated by) automated transactional emails. I don't think "network effect" is as powerful an argument as you want it to be.
- pbhjpbhj 9y agoA large problem is that the companies with the money to address the issue will only do so starting from a position of a walled-garden rather than a system like email that in principle is open to anyone's mua/mailserver? We have a proliferation of communication apps that don't talk to each other because each of the capitalistic driving forces wants to kill every other app so there's wins (even if there app is much worse than competitors). This is where you need cooperation for progress and where capitalism, with greed as the driving force, utterly fails.
- mapgrep 9y agoYour dimissive post boils down to “less than 100% perfect security is not ‘practicable’ so let’s leave a massively used, default communication platform utterly unsecure.” At least three of your critiques of encrypted email could be made of HTTPS: it leaks metadata (what sites you visit and when), it is plaintext by default, and the archives of the secured material are persistent and searchable. Yet HTTPS is hugely valuable. But the biggest issue with your critique is that it proposes treating secure messaging as a special case for which people should just use a special tool. The old, “just use Signal” nonsense. Guess what? People suck at knowing what communications need to be secure, and they suck at keeping mundane conversations from veering into sensitive territory, and they suck at moving conversations from one platform to another. As many systems as possible that they use need to be secured, so that WHEN they mess up — meaning, have the gall to say something potentially sensitive outside of infosec-land blessed tools — the consequences are mitigated. Security professionals need to meet users where they are. And where they are, to a massive massive unstoppable undeniable extent, is on fucking email. Shitty, plaintext by default, metadata leaking email. Just crying out to be fixed. And they’re on Twitter DMs and Facebook and god help us Slack. Which is why the people who made Signal put their crypto into WhatsApp. Not because it’s a GOOD IDEA to let Facebook (!!) broker your key exchange and see your metadata — yes, Signal protocol can’t keep metadata away from third parties either, not entirely — but because they had the chance to improve security in an imperfect but good way for millions of people. The people behind autocrypt took a similarly honest stab at improving email security. If this sort of system were more widely deployed — and i know firsthand that gpg can work well when deployed to an entire workgroup — the security gains would be massive. A huge, imperfect gain. And an essential one even for people who use Signal et al — because every single one of them, dollars to donuts, uses email part of the time. It would be hugely wrong to just leave that on the table.
- tptacek 9y agoYou seem to be relishing this takedown post. I don't want to harsh on that, since I enjoy writing a takedown as much as anyone, but I have to point out that you're attacking an argument I didn't make. It's not my argument that people should use special secure messaging applications when they need security, and email at other times. It's that we should stop using email pretty much altogether. Like I said: it's archaic. In the overwhelming majority of cases, a messaging application does a better job than store-and-forward email anyways. Which is why a lot of us look at our email inboxes these days and notice that most of what's in there is automated transactional stuff, with occasional cold inbound introductions that quickly transition off into some better medium. The one thing we do still routinely use email for --- sending files to each other --- is an iredeemable security disaster that needs to end as soon as possible anyways.
- lvs 9y agoI've seen you as the top commenter on almost every topic of email security, pitching the same arguments. There is significant demand for content-encrypted asynchronous messaging for all routine purposes. Chat apps do not provide the appropriate platform for real world communication of substance, and security is and must be sought by less dismissive developers than you.
- tptacek 9y agoSignal Protocol is designed for asynchronous messaging.
- lvs 9y agoOK, so implement a Double-Ratchet protocol for email clients and call it a day. Don't say that no engineering is possible on this problem, as if that isn't a farcical statement.
- blfr 9y agoThe problem is that you can't do it. More precisely, you cannot get people to convert to your encryption scheme. And if you could do it, you could as well convert them to a better protocol altogether. At least this is how I understand tptacek's argument.
- deleted 9y ago[deleted]
- tptacek 9y agoHave you considered that there might be a reason why none of the proposed schemes to retrofit encryption onto email involve double-ratchet protocols, even though all sorts of people come up with new messaging apps that do use double-ratchets? I think it's because it's very painful to accomplish ratchets in store-and-forward email, where the message update frequency is often measured in minutes, not milliseconds. At any rate: suppose you actually accomplished that. You've still addressed only one of the bullets in my list above. Why bother? If you can get people to adopt new software, get them to adopt Signal, WhatsApp, or Wire.
- microcolonel 9y ago> It's default-plaintext. We don't generally love the way websites ensure they're viewed securely, but email doesn't even have the basic mechanisms HTTP has to prevent secrets from accidentally being sent in the clear. SMTP has the exact same mechanisms, as does IMAP. HTTPS does not protect data at rest, and it doesn't protect data from the service provider, it never promised to. There is functionally no difference between the SMTP/IMAP and HTTPS security models.
- tptacek 9y agoYou're confusing client-server secure transport with secure messaging, which is not at all the same thing. Yes: you can ensure a specific SMTP (or IMAP) client connection is encrypted with TLS. But email is store-and-forward. What you can't do is ensure that a given message is encrypted at every hop, let alone end-to-end, where only the sender and receiver can read it. Obviously, that's the point of layering OpenPGP on top of email. But, like I said: that's opt-in, with plaintext as a default. We would never accept that design in a secure messenger system.
- tonyarkles 9y agoI disagree, while also agreeing that IMAPS/SMTP-with-TLS is a huge improvement. The big difference between HTTPS and SMTP is that there's an implicit extra hop. I go to send you an email. I connect to my outgoing mail server over SMTP-with-TLS, and anyone monitoring my connection cannot see the content of the message. Awesome! Likewise, you retrieve the message using IMAPS, and anyone monitoring your connect cannot see the content. Great! But in between, there's absolutely no guarantee that my email provider sent it to your email provider over SMTP-with-TLS. It could very well have traveled completely cleartext, at which point it was harvested and archived by the NSA, with neither of our email providers having handed it over to them.
- microcolonel 9y ago> But in between, there's absolutely no guarantee that my email provider sent it to your email provider over SMTP-with-TLS. Don't accept non-STARTTLS traffic. Google doesn't, you shouldn't have to either. STARTTLS is widely available, and simply needs to be configured. Encouraging everyone to configure STARTTLS correctly is the easiest win we'll have. And I hope you don't take what I said to mean that IMAPS and SMTP over TLS are a proper message encryption system. I simply meant that HTTPS doesn't do anything right that IMAPS or SMTP over TLS don't also. Clearly there needs to be a standard way of advertising, distributing, transitioning, and retiring keys for email addresses. It needs to be robust, in continuity with existing infrastructure (probably domainkeys signed), straightforward (maybe signed proof of sender keys in a header), and possible to delegate in a way which meets the requirements of mailing lists. It also needs to be robust against malicious MTAs who could otherwise silently spoof senders and misrepresent their keys (double signing?). A system with these properties would also solve the problematic interactions between DMARC and mailing lists which prevent almost everyone from deploying an appropriate DMARC policy today. If somebody is working on this I'd like to know about it.
- peterwwillis 9y agoI don't think we need serious secure messengers, because we mostly don't need to send secure messages. Email is "mail on the internet". Mail isn't secure. We use mail everywhere for everything. Occasionally there can be some security problems with conventional mail, but they're fairly rare and we tend to get on with life. And if you need to send a secret via the mail, you can do what the military has been doing for 2,000 years and encrypt your message contents. So I agree, we should stop freaking out about mail. But we need a secure messaging system? We didn't seem to need it for the post. For the average hacker it's nearly impossible to break into modern messaging systems, centralized and encrypted as they are today. And a lot of us live in free societies where repressive regimes don't legally get to spy on our messages. Now, this will change in 20 years when China starts spreading its form of Communism around the world similar to how we spread Democracy, as more nations will start adopting internet censorship. But as we've seen with a lot of censorship-circumvention technology, the authorities are pretty successful at blocking or banning the means, and providing state-sponsored replacements when they can't effectively do that. If you want someone to deliver you a secret today, nearly any messaging service will do. If you don't want to rely on a particular central messaging service, you have to go back to PKI or public-key crypto, which nobody wants to do. Basically, we have "good enough" solutions today, and we have better solutions that people can use if they have to. So I don't think a new secure messaging system is warranted.
- dane-pgp 9y agoYou might think we mostly don't need to send secure messages, but remember, Pervasive Monitoring Is an Attack (BCP-188): https://www.rfc-editor.org/bcp/bcp188.txt https://www.rfc-editor.org/bcp/bcp188.txt
- peterwwillis 9y agoFirst of all, most messaging platforms today are encrypted, so that rfc wouldn't really apply except to monitoring by the company providing the service, and that's the price you pay for "free stuff on the internet". Second, almost all the "attackers" are nation-states and your ISP. If it's illegal to read your mail, it should be illegal to read your email (simple regulatory fix). That just leaves spy organizations, and nobody but computer geeks and privacy nutjobs cares about that.
- JoshTriplett 9y ago> Most email clients are searchable-archive-by-default. That's a feature, not a bug. A "secure" messenger I can't search my entire locally stored archive of can't replace my usage of email. I agree with the premise that something that works like email but secure might do better to not start with email as a baseline. But that doesn't mean it should throw out the most critical properties of email in the process. > Everything that makes email effective in the real world makes it inhospitable to secure messaging. We should stop trying to push this particular boulder up this particular mountain and instead just get people to adopt serious secure messengers. We also need to build serious secure messengers that are "effective in the real world" in the same way that email is. That doesn't mean they have to build on email.
- opmac 9y agoOh look, another "middlebrow dismissal" (https://news.ycombinator.com/item?id=4693920 https://news.ycombinator.com/item?id=4693920) upvoted to the top of a HN post. Color me surprised.
- dsacco 9y ago> Oh look, another "middlebrow dismissal" (https://news.ycombinator.com/item?id=4693920 https://news.ycombinator.com/item?id=4693920) upvoted to the top of a HN post. Color me surprised. Do you see the irony in using a low-effort, middlebrow dismissal to call another comment a middlebrow dismissal? Re-read the comment you cited in your criticism, I think you may have taken the wrong lesson from it. Unlike pg's comment, yours does not advance a substantive criticism or draw a novel insight into the conversation, which means it's also the same type of dismissal he was talking about.
- losvedir 9y agoUsing the terminology of your link, tptacek is not "slightly more than unsophisticated" wrt security. Dismissive, sure, but "middlebrow" it is not. I like that term, and I don't want it to turn into a generic, meaningless slap like "fascist" or something. And it's worth taking seriously any comment about security on HN when we're lucky enough to get one by an expert, whether it's tptacek, moxie, cperciva, the professor who goes by his initials (whose name escapes me atm), and probably others.
- Fnoord 9y ago> the professor who goes by his initials djb?
- brongondwana 9y agoIt's not a "middlebrow dismissal", it's a well reasoned argument about why this whole area of work is doomed to failure for structural reasons which can't be solved.
- antris 9y ago
- brongondwana 9y agoI agree with you on everything here except for your "don't use email" point in the followups. For 99+% of people, being able to recover your archive when you forget your password or lose your device is more valuable than being secure against a state-level adversary. I think the security debate around email suffers from an over-supply of confidentiality absolutists, in which both integrity and availability take the back seat to defense (or the theatre of defense) against a very narrow set of attacks.
- jopsen 9y agoIndeed just getting most senders and servers to use TLS would be a good start. That said, lots of businesses deal with sophisticated attackers who are trying to steal trade secrets, patents in progress, etc. Sometimes these attackers are state sponsored too (I would definitely suspect China, US and Russia for this kind of crimes).
- brongondwana 9y agoThat comes down to risk analysis there. These businesses should probably be running their own mail infrastructure and doing exfiltration scanning of all outbound messages (which needs them to be in the clear at that point, or at least decryptable by the gateway box). Those sorts of businesses also benefit massively from being able to scan incoming messages for spear phishing and viruses BEFORE they get delivered to the end-user device, something which isn't possible if the business firewall can't introspect the messages which are coming through. I think you're actually making my confidentiality absolutist point for me here. Businesses benefit from being able to analyse mail flow across all their employees and spam/virus/fraud scan incoming messages.
- guy98238710 9y agoYou assume that secrets circulate only within organizations and that no external parties (contractors, business partners, investors) are involved. Outbound filters aren't smart enough to detect escaping secrets. And inbound malware scanner can just as well run on the target device or it can be invoked from the device for suspicious attachments.
- tzs 9y ago...and if you are going to ignore what tptacek says and try it anyway, I think it can be done a little better than the submitted product (although I only skimmed their site so I might be misunderstanding a bit). I worked at a company that had a go at end to end email encryption around 2001. The basic idea of the submitted system looks quite similar to what we did--piggyback on top of existing email clients and their messages. However, we did not want to require modifying the MUAs or installing plug-ins or extensions or whatever a given MUA supported for that kind of stuff. We needed to support pretty much ever MUA on Windows, and writing plug-ins for each would have been impractical (and I don't think they all supported that). So instead of hooking in directly in the MUA, our first approach would have the user configure their MUA to use a proxy, and our software installed a local email proxy. It's been a long time so I may be mixing up some projects, but I think we later did a version where we played around with intercepting things by hooking Winsock, and another version where we used the Service Provider Interface to get in there [1]. Anyway, the first time you used the proxy it would generate a key pair for you, and then on your outgoing mail would put your public key in a header. If incoming mail had someone else's public key in the header it would import that into your keyring. You could set it to sign your outgoing mail. I don't remember what options we have for protecting your private key. My guess is that they were weak, because as is usual when the marketing folks have too much influence, convenience trumps security. Incoming signed mail would have the signature checked by the proxy, and it would annotate the message somehow so that the result would be visible in your email client. I don't remember if we added something to the subject, or added a status header, or added something to the body. Encryption was similar. If the proxy saw that you were sending to some for whom it had a public key, you could set it to encrypt using that public key. (By which I mean encrypt with a symmetric cipher, and use RSA to encrypt the key...I believe we were simply using GPG). As with signing, convenience won if it came into conflict with security, I believe (and over my objection, if I recall correctly). From a user point of view this actually worked pretty well. As I said, we rejected the plug-in approach because it was impractical to write and maintain plug-ins for each client. However, it was practical for all the major ones (and many less major ones) to poke around in the registry or find their config file, and figure out how to programmatically edit those to change proxy settings, thus allowing our installer to find and configure all your email clients. So from the user point of view, you just installed our program, and started using email normally. After a mail and answer between two people who both used it, subsequent messages between them would be encrypted and signed. Of course there was still the issue that this just told you that the subsequent messages were to someone who had access to the keys of the person you initially exchanged messages with at that address--it doesn't verity that they are really who you think they are. I don't remember if we had a way to go outside the system to verify someone's public key and tell the system you have done so. As I write this, I'm now starting to think it wasn't just a simple proxy that just passed requests through, occasionally diddling the headers and the body. I think it was actually an IMAP server that stored messages itself. I think that was so it could keep copies of the encrypted incoming messages itself, and then the email clients could be configured not to store local copies of mail. That way the mail would only be decrypted when you are actually reading it in the email client. Anyway, I think that this could have been made quite reasonable at the time (around 2001). Email has gotten quite a bit more complicated since then. Most people then only used their email from a single computer. Now they use it from 2 or 3 devices, or more, often each running a different operating system. There's no good place controlled by the user that you can put the proxy that is accessible to all of their clients, and so you really need to provide this as a service that includes a server to handle the email...but then how do you let people keep using their existing email address? I supposed you could do an ugly hack like configuring their email clients to all forward incoming mail to the service's server, which decrypts it and sends it back...yuck. At this point it seems clear that you should just use some dedicated secure messaging app for your secrets, and keep email like it is now, as tptacek said. In short, I think this is an idea whose time has come...and gone. [1] I may be mixing up different projects because we had this completely insane contract at the time with one of the biggest distributors of Windows utility software in Japan to provide him with something like 12 new products a year, and new versions of 6 prior products a year, which led to a couple years where everything is largely a blur of projects that mix together in my mind.
- Valodim 9y agoI don't see the business world adopting "serious" secure messengers anytime soon. People don't want to send business stuff over WhatsApp, so we'll have to "bother" with email a couple decades longer. But I really hate that I can't encrypt business communication, like invoices or contracts, without resorting to encrypted.zip. What's wrong with fixing that situation?
- deleted 9y ago[deleted]
- u801e 9y ago> but email doesn't even have the basic mechanisms HTTP has to prevent secrets from accidentally being sent in the clear. There is a draft standard [1] for strict transport security. I'm not sure of its current status though. > Email leaks metadata. In fact, some of what we call email "metadata" isn't even metadata --- stuff like subject lines are simply content. They're sent in plaintext. Nothing sent during the data phase of the SMTP transaction has to strictly be unencrypted. There's nothing preventing the client from encrypting both the headers and body of the message. But that doesn't prevent the MTA itself from adding uncrypted headers to the message after the client sends the CRLF.CRLF sequence to end the data phase. > Most email users get their email from a website. Unless you make them install something on all their computers I'm not sure how many users still use a dedicated email client, but I'm sure that there are many who use clients like Outlook, Apple Mail, Thunderbird, amongst others. Anyone who wants to encrypt their email needs to know they need to use a client on their machine that handles the encryption/decryption steps for them (or that they need to do it themselves. [1] https://www.infoworld.com/article/3046850/security/google-microsoft-yahoo-and-others-publish-new-email-security-standard.html https://www.infoworld.com/article/3046850/security/google-mi...
- tptacek 9y agoThat's strict transport security between hops. There's no proposal on the table for end-to-end encryption, or even (so far as I know) for a header that would signal that a message be dropped before it's sent over an unencrypted channel --- right now, servers simply agree between themselves to enforce transport security, with no input from messages.
- e12e 9y agoRealistically, how many hops are we talking? The dns mx record points to a server that handles mail for a user - anything beyond that point is that domains problem to secure - and it's relatively easy to do so. (The exception being aliased/forwarded addresses - but that's handled on the server side - and could also be set to force ssl/tls). The sender needs a smtp server, usually "their own", and usually (today) supports tls/ssl. Now the sender_smtp-receiver_smtp needs to enforce encryption. I really think we're at a point where forcing ssl on incoming mail would a) not lose any legitimate email, b) maybe block some spam. Then, remove support for connecting to mail over unencrypted pop/imap/smtp for mail clients (probably except for localcast, to not break "known secure transport" like an ssh/vpn tunnel). Since Gmail, outlook.com have effectively broken easy mail federation (oh, look a bad man had your ip a year ago, no mail for you, and no, we won't bounce it with an error, just silently drop it/file it as spam) - we have an oppsto be a bit aggressive in phasing out old rfcs that allow unencrypted smtp/imap/pop over untrusted networks. I'll happily concede that patching transport security doesn't make email end-to-end secure. Then again, I'm not sure the Web is any better: ssl is hop-by-hop, clients keep a plain text cache on disk, along with a log of meta-data (and servers tend to log a lot of plain text meta-data too), client certificates are being phased out for http2... Wrapping messages in s/mime or gpg actually looks pretty good by comparison. Maybe what we need is a suggestion that if you email user+secure@example.com rather than user@ - only email encrypted to User@example.com (with user+secure@ as alt identity...) will get through? Then muas could check to see if there's a gpg key for user+secure@, given mailto user@, in the directory - and transparently Encrypt by default?
- stephenr 9y ago> Most email users get their email from a website. I'd argue thats not the case. Business users are likely still using outlook/etc. Personal users are likely using their smart phone for email. Also by what standard is pgp "the most popular". Its popular with technical people sure, but there is fuck all support in commercial mail clients. S/mime is supported, and due to ca roots, doesnt require you keep using the sams private key - you could use a new cert every 3 months ala LE if you wanted
- computerfriend 9y agoThunderbird and apple mail are both very popular clients that support PGP via plugins.
- stephenr 9y agoI use the pgp plugin for apple mail on my mac, but I wouldn't want to rely on it for anything business critical. It's usually months after a macos/mail.app update before the plugin works again. Theres no equivalent option for iOS. There are alternative solutions but nothing as seamless. S/MIME is supported out of the box. For bonus ease of setup, I can install the current private key + cert pairs I need with a single provisioning profile.
- aplorbust 9y ago"Unpopular but probably very true fact: ..." Another unpopular but very true fact: "Email", the technology, not the business, can be defined as party A depositing an RFC811 formatted message on the computer of party B. Email requires only a reachable IP address. This definition of email can be implemented withut using third party intermediary SMTP servers. Sender and reciever SMTP servers can communicate directly, without so-called "store and forward". I conducted an experiment of "peer-to-peer" email: both sender and receiver are on a Layer 2 overlay, i.e., /dev/tap0 with private IP address, each running their own smtp server bound to tap0. qmail was used, it accepts IP addresses; no ICANN domainnames were needed but private DNS names were also tested. All traffic going through tap0 was encrypted. (Note: I did not use OpenVPN.) It worked as expected. The Layer 2 approach I used would be limited as to the size of networks but would probably accomodate the size of a persons cricle of friends, family and colleagues; addtionally small virtual LAN networks can be bridged to create larger internetowrks. It would probably work with encryption at Layer 3 as well, without such limitations. Maybe people have/will do this with Wireguard. Whether or not this works for the email "business" is irrelevant. Whether or not this is practical for anyones use case is also irrelevant to this comment. The question is whether email can be encrypted. For me, the experiment proves it can, in at least one way. Of course, once party A and party B have an end-to-end connection, e.g., over a "virtual LAN" over the internet, then there are many more interesting possibilities for communication than just "email". Email has evolved in the way it is implemented, and IMO it can evolve further. If I recall correctly from reading old RFCs, I believe the original "email" was actually done via FTP. One deposited mail by appending to a file on the recipients computer. Of course in those days that computer was timeshared by many recipients because computers were too expensive for individual recipients to own. This is no longer true today. Computers are affordable for all recipients. (Yet, with respect to email, recipient still share computers. These are run by "email providers".)