News for hackers. Stuff that matters.
Re:Stop Using Encrypted Email by jcranmer on Thursday February 20, 2020 @12:02AM (#22372809)
Here's the problem with encrypted email: there is only a very, very narrow threat model that it (additionally) protects against.

In any sane setup, your (and your recipient's) email client will use encrypted connections to and from your respective email servers. Any competent email provider will use MTA-STS, ensuring that no one but the sender, receiver, and respective MTAs can read the message [1]. All this happens for regular unencrypted email, without any effort on the user's part.

So encrypted email purports to drop the ability to allow the MTAs to read the email. But... they don't really do that. Your email providers are required to MITM all of your email, and can trivially modify any plaintext attribute they want to. And anyone who has credentials to your email account can also trivially MITM all incoming email (and may be able to at least social engineer outgoing email, if not MITM as well). This means that pretty much any key discovery mechanism that allows an unencrypted email to initialize or update a public key is defeated [2].

So, encrypted email only provides extra security in those cases where: a) keys are negotiated completely external to email (in which case, why bother with email?), or b) you trust the email provider enough to not try to intercept your messages but not enough to not look at your messages without your permission. Given the BOFH principle (i.e., administrators have no inclination to look at your email because you're boring), that kind of means the second case doesn't really exist as a practical concern. You can improve your security in the second case simply be deleting emails from the server immediately, again not requiring encrypted email.

So... why bother with encrypted email? Unencrypted is secure enough unless you're paranoid, and if you're more than very slightly paranoid, encrypted email isn't secure enough.

[1] This is all happening via TLS, which has gone far, far further than PGP or S/MIME have in actually making "no one can read encrypted text" true. The latter protocols take the stance that "using the cipher.encrypt() is good enough," which has been known to be false for decades.

[2] And DANE-PGP is right out, because your email provider is of course the one publishing your public key.

Re:Stop Using Encrypted Email by alwillis on Thursday February 20, 2020 @07:10AM (#22374476)
DANE is only an option if your zone is DNSSEC signed and you have control of your DNS. Of course, there are other ways you can go: https://slxh.nl/blog/2016/pgp-and-dns/

You’re in control of publishing your public key, not the email provider.

I’d be remiss if I didn’t tell you how bad MTA-STS is:

* MTA-STS: compromise for the DNSSEC-challenged

    * Still can and should prefer DANE outbound

    * Authenticates domain control via CA leap of faith

    * Vulnerable to MiTM at cert bootstrap

    * Vulnerable to weakest root CA, and unauthorized certs

    * Open to downgrade on first (or irregular) contact

    * Complex mix of HTTPS, unsigned DNS and SMTP
Re:Stop Using Encrypted Email by jcranmer on Thursday February 20, 2020 @09:23AM (#22375229)
> You’re in control of publishing your public key, not the email provider.

This is only true if you personally fully own the domain and have control of the DNS and other services, which is not the case for the utter majority (at least 99.9%, maybe a few more 9s) of the population. Of course, in that case, you are pretty much the email provider, so not trusting the email provider is a pretty questionable scenario at that point.

> MTA-STS: compromise for the DNSSEC-challenged

Yeah... DNSSEC is a classic example of a solution looking for a problem. Most of your criticism would apply equally well to not using DANE for TLS, and every browser vendor has looked at it and decided against it because it adds no security.

Re:Stop Using Encrypted Email by alwillis on Thursday February 20, 2020 @11:16AM (#22376110)
Having cryptographically signed DNS records that can’t be forged and can be validated is good thing, which is what DNSSEC provides.

Right now, DANE is the only way to mitigate downgrade attacks with SMTP and TLS connections. Apparently use of DANE for email is growing [1].

DANE hasn’t taken off with browser vendors because of their concern about additional DNS lookups when making TLS connections.

[1]: “Number of DANE-enabled mail domains growing exponentially”—https://www.sidn.nl/en/news-and-blogs/number-of-dane-enabled...

Re:Stop Using Encrypted Email by tptacek on Thursday February 20, 2020 @11:28AM (#22376199)
If that were the case, browser vendors would have helped push the DNSSEC chain-extensions forward, which were designed exactly to avoid doing DNS lookups to carry DANE records. Instead, the browser vendors laughed at the chain-extensions effort, and it died in committee.
Re:Stop Using Encrypted Email by alwillis on Thursday February 20, 2020 @12:37PM (#22376813)
Just pointing out that MTA-STS doesn’t mitigate downgrade attacks and that DNSSEC/DANE does: https://www.rfc-editor.org/rfc/rfc7672.html#section-1.3.1

And right from the MTA-STS RFC: https://www.rfc-editor.org/rfc/rfc8461.html#section-2

the mechanism described here instead relies on certification authorities (CAs) and does not require DNSSEC, at a cost of risking malicious downgrades.

So there’s that.

Re:Stop Using Encrypted Email by AstralStorm on Thursday February 20, 2020 @03:58AM (#22373714)
You forgot about signatures, which TLS does not provide. Nor does Signal. (In a meaningful manual way.)

PGP and S/MIME do. The latter is used for all sorts of official messages for exactly that reason.

Unauthenticated encryption is rather worthless. Repudiation is a separate matter and threat model.

Re:Stop Using Encrypted Email by lvh on Thursday February 20, 2020 @08:37AM (#22374949)
Sure! Use minisign/signify, and see OpenBSD for an example of people who do this who care extremely deeply about non-repudiation.
Re:Stop Using Encrypted Email by sterlind on Thursday February 20, 2020 @04:42AM (#22373873)
fwiw keybase supports simple and easy signatures (and less verbose than PGP.) combined with an (imo) much more rational and discoverable attestation of identity, I think it's nearly ready to supplant PGP for this use case. email integration for signatures would indeed be nice.
Re:Stop Using Encrypted Email by dependenttypes on Thursday February 20, 2020 @06:34AM (#22374327)
> Unauthenticated encryption is rather worthless

How so?

Mind you, unauthenticated encryption in terms of signal does not mean that anyone can forge a message, rather that you can't prove to a 3rd party that this was a message sent by the sender rather than forged by you.

Re:Stop Using Encrypted Email by blacklion on Thursday February 20, 2020 @06:47AM (#22374369)
a) DH scheme was invented specifically to solve this problem. And, yes, I could pass my public key via other means, which is not as convenient as e-mail. Including paper card in anti-tampering envelope, is I'm paranoid enough.

b) I'm my own email provider, but I don't trust my server provider (they could read HDD of my server), for example. Or my recipient's provider.

Re:Stop Using Encrypted Email by tptacek on Thursday February 20, 2020 @12:28AM (#22372917)
I'd love to know what you thought I got wrong.
Re:Stop Using Encrypted Email by buzzkillington on Thursday February 20, 2020 @12:45AM (#22372980)
>keys are negotiated completely external to email (in which case, why bother with email?)

Because I've been using that method for close to 15 years now?

Re:Stop Using Encrypted Email by tptacek on Thursday February 20, 2020 @12:51AM (#22373014)
People used FTP for decades, too.
Re:Stop Using Encrypted Email by buzzkillington on Thursday February 20, 2020 @01:07AM (#22373056)
And they still do. I worked at a market maker that used ftp over ssh to move over 10b a year in trades between its various offices.
Re:Stop Using Encrypted Email by phaemon on Thursday February 20, 2020 @08:43AM (#22374983)
I hope there is no such thing because that would be insane. If you mean SFTP, that's actually a completely different protocol and is part of SSH.

If you mean FTPS (which I suspect you do as I actually had to set up something similar at one time), that's FTP over SSL and has nothing to do with SSH.

Your point still stands though: some of the background "FTP a CSV file with a cronjob" crap that goes on in the background would horrify anyone.

Re:Stop Using Encrypted Email by kortilla on Friday February 21, 2020 @01:53PM (#22385671)
You forgot that SSH can be used to tunnel arbitrary TCP streams. FTP over ssh, http over ssh, etc.
Re:Stop Using Encrypted Email by wglb on Thursday February 20, 2020 @04:24PM (#22378786)
Sadly, all three are used and none of them should be.
Re:Stop Using Encrypted Email by buzzkillington on Thursday February 20, 2020 @04:39PM (#22378899)
Nope, ssh tunnel.
Re:Stop Using Encrypted Email by angry_octet on Thursday February 20, 2020 @02:07AM (#22373274)
Has anyone told them there might be a better way?
Re:Stop Using Encrypted Email by yread on Thursday February 20, 2020 @03:38AM (#22373629)
What is better than (S)FTP? Or do you mean MFT, AS2?
Re:Stop Using Encrypted Email by whoopdedo on Thursday February 20, 2020 @08:14AM (#22374809)
SFTP shares only those three letters with FTP but is otherwise a completely different protocol.

It's also a counterpoint to one of the OP's points which is that trying to secure email is a dead-end that we should give up on. It may be possible, though very difficult, to transition to secure email. But it would have to be a brand new protocol not tacked-on to the current system. The way that SFTP is the appropriate upgrade path for FTP and not FTPS.

Re:Stop Using Encrypted Email by jimktrains2 on Thursday February 20, 2020 @09:06AM (#22375111)
The interface of sftp is largely the same as ftp. You can give someone an sftp client, username, and password and they wouldn't be able to tell the difference.

A new e2e protocol that works just like email does would be excellent, but we don't yet have that. Signal &co are chat apps with a different feel and purpose and other than matrix and xmpp not federated, which is a non starter for many entities.

Re:Stop Using Encrypted Email by angry_octet on Thursday February 20, 2020 @09:17AM (#22375185)
Yes I hope it is SFTP and not FTPS.

There are some things we could easily give up to get encrypted mail. For example, setting a max delivery time to allow ephemeral keys.

But there are other problems with encrypted messaging, and I'm particularly thinking of spam. How does Signal/WhatsApp manage to keep a lid on it? Would that be possible in a federated system?

Re:Stop Using Encrypted Email by belorn on Thursday February 20, 2020 @10:57AM (#22375934)
> Unencrypted is secure

It is not. Unencrypted is environmental pollution that need to be actively prevent until it reach zero use. A favorable future is one where the firewall blocks any unencrypted traffic by default.

Similar, giving third party clear text copies of private information is not secure. It is never going to be secure, and the only half working solution there is the kind of heavy legal regulations and systems that does not exist anywhere yet.

If people want to debate over which end-to-end encryption scheme is best then they can do so as much they want, but in the end the goal here is to stop plain text from continuing harming people.

Re:Stop Using Encrypted Email by jcranmer on Thursday February 20, 2020 @11:29AM (#22376205)
You managed to cut out the key word in the quote: unencrypted is secure enough.

Email is protected with TLS on all every hop if your provider is competent. My point is that this protection is sufficient for most purposes. Where it is not sufficient, email encryption doesn't actually add the protection you probably wanted (this is the what the original article is detailing).

Re:Stop Using Encrypted Email by belorn on Thursday February 20, 2020 @01:22PM (#22377243)
The optimal provider in those cases is oneself, running the email on an disk encrypted server, using dane, dnssec, and strict dmarc policy to match (should be noted that the author of this article are also against some of those technologies, and if I recall right, also against people running their own email server).

Project like freedom box could make email encryption obsolete, but thats not because unencryption would be secure enough. It would be because the encryption would be moved away from the individual email and onto the whole server.

Re:Stop Using Encrypted Email by joshuamorton on Thursday February 20, 2020 @01:34PM (#22377351)
Yes, because the security from using Gmail is higher than what you will get for running your own server.

Because Gmail does all of those things, and spends more money and effort making sure they do it correctly than you will over your lifetime.

If you have secrets where you believe that, say, a government will extrajudicially lean on Google to access them, theres am equally, or even higher likelihood that you misconfigured something somewhere and leaked your data.

Re:Stop Using Encrypted Email by belorn on Thursday February 20, 2020 @04:27PM (#22378808)
I have a hard time to see any use case where no security is different from giving google a plain text copy of a private conversations where google has the right to determine who and how others might participate in accessing it.

Giving google a plain text copy of everything you say in private communication is not good enough security. Anyone working with information that is covered under privacy laws should be held legal responsible for disclosing it to a third party, regardless if that third party is google or a friend at a bar. If it is a doctor, lawyer or government employee the probability of this is close to 100%. If its a company talking to customers, communicating personal data as defined by the EU between employees, there is only a google breach away from being found out and sued.

The only choice is encryption, with the choice between a encrypted server under the control of the person responsible for keeping the information safe, or encryption per email. Which of those two choices one choose does not matter but giving google a plain text copy and calling it safe is just LARP security.

I should mention that here in Sweden there were recently a large political scandal involving the government using IBM as a third party service provider. Sensitive data got sent over the border and outside the control of the government, and it continued for years as those in charged really wanted to believe that "the cloud" could treated as just as secure as running your own servers. The law said otherwise, and when reality came crashing down things had to change. Convenience does not make it suddenly acceptable to give a third party sensitive information, even if that third party is a large international operator who can't do any wrongs.

Re:Stop Using Encrypted Email by joshuamorton on Thursday February 20, 2020 @05:46PM (#22379336)
Privacy is not security. Privacy laws do not improve your security. PGP does almost nothing to improve your privacy even when used correctly (metadata leaks). I have a hard time understanding what your point is. If Google, or whomever, is following the relevant privacy laws, why do you care if they have a plaintext copy of your private communications?
Re:Stop Using Encrypted Email by belorn on Thursday February 20, 2020 @07:46PM (#22380042)
I am talking about the threat model that a person have if they work with information that by law they need to keep secret, which if you live in the EU is basically any personal identifiable information about a customers. There is also a long list of professions that deal with sensitive information and carry legal binding requirements to not divulge to third parties. Typical examples is anyone working in health care, education, government, legal system and so on. I am not talking about meta data but classified or data which if disclosed results in people getting fired and holds legal punishment such as jail time.

Using gmail without encryption in those cases is a security issue and also illegal. A lot of people still use gmail in those cases and google track record in regard to data leaks has meant that few people have been found out. That said it will only take one significant data leak and people will start to dig for all data being sent to google. That day a lot of peoples head will roll.

I would guess without exaggeration that a large enough data leak at gmail would cause a global market crash. There is just too much plain text data containing sensitive information that people would dig into. Not private, not meta, just information which people should not have given to a third party. Google privacy policy does not play a role in that.

Re:Stop Using Encrypted Email by joshuamorton on Thursday February 20, 2020 @07:53PM (#22380080)
> I am talking about the threat model that a person have if they work with information that by law they need to keep secret

Then PGP is irrelevant, you don't email that data around. And even if you are, then you aren't dealing with security, you're dealing with compliance, compliance with legal obligations has nothing to do with, and is often in direct action against, actual security.

> Using gmail without encryption in those cases is a security issue and illegal.

This, almost certainly, isn't true, given that Gmail is a GDPR compliant store. You might need to use enterprise gmail, for the legal requirements, but that's still entirely beside the point. "Use enterprise Gmail" is the solution here, not "fail to use PGP".

Re:Stop Using Encrypted Email by belorn on Thursday February 20, 2020 @08:22PM (#22380207)
It is true that people should not email that kind of data but then we assume good op security. Failure of op security is one of the argument of the author here against encryption. On that note I agree with him. People op security is bad, thus they should not use a third party service provider where the line between legal and illegal is the wrong attachment.

Enterprise Gmail is able to operate as a data processor, but there is a lot of fine details in order to stay within the law. It assumes that the company has agreed to the gmail processing terms and gotten permission from their own customer to process the data in such ways. Again here we hope that op security match the fine line between legal and illegal. (If we want a practical example which I know people do, imagine a administrator of a CRM sending a copy of the database to a new hosting provider. Now a copy of the database exist in the sent folder and an other copy at the email provider that the hosting company use. It is very doubtful that GDPR allows that kind of sharing of the private information. If the file get leaked in a data breach there is high probability of a successful lawsuit for mishandling of the information).

Using your own email server or tools that automatically encrypt everything does however prevent those risks.

Re:Stop Using Encrypted Email by joshuamorton on Thursday February 20, 2020 @09:00PM (#22380365)
What email server do you use that automatically end to end encrypts everything using pgp?

It sounds like you're talking about encryption at rest, in which case Gmail does that already, more securely than whatever you're doing so the backwards approach to compliance is more effort and less secure in practice.

Re:Stop Using Encrypted Email by belorn on Friday February 21, 2020 @07:49AM (#22382678)
> What email server do you use that automatically end to end encrypts everything using pgp?

I wrote a program to do that, but there is also a package in Debian if I recall right that also do it. On the mail server it looks up keys in DNS and if it founds it, automatically encrypts outgoing email.

> talking about encryption at rest, in which case Gmail does that already

Emails at google is not encrypted. Good must have access to the plain text in order to do analytics and search. If google has a data breach it can include every single email gmail has in plain text, and that is a fundamental risk.

> more securely than whatever you're doing

That is kind of impolite to make assumption about my own setup. It is also wrong.

Re:Stop Using Encrypted Email by joshuamorton on Friday February 21, 2020 @03:57PM (#22386643)
> On the mail server it looks up keys in DNS and if it founds it, automatically encrypts outgoing email.

So you're not talking about pgp/e2ee, you're talking about, like, SMIME or something.

> Emails at google is not encrypted.

They're at least as encrypted as they are on your server from what you've told me.

> That is kind of impolite to make assumption about my own setup.

Given that you don't seem to understand the difference between end to end encryption, in transit encryption, and encryption at rest, I'm going to say that no, I'm very confident that you haven't done this correctly.

> It is also wrong.

And that therefore no, gmail and Outlook are both more secure than your email server.

Re:Stop Using Encrypted Email by belorn on Saturday February 22, 2020 @10:39AM (#22391510)
I wish more people would study IT security since a lot of this kind of silly discussions are cleared up during the first lecture.

Basic 101 security. In order to calculate risk you take the risk threats minus risk mitigation. The bigger the threat, or the fewer the risk mitigations are, the bigger the risk.

You might have forgotten that in 2010 there was this data leak called cablegate. NSA lost 251,287 diplomatic messages. NSA did store them on an encrypted server, and used transit encryption, and yet the data leaked. A major risk to data security is access, and in that case an administrator with access leaked it.

With my mail server, that administrator is me. One of the larger benefits of personal servers.

When you compare Gmail and my mails server then you include social risk just as much as technical risk. You compare the physical risk, that is servers located in multiple places on the earth. You compare the political risk of a single entity that control 80% of the world email with a private email address used by one person. you compare targeted attacks with passive and optimistic attacks.

Lets put money where out mouths are. Want to bet that google will have a new data leak before I do? Looks like a very lucrative bet to me.

In 2018 Google had a data breach. five million user's data was compromised. In 2018 I had zero data breaches in any of my servers. Zero users data was compromised. I have been running my own server for almost 20 years and not a single bit has been lost.

Have I Been Pwned? has billions of leaked accounts, not a single which belongs to me. What about you?

> So you're not talking about pgp/e2ee, you're talking about, like, SMIME or something.

No. There are RFC for email security written in this century. The adaption of putting pgp keys in dns is not great however which is why personal email servers is currently better, but both solution works fine either way as long both side of the conversation does it.

Re:Stop Using Encrypted Email by joshuamorton on Saturday February 22, 2020 @07:10PM (#22394210)
> With my mail server, that administrator is me. One of the larger benefits of personal servers.

Ah I see, so you aren't actually worried about security, you're worried about privacy. Which We've been over when I said:

> Privacy is not security.

You also are ignoring a whole host of other risks, like data loss (your one server breaks, oops there goes your all of your email, etc.)

> Lets put money where out mouths are. Want to bet that google will have a new data leak before I do? Looks like a very lucrative bet to me.

Sure, I'll bet you $10,000 that my email will not be leaked before yours. Here's what we'll do, I'll tell you my email address, and you tell me yours. Mine is @gmail. Yours is hosted on your server. I'll then turn around and spend $8000 on a pen-test of your server, they'll exfiltrate data, and I'll win the bet and be up an easy $2,000.

> In 2018 Google had a data breach

Pause, hold on. No. In 2018, Google announced that there was a vulnerability that could allow semi-public information to be shared more widely than intended (literally it was things like name and phone number that you put on your G+ profile being shared with a wider than intended audience).

There was no evidence that this vulnerability had been used, and Google's own employees detected it.

> In 2018 I had zero data breaches in any of my servers

that you detected. Here, Google has a better track record than you: they are actively monitoring and red-teaming their own servers and systems to detect vulnerabilities. Do you?

So I'll put it bluntly one more time: you are putting your clients data at more risk by administrating your own mailserver than you would be if you let Google or MS do it for you. You can try to come up with all the counterarguments you want, but they are, as this article puts, security LARPing, not actual security best practices.

Re:Stop Using Encrypted Email by belorn on Monday February 24, 2020 @06:27AM (#22403174)
You are a bit funny. Just as you can hire a hacker, I could buy a zero-day exploit, or someone could hire mercenary and take down googles servers. It would not prove or disprove anything.

In the end, if you have your email leaked while I do not then that is what matters. Results. I have had zero leaked accounts. Most people have stuff that been leaked, and since you refused to answer, I assume you are listed in Have I Been Pwned?. You trusted someone to be secure and they were not. That was your choice, and it was the wrong one.

Re:Stop Using Encrypted Email by joshuamorton on Monday February 24, 2020 @12:34PM (#22406185)
So you're willing to take that bet then?
Re:Stop Using Encrypted Email by belorn on Friday February 28, 2020 @04:00PM (#22446319)
I have had the same setup been tested by two different pen testers, so yes, I would not mind that bet.

If you break the law however, which is what happens if a pen test a system without permission, then it doesn't really matter if you hack or use rubber hose tactics. Breaking the law is breaking the law. The police don't look kindly to bets under those situations.

I will also say the same thing I wrote to those two pen testers that tested our system. If you find any vulnerability I will happy help write the CVE report. What I did not tell them but will mention here is that I also happy take part in getting those bug hunting reward money that zero days exploits usually rewards. If you have for example a working exploit against current stable release of latest SSH then I am sure we can turn that in somewhere for a pretty good amount of money.

Re:Stop Using Encrypted Email by teddyh on Thursday February 20, 2020 @04:32PM (#22378845)
You seem to assume that the government will need to access all accounts at Google individually, and will have to work equally hard for the first one as for every subsequent one. Why is it not a likely risk that Google is thoroughly "compromised" by the government? We have seen this before, when another company was in a similar position regarding access to user's communication:

https://en.wikipedia.org/wiki/Room_641A