r/AskComputerScience • • 19h ago

ELI5 what is the worry about rsa potentially breaking due to AI and the rush to move to post quantum cryptography?

So there is a worry about AI breaking rsa. What is rsa and ecc ?? How will post quantum cryptography be more resistant to AI??

0 Upvotes

41 comments sorted by

9

u/TonySu 14h ago

The rumour is that the AI hyperscalers have a proof that classical computers can do quantum polynomial algorithms in polynomial time. If something is solvable in polynomial time, then it’s not cryptographically safe.

We know that RSA can be solved in polynomial time by quantum computers, if there is indeed a proof that P = BQP then there would exist an algorithm to solve it in polynomial time with classic compute. We almost definitely don’t have any idea what that algorithm is, but the fact that it exists and that AI might find it is renders RSA extremely vulnerable.

2

u/peldor 5h ago

All encryption has a self-life. We know that as CPU’s get faster, stronger encryption will be needed to protect things.

RSA-2048 was expected to be end-of-life in 2035. So in a week we went from “we have 10 years to migrate“ to “migrate yesterday”. There are real tangible problems with the timeline compressing like that.

The obvious is having to do 10 years of upgrades in a day. The other is having to pay for 10 years of upgrades all at once.

This is the equivalent to cities having to replace all of their traffic lights. They had a maintenance plan to replace traffic lights as they aged out, but they aged out all at once…with no warning.

It’s going to be an expensive problem to fix.

1

u/Discordbothost 5h ago

Separate the math from who finds an attack. RSA relies on factoring large numbers (15 = 3 x 5 is a toy example). PQC uses different problems, such as lattices. It isn't 'AI-proof': new attacks still need checking against each algorithm and key size.

1

u/JaguarMammoth6231 19h ago

The post quantum cryptography is not needed because of AI, it's needed because of quantum computers, which already exist (but don't quite have enough qubits to break cryptography yet, though it's coming in 5-10 years)

7

u/Wild-Store321 18h ago

The current rush to PQC is not because of the quantum threat. It is because of AI finding classical weaknesses.

1

u/the_quivering_wenis 16h ago edited 16h ago

How exactly is AI able to better bypass classical cryptographic protocols?

3

u/Wild-Store321 16h ago edited 16h ago

AI is discovering math that was previously out of reach. It is finding algorithms left and right that best previously expected lower bounds. Most of these that are published are not practical, but they prove our assumptions were false.

The current discovery is undisclosed but looks like it found a weakness in P-256 or other ECCs.

1

u/the_quivering_wenis 16h ago

Right, but isn't it still technically incorrect to say that moving to post-quantum cryptography is because of AI? AI can potentially find better cryptanalytic algorithms but is still operating in the classical computational space, whereas QC changes the game entirely.

2

u/Wild-Store321 16h ago

We have known for decades that quantum computers can break ECC and RSA. Now there is a new discovery that prompts NSA to say: move off of this type of ECC as soon as possible, not by 2030.

So what’s new? This is about AI discovering a classical attack. The quantum attack was known for decades.

1

u/x0wl 15h ago

It's just a very good opportunity to kill 2 birds with one stone: bypass both the new classical attack and protect from quantum in one transition instead of 2.

1

u/nicuramar 14h ago

It doesn’t “look like” that, but the rumors talk about it.

1

u/Wild-Store321 13h ago

It looks like that because of the NSA guidelines + rumors, but now also because chrome, edge and firefox will stop trusting P-256 from March.

1

u/Splash_Attack 14h ago edited 14h ago

It's not even because of that. There is no "current rush" at all. The global push towards PQC started in 2016 when NIST announced the PQC competition. It has been the main, often sole, focus of every cryptographer on Earth for the past 10 years.

It's just that nobody except security professionals has been paying attention until now, and have swallowed the AI company copy as if it was gospel truth. They're doing that thing where they vaguepost about how scary their models as subliminal advertising for their efficacy.

You know what the NSA actually said about it, verbatim?

"Recently, American SI companies have disclosed discoveries that impact the security of some cryptography currently in use. Our current assessment, in consultation with these technology companies, is that recent SI advances do not present an immediate and widespread threat to that cryptography."

They haven't accelerated the timeline. There is no change in the US's switchover plans. All they've done is remind companies and organisations that 2030 is getting very close and sooner is better than later. 2030 is meant to be the final cutoff, it's not the starting line.

