10 ms·
Once-starving GnuPG crypto project gets a windfall. Now comes the hard part
- gcv 12y agoTFA says the GnuPG code is pretty rough. Has anyone (with crypto knowledge) looked at it? Confirmations and denials welcome.
- tptacek 12y agolibgcrypt is pretty rough, yes. The plus side is that GnuPG by design has a relatively limited attack surface. It's tough to conduct a side-channel attack that requires thousands of message stimulus-response tests to get a single key or message bit, given that each iteration of that attack will (in typical GPG usage) require manual intervention. As long as your crypto isn't "online", GPG is still a pretty safe bet. You can't say the same thing about a lot of newer crypto libraries. However, if you're doing something like encrypting a session cookie, you should use Nacl, not GPG.
- hellbanner 12y agoCan you expound on your last point?
- deleted 12y ago[deleted]
- girvo 12y agoIf you assume the rest of his comment is true (I'm no crypto expert but it seems intuitive enough for me, and he is a crypto expert!), having something like a session cookie (which can be attacker controlled) encrypted with GPG (which means it's now "online", without manual intervention) has now increased the attack surface considerably; it gives up the neat offline part of GPG and makes it easier to attack. That's how I understood it anyway!
- tptacek 12y agoYep.
- tedunangst 12y ago> each iteration of that attack will (in typical GPG usage) require manual intervention. How long do you think that will last when everyone encrypts all their email?
- peri 12y agoNot much to add here myself other than something for the folks who are less steeped in networking and security concerns: you should not try to audit this stuff yourself. Parent to this post can help you find a good auditor for your language. It's very tempting, especially for smart, multilingual, incredibly talented individuals to just roll this as if the libraries below you don't matter. Crypto is, unfortunately, the leakiest of the leaky abstractions you can end up building on. No matter what, I always have someone else (and preferably several someone elses) check my work when it comes to authentication systems and encryption. IANAL,EIIWTWNBFLA,UHTPMTGMROOTS. tpateck is a much better person to talk to than me if you need to find someone to help you deal with these issues most subtle.
- jessaustin 12y agoOk, I've got "Even If I Were This Would Not Be Free Legal Advice", but "UHTPMTGMROOTS" stymies me.
- peri 12y agoTo be honest, I'm not quite sure what I meant 18 hours later, but I think it was a joke about folks who know what my DCI number is.
- JoshTriplett 12y agoIt has gotten a lot better lately. It was designed in the era before people quite realized that everything should be a library first and an application using that library second, and that still shows. However, the most recent version pulls all the interesting cryptographic operations out of the application and puts them into gpg-agent, paving the way for a future libgpg that holds no key material and just asks the agent to perform signing/encryption operations. I'm really looking forward to that.
- joeyh 12y agogpg is crucial software, find a hole and you get your name in lights. I assume security researchers are looking at it all the time. Here's what they've found lately: CVE-2014-4617 (DOS only) CVE-2013-4576 (RSA Key Extraction via Low-Bandwidth Acoustic Cryptanalysis -- awesome, but not exactly practical) CVE-2013-4402 (DOS only) CVE-2013-4242 (RSA side channel attack) CVE-2012-6085 (invalid keys could corrupt memory) -- 5 years with not a single security hole -- CVE-2007-1263 (bug in signed message verification) Compare this with the security history of the browser you are using to view this comment, and weep..
- higherpurpose 12y agominiLock [1] seems like a good alternative to PGP for both file encryption and email. It's just so new and it should have more audits. [1] - http://minilock.io/ http://minilock.io/ They've recently launched Peerio as well which is kind of a closed email-like system with easy to use end-to-end encryption based on miniLock. https://peerio.com/ https://peerio.com/
- tptacek 12y agoFrom the team that brought you Cryptocat.
- proveanegative 12y agoWould you recommend against using the current version of Cryptocat?
- tptacek 12y agoDon't use Cryptocat.
- LeoPanthera 12y agoAnd yet the EFF gives Cryptocat top marks: https://www.eff.org/secure-messaging-scorecard https://www.eff.org/secure-messaging-scorecard
- tptacek 12y agoYes, that EFF scorecard is terrible.
- stinkytaco 12y agoCare to elaborate on that? I'm in the habit of more or less trusting the EFF, but I don't use cryptocat (no need for it) and I have heard that it is insecure. My understanding (possibly flawed), is that it was mostly tied to the JS Crypto implementation. What about the rest of the scorecard?
- mikkom 12y agoThe power of internet sometimes still amazes me. One article. 180keur in donations in a day.
- bpodgursky 12y agoHonestly... given that likely millions of people read about this yesterday, I think it's showing of how ineffective internet donations can be that it was a worldwide top story and only generate a few hundred thousand dollars. If only one project can be in the spotlight a day, there aren't that many projects that can get a respectable amount of funding this way.
- smacktoward 12y agoI imagine if there were a concerted fundraising campaign behind it, they could raise much more. The money they got off the story is just the lowest of the low-hanging fruit. According to TFA, he's raised nearly $300K so far; rather than using that all to hire coders, it might be worth taking $100K of that, setting up a foundation, and hiring a full-time fundraising/development person. A good one should be able to bring in enough to pay for themselves and ensure a steady stream of ongoing cash, which would be much better than having to rattle the tin cup when things get dire.
- acqq 12y agoIf I understood correctly, if given as salaries, half of the received money will go to taxes (for Germany, like most of Europe, it's typical tax to the salaries) as the developer handles everything through his company. And everything donated through paypal will also be additionally charged. https://g10code.com/about.html https://g10code.com/about.html It's certainly more than the developer expected or made in previous years, but all together it's not as much as it appears to be.
- mrsteveman1 12y ago> Matt Green, a professor specializing in cryptography at Johns Hopkins University, said he has looked at the GnuPG source code and found it in such rough shape that he regularly assigns chunks of it to his students for review. "At the end I ask how they felt about it and they all basically say: 'God, please I never want to do something like this again,'" Reading that reminded me of some comments[1] made by the author of ObjectivePGP, a very recent effort to create an OpenPGP compatible Objective-C library: > Today I regret that I have not made any notes during programming, so that I could now quote all my moments or doubt, all WTF? instances (I think that some of them are still present in source comments). Many sudden turns of events, lots of dead ends and a massive amount of uncertainty await for the person implementing this protocol. Now I understand why OpenPGP does not have many implementations — the protocol itself is simply quite difficult to implement. and > Now, with all I have learned during the time I spent working on it, I would have written the library in an entirely different way. ... I have even made a note in my TODO “Need to rewrite the whole thing!”. This is true, but if I keep on rewriting it all the time, I will not finish anything else. [1] http://blog.krzyzanowskim.com/2014/07/31/short-story-about-openpgp-for-ios-and-os-x-objectivepgp/ http://blog.krzyzanowskim.com/2014/07/31/short-story-about-o...
- raverbashing 12y agoCode is much more easily written than read, so there's that as well. Add in some personal preferences and you can easily find someone calling "good code" crap
- gaius 12y agoOne wonders why this fancy professor doesn't assign some students to contribute some patches.
- iso-8859-1 12y agoWhat does "contribute" mean? You can't make the maintainer accept, even if it's actually a good patch. How could this ever be fair?
- Spooky23 12y agoThe vitriol in the article is pretty surprising to me. Monday morning quarterbacking of an open source project is pretty noxious. Is there some other story that I'm not aware of here? This guy has sacrificed a lot and built something that is pretty critical to people all over the world. As a pretty casual, I recall directing direct answers from the author in hours from the author. If the code is mess, at least it has been implemented in such a way that the mess is harder to exploit.
- rodgerd 12y ago> The vitriol in the article is pretty surprising to me. Monday morning quarterbacking of an open source project is pretty noxious. Is there some other story that I'm not aware of here? The two most recent upsets were GPG deliberately breaking a whole bunch of compatability, meaning newer versions will not decrypt older files. For people who use GPG for e.g. securing transferred documents that might be called in court, it's pretty upsetting, to put it mildly, that the maintainer has told us we're on our own if we want to be able to access old files[1]. Since this is one of the core uses for GPG it's generated a lot of angst. The more obnoxious one for me is going out of his way to break a whole bunch of GPG integration, complete with acerbic error messages for people who had been relying on it. Making encryption harder to use will not improve security. [1] Sure, you can keep old sources around and hope GPG 1.x will still build 10 years from now, but that's a bit of a gamble.
- gcv 12y agoCould you please post some links with explanations about incompatibilities? I still use GPG 1.4.18; I'm willing to upgrade if necessary, but am I also supposed to re-encrypt everything?!
- fensipens 12y agoAFAIK, classic (1.4) and stable (2.0) use a different format/layout for ~/.gnupg than modern (2.1). Edit: see quoted text above.
- e12e 12y ago
- qween 12y agoOverall a bad article, but the issues it brings up are important: > The financial strain Koch has endured underscores a cruel irony that has only recently come to light. No, that's like saying that women being treated lesser than men "has only recently come to light". Open source, even (especially!) the core, important stuff is blasphemously underfunded, and it always has been. Everyone knows this, even those who deny it. Furthermore, the psychology is uncomfortably close to the psychology of misogyny: historical precedent, deeply rooted social structures (in this case driven by software economics), by and large nobody wants to pay the significant costs of fixing it, and every now and then a truckload of goodwill is dumped on the fire to douse it so we can all forget about the broken system we're working with until the next time it breaks.
- sokoloff 12y agoI don't think you're going to find a lot of sympathy in drawing parallels between gender equality issues and open-source issues. (And you're likely to get blowback for stepping on a third rail type of issue, whether fair or not.) The crucial difference, and I believe flaw in your argument, is that female developers being paid less than male developers to do the same job is much more clear-cut evidence of some kind of bias than a developer on an open source project being paid less than a developer on a closed-source project. The latter is enough apples to oranges that you might as well be wondering why an entry-level doctor gets paid more than an entry-level airline pilot.
- justizin 12y ago$60k is hardly a windfall, but it is a lifeboat.
- lacksconfidence 12y agoIts actually 120k in direct donations, 60k from CII, 50k from facebook and another 50k from stripe. Even at just under 300k it still isn't much for a development team.
- JamesSwift 12y agoFacebook and Stripe each pledged 50k per year, not one time. So assuming they keep their end of it, that is 100k/yr guaranteed for the project.
- justizin 12y agoDidn't catch that, yeah, that is more like a windfall. :)
- andrewstuart2 12y ago> It's encouraging to see the GnuPG project benefitting from similar largess. But it also raises the question: how is the money best spent? However the heck they want to spend it. These are donations. If the guy has been working so hard just to make the world a better place and he wants to disappear with the money, I'd be bummed and I imagine lots of other people would too, but they were donations. A "thank you for busting your back for so long", not a "hey, now you've made it to the big leagues, better saddle up (the way I want you to, by the way)." We've been using this software (probably worth many millions a year in the private sector) for free for how long? At least for libgcrypt, the initial commit was November 8, 1997. 17+ years ago. That said, what are the chances this awesome, passionate developer is going to deliberately drop this project he's poured blood, sweat, and probably some tears into? What are the chances that he doesn't labor over the decision on how to spend the money, and consult his peers? I sincerely hope this doesn't turn into some donation-gate fiasco where everybody's miffed about how the money that was freely donated got spent. This guy has changed the world and deserves to take the money as thanks and not added responsibility. He's already been shouldering that responsibility for years.
- PuffinBlue 12y agoHear hear!
- alecco 12y agoI'm more concerned he might mismanage the money. He seems like a really nice guy but seems to have no great business/finance perspective. Still, he is free to do whatever the fuck he wants with my small donation. I feel like I owe him a lot more than that.
- copsarebastards 12y ago> But it also raises the question: how is the money best spent? No, it fucking doesn't raise that question. As far as I am concerned the money is already spent. And that's the way it should be, because Werner Koch has already devoted years of his life to developing this stuff.
- copsarebastards 12y ago> The main problem with the code, he said, is it hasn't been properly maintained over the years. Maybe this is because it was being maintained by a single underfunded developer. I'm not sure how the fact that we're now funding that programmer enough that he can hire a second developer (as was his stated intent) that this brings up questions of whether the money is well spent. Ars Technica? More like Talking-out-their-arse Technica. Non-technical people writing about code critiques they can only understand second-hand is pretty much worthless.
- mirimir 12y agoThe Ars article ends with: "A real audit of the [GnuPG] code would be great," Green said. "The problem is it would be really expensive and I'm not sure it's worth it." I wonder what Green means as the alternative to auditing the GnuPG code. Doing nothing? Or could he be arguing that it would be better to start from scratch? Is there a replacement in the wings? Or even as a glint in someone's eye?
- Dosenpfand 12y agoYes, there's NetPGP: http://www.netpgp.com/ http://www.netpgp.com/
- mirimir 12y agoThat is interesting. I wonder if Enigmail would support NetPGP as an alternative.
- tempestn 12y agoFTA: "Meanwhile, Google and Yahoo are proceeding with End-to-End, a project that aims to rewrite PGP code from scratch to make e-mail encryption easier."
- mirimir 12y agoIn <https://github.com/google/end-to-end> https://github.com/google/end-to-end> I see that "End-To-End is a Chrome extension that helps you encrypt, decrypt, digital sign, and verify signed messages within the browser using OpenPGP." That's rather limited.
- zvrba 12y agoDon't bother, donate to the NetBSD team instead: http://www.netpgp.com/faq.html http://www.netpgp.com/faq.html WK has unreasonable opinions, e.g., see this thread: http://www.reddit.com/r/programming/comments/2uw2gt/the_worlds_email_encryption_software_relies_on/cod1u7t?context=3 http://www.reddit.com/r/programming/comments/2uw2gt/the_worl... Having tried to integrate PKCS#11 support into GnuPG (rejected with bogus and dodgy arguments, see threads documented here: http://zvrba.net/software/gpg_pkcs11.html http://zvrba.net/software/gpg_pkcs11.html), I can testify that the codebase is messy and complex. Just ditch it and make something from scratch. I have more faith in the competence of NetBSD-associated people than in WK.
- markokrajnc 12y agoDear Werner - if you are reading this: Please ignore all the articles and comments about "how is the money best spent"! They don't know what they are talking about! Instead take 2-3 weeks free and bring your whole family somewhere in Mediterranean Sea to the long deserved holidays so you can rest from all the financial burden, take a fresh breath and gather new energy and motivation for the project! And please again: ignore those comments! Greetings from Munich!
- ptaipale 12y agoIndeed. I notice he has a family to support, otherwise I'd have proposed "please use half of the money on wine, women and song, and the rest you can just waste". Whatever he decides to do with the donations, I'll say he's earned the right to do anything he wants. I fear he'll anyway just hire some help for himself to work on this stuff...
- secfirstmd 12y agoWhats amazing, is that lives will be saved because of these donations. Human rights defenders, journalists, activists etc...
- xvilka 12y agoHopefully GnuPG developer[s] will also address Mailpile complaints[1]. And JSON-friendly interface as a part of it. [1] https://www.mailpile.is/blog/2014-10-07_Some_Thoughts_on_GnuPG.html https://www.mailpile.is/blog/2014-10-07_Some_Thoughts_on_Gnu...
- A_COMPUTER 12y agoIf he keeps doing what he does every day, except with financial security, these donations have done their purpose as far as I'm concerned.