|
|
Log in / Subscribe / Register

Email insecurities

By Nathan Willis
November 13, 2013

As the software development world continues to react to the Edward Snowden revelations about pervasive government surveillance, a lot of attention has been paid not just to hardening the various implementations of core Internet services against exploitation, but to what needs to be fixed in the core protocols as well. While there is clear room for improvement where web traffic is concerned—from the certificate authority system to SSL/TLS—there is far less agreement on what can be done with email. Some bold new projects have been announced, but it remains to be seen if replacing SMTP or IMAP can put a stop to the real threat posed by spying conducted by law enforcement agencies.

Lava down

Prior to August 8, 2013, Lavabit offered an encrypted email service that boasted of second-to-none privacy protection for its users. The cornerstone of that protection was that user data was securely stored to the point that not even Lavabit itself could decrypt and read any users' stored messages. In July, however, news broke that Edward Snowden was a user of the service, and the US government got a search warrant requiring Lavabit to hand over its private SSL keys so that investigators could examine the account of an unnamed customer—presumably Snowden. Lavabit objected to the warrant, arguing that surrendering the keys would expose not just the account named in the request, but all of its other customers, too. The courts did not regard that complaint as particularly persuasive, and ordered Lavabit to surrender the keys immediately or face a fine of $5,000 per day. On August 8, the company turned over the keys, and shut down the email service.

Because Lavabit stored customer messages in encrypted form on its servers, the supposition of many was that the SSL keys could only be used to tap connections between clients and servers. Thus, by shutting down the service, Lavabit was making it impossible for the government to eavesdrop on the SSL connections, since none were taking place.

Although this string of incidents was particularly high-profile, it was not the only one of its kind. On August 9, another encrypted email service provider, Silent Circle, shut down its service as well, citing the Lavabit case as the cause. Silent Circle then proceeded to erase its private keys, even though they had not been requested by the government.

The service shutdowns might be regarded as nothing but two isolated closures (albeit casualties of government interference), except that Lavabit and Silent Circle subsequently announced the Dark Mail Alliance, a joint project with the stated mission of bringing "the world our unique end-to-end encrypted protocol and architecture that is the 'next-generation' of private and secure email." Dark Mail was announced on October 30, and the announcement says that the group will make both the system architecture and the protocol open source. But, other than that (certainly admirable) goal, no visible work has emerged from the project yet.

The dark side

Despite the general agreement that email needs a major overhaul—and that PGP-style encryption is probably not going to catch on in a big way—not everyone finds the approach taken by Lavabit worth following. On his blog, Moxie Marlinspike posted an in-depth critique of Lavabit's design, noting in particular that the company's claim that customer email could not be read by Lavabit administrators seemed to be entirely untrue. Lavabit did store messages in encrypted form on the server side, but it also stored the decryption key and that key's password on the server.

Unlike the design of most secure servers, which are ciphertext in and ciphertext out, this is the inverse: plaintext in and plaintext out. The server stores your password for authentication, uses that same password for an encryption key, and promises not to look at either the incoming plaintext, the password itself, or the outgoing plaintext.

The ciphertext, key, and password are all stored on the server using a mechanism that is solely within the server’s control and which the client has no ability to verify. There is no way to ever prove or disprove whether any encryption was ever happening at all, and whether it was or not makes little difference.

In fact, Marlinspike noted, the government's warrant requesting Lavabit's SSL keys suggests that the government was more interested in decrypting historical SSL traffic that it had collected, rather than tapping new connections. If true, of course, then Lavabit's shutdown means the problem won't get any worse (since no new traffic is there to be collected), but it does not protect the service's users against the real threat.

Marlinspike recommends two other email projects worth following rather than further work from the Lavabit team. Although he has not made comments about Dark Mail directly, Marlinspike does express disinterest in donating to Lavabit founder Ladar Levinson's Kickstarter project, which involves both releasing the Lavabit source code and developing Dark Mail. The Kickstarter project is titled "Lavabit's Dark Mail Initiative" and says:

Along with preserving existing functionality, the team will build in support for the Dark Mail protocol. Dark Mail, a newly developed messaging protocol, is designed to provide end-to-end encryption of both the message itself and the email in transit. Because encryption will be integrated into the protocol itself, it will be invisible to the user.

Marlinspike concludes his analysis with words of caution about Lavabit:

There is current an effort underway to release the Lavabit infrastructure under an open source license, which I worry will result in more of the same. Given its technical foundations, I wouldn’t advocate supporting the continuation of the Lavabit project.

Instead, Marlinspike points his readers toward Mailpile and the Leap Encryption Access Project (LEAP). Mailpile (which we looked at in September), is a local mail server with a web UI that does not rely on third-party storage. LEAP is an effort to build an easy-to-deploy encryption system for service providers. Email is one of several use-cases targeted by the project. Marlinspike also suggests following Trevor Perrin on Twitter in order to follow the latest on Perrin's work developing a secure email protocol.

