// TOM'S HARDWARE US — HARDWARE & GADGET
Novel attack slashes computing power needed to crack textbook RSA cryptography
Not very practical yet, but could serve as the basis for future improvements.
When you purchase through links on our site, we may earn an affiliate commission. Here’s how it works.
Factoring attacks against the RSA algorithm were generally considered infeasible, but that may change dramatically if the findings in a paper from UC San Diego (California) and Inria Nancy (France) prove correct after peer review. The paper outlines a new attack that breaks RSA in record time. That's concerning because RSA-based encryption was in use for quite some time, and although it's been generally deprecated in favor of ECC and post-quantum algorithms, it's still employed today in a substantial portion of services.
Assuming the research holds up and the attack conditions are met, the number of necessary operations for cracking an RSA-encrypted key (and thus, inspecting network traffic encrypted with it) drops dramatically. (From 280, 2112, 2128, and 2144 down to 265, 290, 2105, and 2119 — for 1024, 2048, 3072-, and 4096-bit key lengths, respectively.)
Even for the 1024-bit keys, performing 265 calculations is still a lot, but it starts getting into the range where it's feasible for an entity with large resources at their disposal, like a number of state actors. Crucially, the paper indicates that the algorithms the team used are far from optimized and could hypothetically be significantly sped up after optimization passes, potentially with the help of AI tools and by leveraging GPUs for the task.
The attack only works against the textbook (or "raw") variant of RSA, which isn't widely used for commonplace computing like website certificates and remote access, but is nevertheless present in services like Cloudflare Privacy Pass, iCloud Private Relay, and Private Cloud Compute. Equipment and services using PKCS #11, like many smart cards, USB security tokens, code-signing pipelines, hardware security (HSM) and trusted platform (TPM) modules also use this variation. But fulfilling the attack conditions is much easier said than done.
In order to reach a point where an attacker can decipher data, they first must perform an exceedingly high number of queries against the key they're attacking, collecting enough data points from the key's oracle. In practical terms, this often means repeatedly poking a live server that's using that key to encrypt traffic, billions of times over, though it can also be done against a standalone hardware device.
In the practical context of an encryption algorithm, an oracle takes a number in, runs it through a computation involving a private key, and spits it back out, without revealing its key. The textbook variant of RSA under attack here lets the oracle be queried with any number, thus allowing the attacker to collect enough data points to perform the mathematical wizardry described in the paper. They can then proceed to throw a lot of computing power to ultimately inspect whichever traffic they captured that was using that same encryption key.
As network administrators have certainly figured out by now, running billions of queries against a live service is almost guaranteed to earn them an IP ban, among other measures. It's a reasonable assumption that entities like Cloudflare and Apple have those kinds of controls in place. Still, not everyone does, especially in the case of key management services that aren't closely monitored, including hardware-based ones. The scientists worked their magic on Thales Luna HSMs, in both hardware and online service form.
Get Tom's Hardware's best news and in-depth reviews, straight to your inbox.