Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×
Encryption Privacy Security

Researcher Uses 379-Year-Old Algorithm To Crack Crypto Keys Found In the Wild (arstechnica.com) 17

An anonymous reader quotes a report from Ars Technica: Cryptographic keys generated with older software now owned by technology company Rambus are weak enough to be broken instantly using commodity hardware, a researcher reported on Monday. This revelation is part of an investigation that also uncovered a handful of weak keys in the wild. The software comes from a basic version of the SafeZone Crypto Libraries, which were developed by a company called Inside Secure and acquired by Rambus as part of its 2019 acquisition of Verimatrix, a Rambus representative said. That version was deprecated prior to the acquisition and is distinct from a FIPS-certified version that the company now sells under the Rambus FIPS Security Toolkit brand.

Researcher Hanno Bock said that the vulnerable SafeZone library doesn't sufficiently randomize the two prime numbers it used to generate RSA keys. (These keys can be used to secure Web traffic, shells, and other online connections.) Instead, after the SafeZone tool selects one prime number, it chooses a prime in close proximity as the second one needed to form the key. "The problem is that both primes are too similar," Bock said in an interview. "So the difference between the two primes is really small." The SafeZone vulnerability is tracked as CVE-2022-26320. Cryptographers have long known that RSA keys that are generated with primes that are too close together can be trivially broken with Fermat's factorization method. French mathematician Pierre de Fermat first described this method in 1643. Fermat's algorithm was based on the fact that any number can be expressed as the difference between two squares. When the factors are near the root of the number, they can be calculated easily and quickly. The method isn't feasible when factors are truly random and hence far apart. The security of RSA keys depends on the difficulty of factoring a key's large composite number (usually denoted as N) to derive its two factors (usually denoted as P and Q). When P and Q are known publicly, the key they make up is broken, meaning anyone can decrypt data protected by the key or use the key to authenticate messages.

So far, Bock has identified only a handful of keys in the wild that are vulnerable to the factorization attack. Some of the keys belong to printers originally branded as Fuji Xerox and now belonging to Canon. Printer users can use the keys to generate a Certificate Signing Request. The creation date for the keys was 2020 or later. The weak Canon keys are tracked as CVE-2022-26351. Bock also found four vulnerable PGP keys, typically used to encrypt email, on SKS PGP key servers. A user ID tied to the keys implied they were created for testing, so he doesn't believe they're in active use. Bock said he believes all the keys he found were generated using software or methods not connected to the SafeZone library. If true, other software that generates keys might be easily broken using the Fermat algorithm. It's plausible also that the keys were generated manually, "possibly by people aware of this attack creating test data." The researcher found the keys by searching through billions of public keys that he either had access to, were shared with him by other researchers, or that were available through certificate transparency programs.
UPDATE: The headline incorrectly stated that a "600-Year-Old Algorithm" was used. It's been changed to "379-Year-Old-Algorithm" to reflect the updated headline on Ars.
This discussion has been archived. No new comments can be posted.

Researcher Uses 379-Year-Old Algorithm To Crack Crypto Keys Found In the Wild

Comments Filter:
  • "Researcher Uses 600-Year-Old Aglorithm To Crack Crypto Keys Found In the Wild "

  • I want to learn what kind of modular arithmetic is the OP using to make it 1643 + 600 ~ 2022.
    • Now they fixed the age of the algorithm but they still spell aglorithm. I guess you can't fix two mistakes in one go. For completion, my comment arose because the first title to this article was:
      > Researcher Uses 600-Year-Old Aglorithm To Crack Crypto Keys Found In the Wild
      I don't care the lack of accuracy, I cared that even the most significant digit was way off!
  • Always mind your Ps and Qs,
    cuz sqrt(N)-c ^2 / 2c

  • The TFS has the following which is wrong:
    "Fermat's algorithm was based on the fact that any number can be expressed as the difference between two squares"
    The TFA has it correct:
    "Fermat's algorithm was based on the fact that any odd number can be expressed as the difference between two squares"

    • This is what happens when an article is published before the fact checker reads it over. Fixes don't propagate across copy and paste :D

      It is also on the internet, so why would you expect anything else?
  • Waiting for it to get into the AWS and SAP world https://www.moneyedugame.com/2... [moneyedugame.com]
  • UPDATE: The headline incorrectly stated that a "600-Year-Old Algorithm" was used. It's been changed to "379-Year-Old-Algorithm" to reflect the updated headline on Ars.

    Or roughly 347 billion Olympic-sized swimming pools.

  • One actual commercial product whose name I won't mention used an RSA key. As you most likely know, the private key is two large primes, and the public key is the product of two primes.

    The public key was of the form 2^123 - a*2^60 + b with a very small a. I guessed the primes were either of the form 2^63 +/- x and 2^60 +/-y for small x and y, or of the form 2^62 +/- x and 2^61 +/-y. Found them with pen and paper.

    It turned out they had used a table from The Art of Computer Programming and used the tenth
  • BTW Fermat takes k^2 steps to factor the product pq if abs(pq) lt k * sqrt (p). For two 1024 bit numbers the 2048 bit product can be factored in 1 step if the difference between p and q is less than 512 bits. You wouldnâ(TM)t have keys that can be cracked unless itâ(TM)s intentional stupidity.
  • How hard can it be to copy/paste "Hanno Böck" correctly, instead of turning it into "Hanno Bock" in TFS?

"Don't try to outweird me, three-eyes. I get stranger things than you free with my breakfast cereal." - Zaphod Beeblebrox in "Hithiker's Guide to the Galaxy"

Working...