Of course, even that list of secure email replacements is far from exhaustive. At least five others are mentioned in the comments on Marlinspike's blog post (BitMail, FlowingMail, Mailvelope, Pond, and Scramble). Ultimately it is impossible to meaningfully assess the security of any protocol or application that has not yet been deployed, so the final word on the Dark Mail Alliance remains out for the foreseeable future. As Marlinspike's critique points out, however, high publicity does not guarantee security. The Lavabit shutdown debacle certainly had the world's attention, but the approach it took to security might not be the best one to bank on from here on out.

Index entries for this article
SecurityEmail
SecuritySurveillance


to post comments

Email insecurities

Posted Nov 14, 2013 10:32 UTC (Thu) by Seegras (guest, #20463) [Link] (3 responses)

From the point of view of a security system, all those social attacks are the same.

A government ordering to hand over the encryption keys is the same as a competitor bribing, or the mafia blackmailing, a system administrator to do the same.

Email insecurities

Posted Nov 14, 2013 11:04 UTC (Thu) by dlang (guest, #313) [Link] (2 responses)

on one level you are correct, but on another you are not.

bribery/blackmail/etc of a single admin can reveal the same data, but normal corporate checks and balances work to block this (i.e. if more people in the company found out about it, it would be blocked)

While a 'legal' government request brings those same corporate checks and balances on the other side, the help reveal the information and hide the fact that anything happened.

The government is also much larger than the mafia and all competitors combined, with far more resources, so it's also far more likely that the government is going to make a request.

Email insecurities

Posted Nov 14, 2013 14:13 UTC (Thu) by raven667 (subscriber, #5198) [Link]

Schneier made the point a few weeks ago but the main value is that from the perspective of technical audit, security or encryption systems, an insider attack due to a rogue admin looks the same as an NSL or subpeona and so the technical measures you would use to mitigate rogue insider attacks are also useful against nation states. For example if customer data is encrypted client-side and the storage provider doesn't have the keys, they have nothing to turn over due to NSL, if they don't keep historical raw log data, they have nothing to subpeona. In the context of Lavabit, their encryption was only for the data at rest, the data in flight was only protected by SSL which the provider could MITM if they wanted and sniff customer passwords or customer data.

Email insecurities

Posted Nov 15, 2013 1:22 UTC (Fri) by giraffedata (guest, #1954) [Link]

Here's another difference: if the competitor and the mafia want to mount such an attack, and keep the fruits, they have to get past the government first. But who's going to check the government?

Email insecurities

Posted Nov 23, 2013 6:30 UTC (Sat) by glaesera (guest, #91429) [Link]

Email insecurities

Posted Nov 24, 2013 5:16 UTC (Sun) by naptastic (guest, #60139) [Link] (3 responses)

It would be helpful if there were PGP plugins for all of the major email clients (including webmail clients) that weren't complete pains in the ass to use.

I've spent hours learning how to use them, in the hopes of teaching my friends and family so we can all communicate our various bread and cookie recipes securely. I have abandoned this goal. The plugins out there are COMPLETELY inaccessible to all but the most determined hackers.

(Perhaps this is how the NSA sabotaged us? ;)

Email insecurities

Posted Nov 24, 2013 12:35 UTC (Sun) by mathstuf (subscriber, #69389) [Link]

I don't think the NSA cares about PGP much. They're afraid of anonymity more than encryption, so PGP is probably something they'd *want* since they can then trust the web of trust more than "may be a spambot". If they really want the contents, I'm sure they can get warrants from one of their rubber stamp courts.

Email insecurities

Posted Nov 24, 2013 13:24 UTC (Sun) by pizza (subscriber, #46) [Link] (1 responses)

> It would be helpful if there were PGP plugins for all of the major email clients (including webmail clients) that weren't complete pains in the ass to use.

There are PGP plugins for every major standalone email client. (IMO it's pointless in a webmail environment for the same reason that DRM is pointless..) But the PITA part is really a matter of key management/distribution.

Things are better now than ever, but at the end of the day, you have to have a clue about trust models and whatnot -- which requires a more educated user.

Still, I do find it sad how few folks actually sign their email, given how simple that is to do now.

Email insecurities

Posted Nov 25, 2013 12:00 UTC (Mon) by jezuch (subscriber, #52988) [Link]

> There are PGP plugins for every major standalone email client. (IMO it's pointless in a webmail environment for the same reason that DRM is pointless..) But the PITA part is really a matter of key management/distribution.

Well, I don't know. I somehow managed to get email signing to work in Kmail a couple of years ago. I think (I don't remember exactly) it required reading detailed instructions, installing additional software, setting up environment variables and magical per-session daemons in some obscure text files; key management was the easiest part, really. Then it suddenly broke. And now I have no idea how to make it work again. (It was prior to the transition to Kmail 2, where it appears to be broken the same way.)

There was an effort to make Kmail's cryptography support easier to use, back then, but I don't think it got very far.


Copyright © 2013, Eklektix, Inc.
This article may be redistributed under the terms of the Creative Commons CC BY-SA 4.0 license
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds