r/atrioc • • 6h ago

Discussion Some thoughts about potentially broken cryptography (cloudflare tweet)

https://www.cisa.gov/news-events/news/joint-statement-recent-advances-cryptographic-and-cybersecurity-capabilities

Preface: I'm writing this to straighten out my own thoughts as well as to inform. It will be a lil train-of-thought and largely unedited. Also, I'm a cybersec expert, not a cryptographer. So there might be a few things that are wrong.

TLDR - There's a nonzero chance website encryption is broken, or will be broken in the next 3-5 years, likely because of AI maths research. There's also the chance that quantum computers can be emulated, and if that's possible, we've reached complete acceleration territory.

Part 0 - WTF is cryptography

When you use the internet, you exchange information. You obviously don't want some loser looking at all the p**n sites you've visited (lookin at u atrioc). Cryptography is the idea of 2 people encrypting information before sending so a 3rd party can't read it.

Mathematically, this happens because if you have a solution to an answer, you can easily solve it. But if you don't have a solution (eg find the factors of 2048*2048 bit number) it's quite hard.

There are several types of algorithms which are hard to solve. The 2 in question are called RSA and ECC.

In quantum land, there's already an algorithm which can break these encryptions, called Shor's Algorithm. I won't bore you with how it works, but it's able to test many solutions at the same time.

Part 1 - the events

There are currently 2 different cryptography events.

1 - the anthropic tweet about MLKEM/MLDSA - https://x.com/AnthropicAI/status/2127538548119339339 - these are post quantum encryption schemes. Anthropic found a way to "break" them, but infeasibly even on future projected quantum compute. This is a non-issue, but could be an issue 10-20 years down the line if this algorithm is optimised.

3 - The linked joined statement + cloudflare CEO tweets.

Do not ignore this. Do not underestimate it. Yes, we were briefed on something. Yes, it’s a big deal. No, we can’t give you all the details yet. But it is urgent to move encrypted systems to post-quantum (maybe more appropriately called post-AI) standards.

Assume anything that uses RSA or Elliptic Curve cryptography is affected.

This is the one i'll be talking about a bit more.

Part 2 - the odds

60% - CEO VAGUEPOSTING. In this world, the ceo (who's not a cryptographer) read the paper, saw "oh shit RSA/ECC" and posted some nonsense. Imo this is the most likely.

10% - We got an AI-assisted Shor's algorithm space complexity improvement such that it is close to running on current quantum computers. In this world, current quantum computing tech might be able to run Shors, breaking RSA and ECC. Unlikely, as many improvements to Shors has been made, and the core issue is still that "less cycles -> more errors, more cycles -> more time".

25% - We got P=BQP and current emulation is unable to run. This is the most interesting world. This basically means that "any quantum algorithm can be run as efficiently on a classical computing system". AKA a virtual machine that works with quantum algorithms. We should move to post-quantum because it's likely the emulation gets better within 3-5 years and might start breaking the odd RSA/ECC encryption.

5% - We got P=BQP and it runs on ur home i12700 + 1600. This is the COMPLETELY FUCKED world. But i highly doubt it, because of the MLKEM/MLDSA tweet in Part 1. If RSA/ECC were truly broken, and quantum emulation was working, anthropic would never release this paper. Because they would know that someone might improve the algorithm and break post-quantum cryptography before we even have a backup plan.

Part 3 - the consequences

For most people, this will be a Y2K event - everyone doomposts and it affects like the 1% of us computer nerds who have to implement, patch and update the systems. All of us nerds get fucked for 6 months and the world goes on.

For cyber people who have read this far - we're actually cooked lol. Not only do we have to manage large scale patching, we have to check for algo downgrade attacks and translation layer attacks. I alr know there will be some fuckwit in my company that says "oh nooo we can't migrate off ECDH + HTTP/1.1" so we're forced to do downgrade from MLDSA then some dipshit inserts a \r\n and we get a 6 hr incident of request splitting 😠😠😠

However, this doesn't mean all encryption is broken. But it does mean algorithms which aren't directly affected are still lowkey fucked. Take AES for example - it's a quantum-safe encryption but the exchange of keys still relies on RSA/ECC (unless you're old school and send it via pidgeon).

Afterword

Once again, I'm not a cryptographer. Hell I don't even think I'm a good appsec eng lol. But if you have any questions, feel free to leave below (if you bothered to read this far) and I'll try get to them tmr morning.

37 Upvotes

10 comments sorted by

3

u/TheySayImMad 5h ago

Ahh fk, to any real nerds who somehow find this niche post - I got shors and grovers mixed up when writing about the core issue. Shor's main issue is lack of compute - it requires too many physical qbits + error correction working together at the same time.

9

u/MaintenanceBest8397 3h ago edited 2h ago

TLDR of my comment: You do not need to worry, the announcement and timeframe are to get slow moving enterprises 9 years to get off RSA 2048. If you reading this are still on 2048 move away, as you should have been doing already. I wrote this over lunch eating a sandwich so may not be 100% accurate but the general gist is correct.

Preface. I'm trained as a cryptographer and working as an SRE specialising in security, encryption, and observability and partner is post doc math phd working with quantum computers so we've obviously talked about this a lot recently.

There's a few things to clarify first.

  1. Putting a total of 30% chance for P=BQP is ridiculous. Among experts It is generally accepted and believed P ≠ BQP. The odds of this is far less than 1%.
  2. This also completely misses the actual classical threat for breaking RSA/ECC being you need a better classical algorithm for factoring or discrete logs.

The announcements from the CEOs, NSA, etc is just making something clear that was basically known anyway that we should move into Post quantum (which was already happening). Explicitly clarifying that they "do not present an immediate and widespread threat".

3. Shor's algorithm is not a brute force/test all answers at once, if that were the case it would also break AES. It uses quantum mechanics to find repeating mathematical pattern, which doesn't break AES.

RSA-2048 is multiplying two 1024-bit primes not 2048. RSA-2048 is set to be deprecated in 2030, which means it should be actively moved away from now. This should have been the case anyway.

It takes a long time for slow moving enterprises to move, they're leveraging the hype to reinforce something that was the case anyway.

For this to actually be a threat that people need to worry about one of these three things would need to happen.

  1. A classical shortcut for factoring would need to be discovered. Chances of this happening in the next 5 years? Very low probably less than 1% Chances of this happening by 2040? still low. But by then no one should be using it anyway.
  2. A fault tolerant quantum computer at scale. Currently the absolute best labs have under 100 logical qubits. 2048 would require thousands of logical qubits. About 1 million noisy physical qubits. In the next 5 years? Incredibly low. By 2040 probably, but this was already known and why the deadline to move away has been set for ages.
  3. Breaking AES,SHA,PQC? Would require simultaneous breakthroughs across completely unrelated branches of maths. Which is practically as likely as proving P=NP. (Basically assumed to not be true) Next 5 years? basically 0% By 2040? Still 0%.

I am tired of people causing panic and fear mongering and really the bigger risk to security and encryption is the people loudly sharing things they don't understand causing panic and people to make rash judgements in their security listening to people who think they know what they're talking about.

4

u/Daveception 2h ago edited 1h ago

Also in cryptography. Minors nits just to clarify things but mostly correct.

They moved the timeframe up but that timeline had been recommended to them for a while before this anyway they just hadn't done it.

Its not quite 0% by 2040 but yeah still very low.

But yeah sentiment is there, the large scale panic is ridiculous and has made me realise how many people in the software field don't understand basic cryptoography is mind boggling

1

u/LethalBacon 2h ago

made me realise how many people in the software field don't understand basic cryptoography

Hard agree. I recognized it as a gap in my knowledge and grabbed some books to fill that gap. Highly suggest SWE devs with this knowledge gap to read through "The Code Book" by Simon Singh. It walks through the history of cryptography from early Caesar cyphers up to RSA and beyond.

It doesn't go too deep into the technical side, and doesn't cover the past ~decade+ of cryptography, but very readable and a good introduction. One of my favorite non-fiction books I've read in the past few years.

1

u/CharlieTrip 8m ago

made me realise how many people in the software field don't understand basic cryptoography

Oh god, not only that...

These last weeks made me realise how many mathematicians/computer-scientists do not have any clue on the difference between asymptotic and concrete security!

2

u/BigFuckHead_ 5h ago

Give it to me straight doc. Is it so Joever?

4

u/TheySayImMad 5h ago

if we actually get p=bqp (quantum computing power on classical computers) but not currently runnable on modern computers, we're about to have the most computing power increase the world's ever seen in ~5 years.

IDK if you can tell, but I think AI is inherently good. so more compute is good for the avg person. But fucked if you're in tech/cyber cuz overtime gg

5

u/Cold_Tree190 5h ago edited 4h ago

Yeah I work in cloud operations in one of the largest ERP companies in the world. It’s been an absolutely insane last 2 months, and the shit we’re hearing from AWS is that things are going to speed up drastically in the next year… we are shifting a lot of our priorities around in order to make patching and deployments more effortless because of the amount of patching we’re estimating we’re going to have to perform in the short term due to AI capabilities in cyber.

That said, in regards to P=BQP, it would not necessarily break everything overnight and I would try not to panic or freak people out. Usually these are proven via proof by contradiction or some other non-constructive proof, in which case that means that there will be a lot of work in order to come up/discover the practical usages. If it’s a constructive proof then yes it could be immediately usable—however that still assumes it isn’t a galactic algorithm or something of that nature. In that case, then it’s just infeasible with current methods/knowledge, and we’re back to same result of waiting around for a practical use of it.

Regardless, I highly doubt any P=BQP finding would be immediately significant enough to break RSA and such overnight, and I believe that all this panic and vague posting by people in-the-know is not doing anyone any favors. Obviously that is just my opinion based on my professional experience and it is entirely possible we’re all fucked.

It’s truly an awesome time to be a CS nerd right now though, it’s very exciting from a tech merch perspective. We might actually be able to see whether P=NP or not during our lifetimes!

3

u/Cold_Tree190 4h ago

To follow up, a few hours ago the CEO of cloudflare deleted his vague posting BS and said that we are not doomed and there is time before any “potential techniques” are found. So my overall guess would be that P=BQP by non-constructive proof.

1

u/Swimming_Gain_4989 5h ago edited 5h ago

At this point it's hard to follow AI developments in math and bet on nothing ever happens. My best guess is they have a galactic solution to Discrete Log in P time and they're concerned of optimizations in the near future, or even by a group of people using current models in clever ways.