Just to be clear what I'm saying here: the original 2030 target and "immediate switchover" mean the same thing at this point in time, because we're so close to the wire on it. You don't make these kind of changes at this kind of scale overnight. Anyone who hasn't started does need to immediately figure out what needs switched and how they plan to do it... but that's simply because of the logistic of doing so within the mandatory timeframe. Not because of current developments.

1

u/Wild-Store321 14h ago edited 14h ago

Yes, I know they said that. They also said this in a concurrent message: “NSA Advises Immediate Transition to Post-Quantum Cryptography”. If that is not a rush, I don’t know what is.

They also said: “Frontier SI companies have engaged with the U.S. government to responsibly disclose recent discoveries that impact the security of some cryptographic systems currently in use”

And notice the double qualifier: “immediate and widespread”. It may be immediate. It may be widespread. But not both.

My reading is that it is widespread but not immediate: P-256 is significantly weakened. Much weaker than recommended, but still not easily cracked. The size of the keys is chosen to reach 128 bits of security. Now it turns out it is way less than that, but still higher than say RSA1024, which is also not cracked. This is consistent with all of their messaging.

The tweets of the cloudflare CEO are also quite telling.

1

u/Splash_Attack 14h ago edited 14h ago

It's not a rush because we're now only three years away from the mandatory cutoff for transition.

For companies that operate at scale and have not yet fully transitioned, immediate action is required to meet the mandatory timeline. They have left it very late. The NSA advising immediate transition is not a change in messaging within the context of the overall discussion around the switchover.

It would be a rush if they had moved the timeline up.

1

u/Wild-Store321 14h ago

Sure, let’s not call it a rush then. Use this wording: what prompted the NSA to make those announcements? What did the frontier AI companies disclose? These are the questions I am answering (based on my reading of public info). Wether you see it as a rush or not.

1

u/nicuramar 14h ago

You’re answering them by speculating, though.

→ More replies (1)

1

u/Splash_Attack 14h ago

Consider the alternative. The AI companies have a track record of scaremongering. Either the NSA makes a more moderated announcement, or the AI companies control the messaging entirely.

As much as I find the panic a bit tiresome, it's a clever move to turn the inevitable panic from inevitable scaremongering into something which ends with "...so you should do that thing we've been telling all of you to do for years."

→ More replies (4)

2

u/ghjm MSCS, CS Pro (20+) 18h ago

And the worry is that advanced AI might increase the speed of progress in quantum computing research. Of course it also might not, but if you're protecting nuclear bomb codes, you have to worry about these things. The existence of advanced AI, and its apparent surprising ability to create new math proofs, creates doubt that we really have 5-10 years of breathing room.

0

u/Broad-Promise6954 18h ago

RSA stands for Rivest, Shamir, Adelman. These are the last names of Ron Rivest, Adi Shamir, and Leonard Adelman, who came up with a particular public key encryption algorithm using large prime numbers. So "RSA encryption" is a particular algorithm for doing cryptography.

EC (not ECC, which is something else entirely, for error correction) is short for Elliptic Curve. Combined with several other letters, this is a very different algorithm, also for doing cryptography.

So these are just two ways to do cryptography today.

The rumor is that there's a way to break both of these in some number of days or weeks using fancy quantum computing algorithms on fancy quantum computers. If that's actually true, then someone using either of these methods could have a private conversation decrypted some time after the conversation is likely over. That's not good security, although it's also not "panic and die immediately" serious for most people.

