Hacker News new | ask | show | jobs
by himata4113 6 days ago
SSH has been warning about RSA host identities being unsafe for awhile. The threshold for RSA being secure has went from 256bit to 4096bit in less than 20 years.

Can't predict the future, but this reeks of "XXX has been mathematically verified to be vulnerable to AI assisted quantum compute"

4 comments

That's what I'm feeling too. Maybe a proof that lattice cryptography can be broken with a polynomial-time quantum algorithm, the way that Shor's algorithm breaks RSA.

This could be like a real and true version of what was attempted 2 years ago but turned out to have human errors https://eprint.iacr.org/2024/555

This would be very problematic because of all the efforts that have gone into adopting lattice cryptography for our post-quantum needs. NIST has spent years and years preparing for the day when quantum computers get powerful enough and something like this would throw all of that away.

That would be a sobering development for the post-quantum transition. On the other hand, it would be exciting to see hash-based cryptography take center stage, particularly for digital signatures.
Oh no, a quantum algorithm. I'll be using 1024 and sleeping sound.
None of the above are quantum algorithms.

Also, I can’t tell if you’re joking, but RSA-896 was broke recently, apparently for funsies, by someone at Anthropic. There’s nothing novel here - they threw lots of hardware at the problem and threw Claude at writing the software (using, AFAIK, existing algorithms).

I would assume that anyone with lots of compute, money and inspiration can break RSA-1024.

People seem to fundamentally misunderstand what the number represents. RSA1024 despite only being 14% larger requires 30x the amount of compute. RSA2048 works require 10^9 more compute.

Without algorithmic breaks you’re not going to do anything interesting. The recommendation for a long time by the way is to use RSA4096.

To this day I don’t understand the hubbub about it except as h just another milestone to tell you not to use RSA1024. Even still you’d need >60k of cutting edge GPUs to do this or between 1.5-2.5B just to crack keys that haven’t been supposed to be in use since 2013.

Cognition and Anthropic’s record results for largest key cracked aren’t a serious attack on RSA.

> RSA1024 despite only being 14% larger requires 30x the amount of compute.

Which means that it would be insane to use it without some really good reason (like expensive hardware that can't handle more and can't be replaced, and low value applications or additional safeguards). Something that can provably be broken with only 30x more compute than an effort that has already been done, publicly, for funsies, is highly likely to become practically breakable for criminals in the near future, and store-and-decrypt may be a thing.

> Even still you’d need >60k of cutting edge GPUs to do this or between 1.5-2.5B

I've seen an estimate that "34 extra bits of key length cost about 2.6 times the computation" which would be 37x to go from 896 to 1024 and roughly matches your 30x estimate.

https://saweis.net/posts/rsa-896.html states RSA-896 took 30 GPU-years (10 days x 2048 GPUs part time). Those were H100's, i.e. 4 year old GPUs, which you can rent for around $3/hour. So assuming 1110 GPU years for RSA1024, that puts the upper bound for the expected cost of an attack at $29M per broken key. Much less for someone who has access to idle GPU capacity.

As I understand it you don't need the full size of the cluster so the billions to buy the GPUs outright make no sense. 2000 GPUs would give you 55 GPU years, not 30, in 10 days, and you don't necessarily need the break to happen in 10 days.

Most importantly, attacks only get better. The software could still have plenty of optimization/tuning potential.

RSA1024 has been recommended against for good reason for like 13 years. RSA2048 isn’t falling unless there’s a drastically faster factoring algorithm (like P=NP with a non galactic algorithm) - that’s 10^9 more compute required than RSA1024.

RSA1024 isn’t in use unless you’re incompetent which is why I said it’s like ~5B in infrastructure and millions of $/day to operate if you’re cracking these 24/7. Each key is many tens of millions of dollar in rented compute. It’s feasible if an RSA1024 key is somehow protecting something super important, but not useful in any other way.

> Most importantly, attacks only get better. The software could still have plenty of optimization/tuning potential.

You’re understanding is off. It’s purely faster hardware. The new record is still using the same GNFS algorithm without any additional meaningful optimization/tuning. I suspect you’re trying to apply your non-cryptographic experience to cryptography which doesn’t work the same way at all.

I’m replying to someone literally saying they think 1024-bit RSA is safe. 30x cost to break over something already broken is not much of a safety margin.
RSA2048 is 10^9 more bits. You should still be using ECC since it's much more efficient crypto per bit of key material, but I don't think we'll be seeing practical RSA1024 breaks let alone RSA2048 unless a hypothetical QC gets built (which I also am betting against).
It is when whatever you're protecting isn't worth the running cost of 60,000+ GPUs.
Quantum computers are actually right around the corner. There have been massive advances in recent years.
Quantum computers are not a uniform thing, they vary in “processing power” just like a normal one, so specificity is needed.
Not in the sense that I'm referring to. We're quite close to having a single "logical" qubit for long-lived gate operation computers, across a number of different quantum modalities. Only one needs to work. After that, there are methods for making reliable quantum interconnects to scale up 1-qubit systems into N-qubit switched computers at datacenter scale, and these methods probably take 2-3 years to perfect (it's based on existing MEMS-switched photonics tech, not finicky quantum stuff, so it really is more of an engineering challenge). Quantum compute at a scale needed to break crypto systems by 2030 is quite reasonable.
> from 256bit to 4096bit in less than 20 years

That's misleading. Not every number is a prime, so the number of bits you need to store the number grows faster than its security rate. Have there been advances in breaking RSA more than DES/AES or is this just normal expected progression, given that computers get significantly faster at the same price point with basically each CPU generation?

> Have there been advances in breaking RSA more than DES/AES or is this just normal expected progression

Yes! AES and DES are almost as strong today as they were first introduced, in terms of the complexity of mounting an attack on them. RSA has been made much weaker than when it was invented because of advances in (classical) factoring algorithms. About half the increase in key size from the 1970s is from improved algorithms, and half from improved computers.

1970 is not 20 years ago though. The person I was replying to spoke of 2006 as the comparison point. RSA is from 1977 and SSL from 1997 iirc. That people only looked into (and found) better factoring techniques since 1970 has got to be the least surprising timeline possible

edit: as part of replying to another comment, it turns out that the best attack dates to 1993 -- pre-ssl! That is actually surprising but also still doesn't fit the claim about the factoring problem advancing significantly (or at all) in the last decades

We are still using GNFS, yes, but many tricks have been invented since the 90s that make the modern GNFS implementations many times faster than the old ones (better polynomial selection, better algorithms for the sieving step). If you compare [1]'s estimate of the instruction cost of 90s GNFS on RSA-768 to how much it took in reality, in 2009 [2], it improved about 40x. I had the robot extrapolate it out to cover the newer improvements up to 2026, since [1] doesn't have estimates for the RSA numbers that have since been factored, but it's probably around 130x. That's comparable to how much the hardware got cheaper in that time!

[1] https://www-users.cse.umn.edu/~odlyzko/doc/future.of.factori... [2] https://members.loria.fr/EThome/files/rsa768.pdf

> About half the increase in key size from the 1970s is from improved algorithms, and half from improved computers.

Would you have a source for that? I would be interested to share with friends and I know they will ask for one

Yes, you might expect there to be 2^4096/2^256 = 2^3840 as many 4096-bit primes as there are 256-bit primes, but there are only approximately (256/4096)2^3840 = 2^3836 as many. Still, that's a lot of extra bits.
I don't think it is due to the looming threat of quantum computers and the seemingly constant stream of stronger algorithms against RSA chipping away at it 1 bit at a time.
this is much more than aes. AES has lost ~0 bits from better attacks. RSA has lost hundreds
Do tell. https://en.wikipedia.org/wiki/Integer_factorization mentions no better attack is known since GNFS in 1993, save for Shor's algorithm from 1994 that requires a quantum computer. The post we're replying to claimed RSA is losing a ton of security over the last 20 years (that's 2006, I needed to remind myself)

If AES had started with 32-bit keys and we kept upgrading it to 40 bits, 48 bits, 64 bits, etc. as computers got faster, you could have made the same claim about how many updates we needed, implying that the writing is on the wall for this poor algorithm. It's a ridiculous statement from my pov

faster physical hardware computations are part of the problem. remember that RSA has to be secure for the next xxx years, that's why the ranges are a bit hard to think about. If anything is treatening that 2048 might be defeated in the next xx years that means only 4096 is safe.
Still the same argument
> The threshold for RSA being secure has went from 256bit ... in less than 20 years

256-bit RSA was already broken in 1991: https://en.wikipedia.org/wiki/RSA_numbers#RSA-100

Subexponential factoring algorithms predate RSA, and the better ones that made RSA-256 pretty obviously insecure are almost as old as RSA itself.

IMO RSA security was really never taken seriously. It’s not just subexponential factoring - PKCS 1.5 was kind of a joke.