Slashdot Mirror


Fox-IT Completes the Picture On the Factored RSA-512 Keys

An anonymous reader sends in this excerpt from the Fox-IT blog: "During recent weeks we have observed several interesting publications which have a direct relation to an investigation we worked on recently. On one hand there was a Certificate Authority being revoked by Mozilla, Microsoft and Google (Chrome), on the other hand there was the disclosure of a malware attack by Mikko Hypponen (FSecure) using a government issued certificate signed by the same Certificate Authority. That case, however, is not self-contained, and a whole range of malicious software had been signed with valid certificates. The malicious software involved was used in targeted attacks focused on governments, political organizations and the defense industry. The big question is, of course, what happened, and how did the attackers obtain access to these certificates? We will explain here in detail how the attackers have used known techniques to bypass the Microsoft Windows code signing security model."

16 of 38 comments (clear)

  1. security fail by girlintraining · · Score: 3, Funny

    The big question is, of course, what happened, and how did the attackers obtain access to these certificates?

    The same thing that always happens, Pinky: Someone did a stupid thing. He or she was probably in management, since engineers are generally more careful (unless it's revision 2. Revision 2 is always evil)

    --
    #fuckbeta #iamslashdot #dicemustdie
  2. Hopefully this shuts up the certificate freaks. by Anonymous Coward · · Score: 5, Insightful

    For years now there have been some very vocal "security experts" who repeatedly trumpet how certificates and digital signatures somehow solve all security woes. Of course this isn't true, and we've tried to tell them this, but they refuse to listen.

    Hopefully these recent incidents will shut them up once and for all. Certificates are nothing more than yet another tool in our security toolbox. To elevate them beyond this is a stupid thing to do, as these incidents rightfully show.

    At the very least, I hope it makes these certificate freaks think twice before they recommend using certificates to solve some sort of a security problem.

    1. Re:Hopefully this shuts up the certificate freaks. by girlintraining · · Score: 4, Funny

      For years now there have been some very vocal "security experts" who repeatedly trumpet how certificates and digital signatures somehow solve all security woes.

      Funny I've never seen any of them in these here parts. We know how to handle dem security experts when they come 'round. Don't need none of that fancy ADP anti-viral intrusion penetration stuff. We don't download no screensavers or run javascript on every website, and we got big duke over there (He's our firewall dog). It's been good enough for us.

      --
      #fuckbeta #iamslashdot #dicemustdie
  3. Short answer by Baloroth · · Score: 5, Insightful

    RSA-512 is weak, can be factored in a few weeks (according to a comment, a couple days), and should never be used. All certificates should have CRL entries. Also, the Fox-IT International Blog writer needs English grammar courses.

    --
    "None can love freedom heartily, but good men; the rest love not freedom, but license." --John Milton
    1. Re:Short answer by Ruie · · Score: 2

      Fox-It is based in the Netherlands. This makes it likely that the author's native language is not English.

      Would you be able to form a coherent thought in Dutch that a native speaker wouldn't find awkward?

      Onze visie op de eigen slagkracht van de overheid.

    2. Re:Short answer by Forbman · · Score: 5, Funny

      "Onze visie op de eigen slagkracht van de overheid" ...which translates to:

      "Drink more Ovaltine".

    3. Re:Short answer by Anonymous Coward · · Score: 4, Interesting

      RSA-512 is weak, can be factored in a few weeks

      Also consider that RSA-768 took an estimated $100,000 USD worth of electricity to factorize in 2008 (plus intelligent folks to write the software). So, you should not even use RSA-768 unless the secret you are protecting is worth much less than $100,000.

      By comparison, RSA-512 security is a complete joke in 2011, and can be factorized for less than $250 if you don't know what you are doing, or for under $50 if you do. Implementing RSA-512 correctly in your application will cost more than it will take to break it.

      Conservatively, RSA-1024 would need about 1000 times the resources to factorize as RSA-768 used, so should be safe to use as long as your secrets aren't worth more than a few million dollars and only need to be protected for a few years.

      That means RSA-1024 is a huge bargain for the user -- significant improvement in short-term security for the user compared to using RSA-512, for only 2x the amount of CPU resources.

    4. Re:Short answer by marcosdumay · · Score: 2

      So, why not use 4 times the CPU resources and go with 2048 already? It should be safe for anything that is cheaper than creating a couple of stars...

    5. Re:Short answer by icebraining · · Score: 2

      Unless parent's job is to write in Dutch, I don't see how is that relevant.

    6. Re:Short answer by Kjella · · Score: 5, Insightful

      That means RSA-1024 is a huge bargain for the user -- significant improvement in short-term security for the user compared to using RSA-512, for only 2x the amount of CPU resources.

      Shame on whoever modded this up. The main calculation in RSA is a^b mod n, with n being the 512/1024 bit integer. Most implementations will scale with O(n^2), certainly never O(n). That said, even a 2048 bit key should be done in a few microseconds and there's no real reason not to do it proper. Remember that you generally you make a digest and just do one RSA operation to sign/verify it. When used for SSL you encrypt/decrypt a symmetric key then use AES for bulk encryption, again doing just one RSA operation. Of course if you got hundreds or thousands of connections per second that might be an issue, but normally it should not be.

      --
      Live today, because you never know what tomorrow brings
    7. Re:Short answer by arglebargle_xiv · · Score: 2

      Onze visie op de eigen slagkracht van de overheid.

      Ewige Schlangenkraft! Ewige Overheid!

    8. Re:Short answer by FrankSchwab · · Score: 5, Informative

      I agree with you, Kjella.

      The 48 MHz, ARM-7-like processor in our ASIC can do an RSA-2048 operation in 3-4 seconds. The 3000 MHz, 64-bit, OOE, multi-issue, TLA-up-the-Wazoo processor in the average $400 laptop should be able to do it in 3-4 milliseconds (http://www.cryptopp.com/benchmarks.html).

      There is no reason not to be using RSA-2048 on the desktop. On a Webserver getting hit by millions, the 6-8x increase in CPU times is going to start getting noticeable. /frank

      --
      And the worms ate into his brain.
  4. Government certificates by jrumney · · Score: 2

    The Slashdot story last week about the Malaysian Government certificate that was "stolen" referred to a certificate from a Department of Agriculture website, but I think the more newsworthy revelation in this article is that payments.bnm.gov.my was using one of the 512 bit RSA keys that has been compromised. BNM (Bank Negara Malaysia) is the equivalent of US Treasury, or Bank of England.

  5. should I check my Firefox Certificates? by Maow · · Score: 2

    I see DigiNotar and DigiCert Authorities in Firefox's Certificate Manager.

    Should I be concerned about these?

    Is there a revocation list I need to know about?

    Using Firefox 8.0 on Ubuntu, for what it's worth...

    1. Re:should I check my Firefox Certificates? by arglebargle_xiv · · Score: 4, Interesting

      I see DigiNotar and DigiCert Authorities in Firefox's Certificate Manager. Should I be concerned about these?

      Since the situation with DigiNotar and others isn't, by definition, allowed to happen in PKI, there's no way of dealing with it when it does. So the only way to handle it is for Mozilla to create fake certs for those CAs and add them to the FF cert store, effectively cache-poisoning themselves so that the fake certs, which aren't trusted, get used by FF instead of the real ones. Since they're not trusted, you get a verification failure when you try and use them.

      (See my earlier comment in the other thread about PKI being treated as something to roll your eyes at and/or joke about by security experts).

  6. Marginalize CAs by DrXym · · Score: 2
    CAs are a racket and actually impede rather than enhance security on the web.

    Big sites which can afford the $$$ can get a CA signature which is meaningfully secure and trustworthy. Which is great for them but not so good for the vast bulk of sites which might like to use encryption but don't because obtaining and maintaining a cert is a huge pain in the ass. So they continue with plaintext. And if we look at those big sites, surely a Toys R Us would find more worth in a cert which was signed by Lego, Microsoft, Visa, Mastercard and so on than by some obscure CA? Companies whom the visitor is likely to recognize and would have some kind of reciprocal business relationship.

    So instead of a rigid CA signature it seems to me a lot better to implement a web of trust. Google could host a key signing party and get Microsoft, Amazon, PayPal, Mozilla to attend. Each in turn might hold some satellite key signing parties to sign more keys and keep going out until the top 500 or so sites are covered by each. Every signatory signs with an email address and puts their public key up on a well defined location on that domain, e.g. the public key for security@keys.google.com might be at keys.google.com/security. A browser is preloaded with public keys for the major sites and is capable of caching any it doesn't have. There would also be some kind of revocation model. Trust could be graded anywhere from ultimate to weak. When a browser visits a site it validates the site's signatories and their trust to the ones in its list and poses an appropriate form of information or error to the user depending on what it finds.

    The point is that web of trust would allow sites to make their own trust in a manner that suits them and their visitors. And it doesn't stop CAs from selling their own signatures as part of the web of trust either much like some already do for PGP, or through the more rigid CA model. But what it does do is stop CAs being a mandatory part of the equation. People will be able to generating certs in an adhoc fashion. That to me is a far better model, and one which would stand a good chance of making security the default rather than an after thought that some sites practice and not others.