The post-quantum encryption algorithms (which have been standard for a few years at this point, but aren't universally used yet) are not in this group of supposedly threatened encryption, so some, including the USA's NSA, are encouraging everyone to switch to these ASAP.

4

u/Wild-Store321 18h ago

ECC stands for Elliptic Curve Cryptography. Yes, it also stands for Error Correcting Code, but ECC in the crypto context is not something else entirely.

And the current rush to move to PQC is not because of quantum computers. It is because AI is finding classical attacks. Likely one for P-256.

2

u/Broad-Promise6954 18h ago

Ugh, I hate it when the TLAs overlap.

Could be worse though, like when using a router (woodworking) to build the box for your router (computing).

1

u/x0wl 15h ago

The cool part is that we also have cryptography based on error correcting codes, and it's post quantum (namely, HQC will get standardized soon)

So you may get to move from ECC to ECC

0

u/LitespeedClassic 18h ago

RSA and ECC are two different mathematical methods for encryption. Both rely on what are called one-way functions, which are functions that are easy to compute but whose inverse is hard to compute. 

Reading between the lines of the NSA guidance, RSA has not been hacked. What has happened is that a particular use of ECC has been shown to be less strongly protected as was thought. It uses a key of length 256 bits which was thought to take until the universe ends to crack. Unfortunately it seems they’ve figure out how to reduce the time to attack it significantly. The current belief is that it is not hackable today, but if GPUs continue to get faster it may be hackable by a company or a government for many million dollars within the next few years. 

Various bad guys are storing internet traffic so that once it becomes feasible to break it they’ll be able to break your traffic now. 

Do the NSA is telling everyone to move off the 255 bit ECC as soon as possible. 

1

u/petrov76 16h ago

I have to assume that prudent mathematicians at the NSA are worried that P=NP will be proven shortly, and a fast polynomial time algorithm will be discovered for factoring large prime numbers like RSA2048.

While I agree that the recent push is aimed at ECC, I don't think they are just worried about ECC. If you see what's happening with Riemann, you have to assume that other mathematics breakthroughs are not just possible but likely.

This sounds paranoid, but I feel like that's the job of the NSA.

1

u/x0wl 15h ago

They are literally recommending the use of RSA, including RSA-2048

2

u/petrov76 15h ago

Where do you see that?

When I read their statement, it said they recommended a move to Post Quantum Crypto, not RSA anything:

https://www.nsa.gov/Press-Room/Press-Releases-Statements/Press-Release-View/Article/4662430/nsa-advises-immediate-transition-to-post-quantum-cryptography-to-protect-nation/

1

u/x0wl 15h ago

1

u/Saragon4005 15h ago

RSA is in table 2 the old standard they will no longer accept. As of a press release yesterday the government won't accept any new systems using RSA starting next month.

1

u/LitespeedClassic 9h ago

The cryptographers I’ve seen discussing this seem to have come to the consensus that there are two things going on: 1) the effective key strength of ECC P-256 has been reduced to somewhere around 85 bits and 2) the pace of progress in engineering quantum computers is starting to accelerate and so there is a worry about store-now decrypt-later. 

  1. doesn’t effect rsa. Will need classical computing power to increase significantly still to actually use. 
  2. does effect RSA. 

Both will require deep pockets to exploit since even if computing power is expensive you’ll be looking at tons of gpu hours to hack and quantum computers are going to be very expensive to run. 

0

u/jpgoldberg 17h ago

It’s not so much a rush as a “let’s pick up the pace” for something that has been going on for a very long tiThe recent math results came faster than anticipated, but they don’t radically change the course that cryptographers have been on to replace RSA and ECDH.

1

u/Wild-Store321 16h ago

It was always anticipated that these math advances did not exist. Only quantum was anticipated, hence the name “post quantum”.

Now AI is showing us that many of our assumptions are not true. So yes, this is a rush. The pace was based on future quantum hardware. Now it is about current weaknesses.

Previous target was 2030 for PQC. Now it is “ASAP”.

1

u/jpgoldberg 15h ago

I largely agree, but we don’t know what prompted the NSA’s “hurry up”. It may have even been, “don’t dither about ML-KEM and ML-DSA because of the Anthropic result; these remain much stronger than what they are replacing.”

That wouldn’t be my first guess, but we really haven’t seen AI results threaten classical encryption. The insane rumors last week were just insane rumors. Sure, they have reminded us that AI math results might threaten classical encryption, and it’s a useful reminder, but it seems like people who were into panicking last week are carrying over some of that anxiety.

1

u/Wild-Store321 14h ago

True, we don’t know what prompted them. But why would they hurry to move to quantum resistant crypto if a quantum weakness of quantum resistance crypto is found. They even still include that weakened one as a recommendation.

Meanwhile, ECC and RSA (already known to be quantum weak) are to be moved away from immediately.

I can only go by public info, but clearly they are not going by what can be quantum attacked. This makes sense because cryptographically relevant quantum computers are years away.

Everything points to a classical ECC weakness, specifically P-256. Chrome just announced they will stop trusting that one in March.

1

u/brightmargo748 14h ago

Yo, NIST's been running that PQC process since like 2016, so yeah, nothing sudden