skip to main content
10.1145/3133956.3133969acmconferencesArticle/Chapter ViewAbstractPublication PagesccsConference Proceedingsconference-collections
research-article

The Return of Coppersmith's Attack: Practical Factorization of Widely Used RSA Moduli

Published:30 October 2017Publication History

ABSTRACT

We report on our discovery of an algorithmic flaw in the construction of primes for RSA key generation in a widely-used library of a major manufacturer of cryptographic hardware. The primes generated by the library suffer from a significant loss of entropy. We propose a practical factorization method for various key lengths including 1024 and 2048 bits. Our method requires no additional information except for the value of the public modulus and does not depend on a weak or a faulty random number generator. We devised an extension of Coppersmith's factorization attack utilizing an alternative form of the primes in question. The library in question is found in NIST FIPS 140-2 and CC~EAL~5+ certified devices used for a wide range of real-world applications, including identity cards, passports, Trusted Platform Modules, PGP and tokens for authentication or software signing. As the relevant library code was introduced in 2012 at the latest (and probably earlier), the impacted devices are now widespread. Tens of thousands of such keys were directly identified, many with significant impacts, especially for electronic identity documents, software signing, Trusted Computing and PGP. We estimate the number of affected devices to be in the order of at least tens of millions.

The worst cases for the factorization of 1024 and 2048-bit keys are less than 3 CPU-months and 100 CPU-years on single core of common recent CPUs, respectively, while the expected time is half of that of the worst case. The attack can be parallelized on multiple CPUs. Worse still, all susceptible keys contain a strong fingerprint that is verifiable in microseconds on an ordinary laptop -- meaning that all vulnerable keys can be quickly identified, even in very large datasets.

Skip Supplemental Material Section

Supplemental Material

References

  1. Trüb Baltic AS. 2017. Estonian Electronic ID card application specification, EstEID v. 3.5. http://www.id.ee/public/TB-SPEC-EstEID-Chip-App-v3.5-20170314.pdf. [2017-08-28].Google ScholarGoogle Scholar
  2. Axalto and Zetes. 2004. Public user specification BelPic application v2.0. http://www.foo.be/eID/opensc-belgium/BEID-CardSpecs-v2.0.0.pdf. [2017-08-28].Google ScholarGoogle Scholar
  3. Luciano Bello. 2008. DSA-1571--1 openssl -- predictable random number generator. (2008). http://www.debian.org/security/2008/dsa-1571. [2017-08-28].Google ScholarGoogle Scholar
  4. Elwyn R. Berlekamp. 1967. Factoring Polynomials Over Finite Fields. Bell System Technical Journal Vol. 46, 8 (1967), 1853--1859. 1990. Cryptanalysis of short RSA secret exponents. IEEE Transactions on Information Theory Vol. 36 (1990), 553--558.Google ScholarGoogle ScholarCross RefCross Ref
  5. David Wong. 2015. Implementation of Coppersmith attack (RSA attack using lattice reductions). (2015). https://www.cryptologie.net/article/222/implementation-of-coppersmith-attack-rsa-attack-using-lattice-reductions/shownotecit. [2017-08--28].Google ScholarGoogle Scholar
  6. Oded Yacobi and Yacov Yacobi 2005. A New Related Message Attack on RSA. In Public Key Cryptography -- PKC 2005 (Lecture Notes in Computer Science), Vol. Vol. 3386. Springer-Verlag, 1--8. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. Yubico 2017. PGP, Importing keys. https://developers.yubico.com/PGP/Importing_keys.htmlshownotecit. [2017-08--28].Google ScholarGoogle Scholar

Index Terms

  1. The Return of Coppersmith's Attack: Practical Factorization of Widely Used RSA Moduli

      Recommendations

      Comments

      Login options

      Check if you have access through your login credentials or your institution to get full access on this article.

      Sign in
      • Published in

        cover image ACM Conferences
        CCS '17: Proceedings of the 2017 ACM SIGSAC Conference on Computer and Communications Security
        October 2017
        2682 pages
        ISBN:9781450349468
        DOI:10.1145/3133956

        Copyright © 2017 ACM

        Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

        Publisher

        Association for Computing Machinery

        New York, NY, United States

        Publication History

        • Published: 30 October 2017

        Permissions

        Request permissions about this article.

        Request Permissions

        Check for updates

        Qualifiers

        • research-article

        Acceptance Rates

        CCS '17 Paper Acceptance Rate151of836submissions,18%Overall Acceptance Rate1,261of6,999submissions,18%

        Upcoming Conference

        CCS '24
        ACM SIGSAC Conference on Computer and Communications Security
        October 14 - 18, 2024
        Salt Lake City , UT , USA

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader