214 points jvdheyden 2 hours ago 64 comments

mikece 1 hour ago | parent

This infers a classical break of 256-bit ECC purely from what the NSA left off its inventory list. What's the strongest alternative reading of that list, and is there any independent evidence (a paper, a disclosure, a vendor statement) for a practical attack on P-256 or Curve25519?

free_bip 1 hour ago | parent

There is no real evidence, it's the exact same flavor of fearmongering that preceded the physically impossible quantum attacks on lattice encryption.

rustyhancock 42 minutes ago | parent

Telling people to do what everyone has been recommending for a long time doesn't seem like fear mongering.

And the pace of AI work is such that's it's prudent to say get a move on doing what you should have done a decade ago.

In my tinfoil hat moments I do wonder if we're being herded subtly onto backdoored security but nothing in this has that kind of smell to me (a lay person).

perrygeo 11 minutes ago | parent

The advisory says nothing specifically about any new threats. So technically, yeah this is just the NSA telling people to do what they've been telling them for 10 years.

But the timing, the "Immediate" tone, and explicit omission of 256 bit ECC is a strong signal that something is up.

Even if there were evidence, do you expect the NSA to just blurt it out? That is going to stay secret as long as possible, while their "Immediate Advisories" get more and more immediate.

aphysically 1 hour ago | parent

Is there any prior art for recommending above 256 bit ECC explicitly? It did seem odd. I think their better argument for a dog whistled alternative reading was that they changed their recommendation on hybrid key exchange.

bri3d 41 minutes ago | parent

Yes, P-256 was effectively removed from the allowed US national security cryptography list in 2015-2016 when they migrated from Suite B to CNSA.

kzrdude 13 minutes ago | parent

Then the whole message is a lot less alarming, P-256 is not omitted because it was broken now, but because it already was off the recommended list.

owenmarshall 27 minutes ago | parent

I doubt we'll see the evidence you are seeking for a while.

The NSA release from today said they were approached by a frontier lab for responsible disclosure - the only way to responsibly disclose something as massive as a break/fatal wounding of ECC is for everyone involved to say nothing beyond "you need to move to PQE immediately."

galadran 1 hour ago | parent

The best part of this advice is that it is exactly what everyone should have been doing already.

Moving to MLKEM768-X25519 hybrids for key exchange as soon as possible and building in agility for authorisation.

busterarm 1 hour ago | parent

it's not without cost. the size is much bigger and you're adding 2-4KB to all of your request headers, which at scale is a meaningful problem to deal with.

There are a lot of high-volume environments where people weren't doing any key exchange whatsoever and had to be dragged kicking and screaming into doing so with x25519 only recently. They are going to be slow to adopt this.

Ask me how I know.

dgellow 43 minutes ago | parent

Is the switch to MLKEM768-X25519 complicated? Genuine question

g-b-r 41 minutes ago | parent

At what scale, and in what environments, is it a meaningful problem?

Not doing any key exchange means? Hopefully static, rarely changed symmetric keys?

busterarm 28 minutes ago | parent

There's lots of places where load balancer timeouts are extremely aggressive and you can't rely on long-lived connection pools. Start there and add thousands of microservices all talking to each other through the loadbalancers and you're gonna have a fun time.

g-b-r 24 minutes ago | parent

Great...

SV_BubbleTime 26 minutes ago | parent

Where is 2-4KB a big deal? BLE, Lora, serial interfaces to HSMs…

busterarm 23 minutes ago | parent

and SIP. Specifically STIR/SHAKEN. Imagine the volume spike in robocalls :D

Plus the packet fragmentation issues.

insanitybit 10 minutes ago | parent

You should be moving to ML-KEM. The hybrid option is only an option if you find it easier.

jmclnx 1 hour ago | parent

>They are explicitly calling out the P-256 elliptic curve (by exclusion), and Ed25519 (which is the only EdDSA in the NIST specifications)

Interesting, OpenBSD standardized OpenSSH on Ed25519. But I think I saw they added a new encryption.

Me, I take this as an advisory for people to do over the following year or maybe 2.

cwillu 55 minutes ago | parent

They say explicit, but “calling something out” by its absence is practically the definition of implicit. I don't think it changes much, but it's annoying that a word with a perfectly good definition is being misused.

jstanley 47 minutes ago | parent

Apparently P-256 has already been deprecated for US national security use since 2016 and P-384 is recommended by "CNSA 1.0", so I'm not sure this implies anything (new) at all about P-256.

> Elliptic Curve Diffie-Hellman (ECDH) and Elliptic Curve DSA (ECDSA) must use the NIST P-384 parameters

From https://media.defense.gov/2021/Aug/04/2002821837/-1/-1/1/Qua...

marcosdumay 37 minutes ago | parent

I do really dislike the author turning into "calling it out" the fact that NSA didn't mention 25519 in a document.

The same NSA that has been fighting against 25519 for ages, and refusing to acknowledge it on every situation where it's possible.

SV_BubbleTime 23 minutes ago | parent

>The same NSA that has been fighting against 25519 for ages, and refusing to acknowledge it on every situation where it's possible.

25518’s best selling point!

int0x29 1 hour ago | parent

Just tried to set up ssh-mldsa44-ed25519 and found that neither github nor forgejo supports it.

QuantumNomad_ 40 minutes ago | parent

Forgejo defaults to relying on the host ssh server. I.e. OpenSSH sshd or Dropbear sshd or what-have-you.

There’s also a built in ssh server in Forgejo but it has to be explicitly enabled.

If you have START_SSH_SERVER set to true in the [server] section of the Forgejo config, you are running the built-in ssh server of Forgejo itself. Otherwise it will be whatever ssh server your host OS is running.

int0x29 19 minutes ago | parent

Well my host has it but the docker container its running in probably doesn't. I'll need to look

bpye 24 minutes ago | parent

I currently use GPG with my Yubikey for SSH, and AFAIK there are no current YubiKey options for PQC? It looks like I couldn’t even use Apple’s Secure Enclave to store a PQC private key for SSH yet…

Maybe I should switch to P-384 or P-521 though.

ok_dad 1 hour ago | parent

What’s the new ssh key crypto I should use now? I’ve been using 25519 based keys everywhere. That’s the thing I need to know. Damn.

elbrownos 56 minutes ago | parent

Just use the number 4

chicagobuss 54 minutes ago | parent

ha!!!

nailer 49 minutes ago | parent

That's the problem with randomness: you never can tell.

awesome_dude 30 minutes ago | parent

I love Dilbert's cartoon on this, but cannot find a direct link to it

https://www.reddit.com/r/ProgrammerHumor/comments/5yhl93/ran...

arendtio 21 minutes ago | parent

I love it as well, but eMudhra seemed to be more like XKCD fans: https://xkcd.com/221

awesome_dude 15 minutes ago | parent

I like that XKCD cartoon, and thought it might be a good response to the suggestion to "just use 4", but the quote/paraphrase I was responding to, though, was also in the Dilbert cartoon "That's the problem with randomness: you never can tell."

jamesjyu 19 minutes ago | parent

No, I took that one already. Go with 5

throawayonthe 53 minutes ago | parent

ssh-mldsa44-ed25519

adastra22 29 minutes ago | parent

mlkem1024nistp384-sha384 would be my recommendation and most in line with the NSA's advisory here, but there's also an argument for sntrup761x25519-sha512.

25519 alone is probably not a good idea anymore.

wk_end 1 hour ago | parent

So, for us laypeople unfamiliar with the theory of ECC, what's the upshot of P-256 being broken but P-384 continuing to be safe? What did (likely) Claude discover/do?

SSLy 39 minutes ago | parent

Perhaps it's something like reduction of security, that is P-256 becomes 64b or smaller, while P-384 is an okay 128b?

adgjlsfhk1 5 minutes ago | parent

Eliptic curves have had absolutely no algorithmic progress since introduction, but the likely answer is something like what happened with factoring. Current SOTA is 2^(n/2) security, but if a 2^(2n/log(n)) attack were found, then 256 bit would have ~90 bits of security while 384 would have 129.

rustyhancock 46 minutes ago | parent

Does this suggest secp256k1 is at risk?

Or do we just wait to see if the Satoshi wallets vanish into NSA coffers?

verysmart 26 minutes ago | parent

the satoshi wallet always was an NSA coffer, I've always believed the satoshi wallets were a cryptography honeypot. Although, I think it was expected to be drained much farther in the future, and that's still probably the case.

quaz4r 41 minutes ago | parent

My baseless guess, as someone in quantum computing and has worked in quantum cryptography, is that there were additional results not publicly disclosed which point to a reduction of resources required for quantum attacks of ecc or discrete log (which is not unprecedented over the past few years even without AI), and thus more pressure to migrate PQC

oofbey 11 minutes ago | parent

Everything about this advisory would seem perfectly normal without AI. QC is getting real at an increasing rate. If you care about today’s communications staying secret for years to come, you need to be using PQC.

KMag 11 minutes ago | parent

Are you using discrete log as shorthand for both discrete log and the RSA problem over Z_p, or do you have reason to suspect that discrete log over Z_p is likely more vulnerable than RSA?

25-ish years ago, I was in 6.857, Ron Rivest's security class (mostly crypto, but much less math-intensive than Silvio Micali's crypto class). I asked him about the utility of either using 1024-bit El Gamal wrapped in 2048-bit RSA or 2048-bit RSA wrapped in 2048-bit El Gamal. (These size relationships avoid waisted bits in the wrapping.) His response was that it was very unlikely to have a significant breakthrough against one without having a breakthrough against the other.

djha-skin 10 minutes ago | parent

He addresses this in the article, opining that it's actually a "normal" computer attack:

> This, to me, says this is a classical attack, because no quantum algorithm would “present a significant threat to cryptographic systems” without also a big progress in CRQC development, which is not mentioned anywhere.

quaz4r 4 minutes ago | parent

Yeah, I don't agree with that line of reasoning. If ECC quantum algorithm requirements were reduced, say another 10x by AI, these would be vulnerable to attack within a few years just looking at public QC timelines.

dgellow 41 minutes ago | parent

Thanks Filippo, and all the best to anyone dealing with this situation. Doesn’t sound fun

leishman 39 minutes ago | parent

It's worth noting that the NSA has been recommending 384 bits as the baseline for Elliptic curves since 2015 https://en.wikipedia.org/wiki/Commercial_National_Security_A...

ramblurr 29 minutes ago | parent

But for normal ops engineers there's little we can do right now. We touch crypto every day in two places:

1. TLS 2. Hardware ssh keys

TLS -> we can configure X25519MLKEM768 for key exchange, but Let's Encrypt doesn't offer PQ auth yet. Should we switch to RSA 4096?

SSH -> there aren't any commercially available hardware keys that support ML-DSA or a hybrid

Seems kind of like shouting fire in a crowded room with no fire escapes, fire alarm pulls, or sprinklers. We just have to wait for the firefighters to come?

cayleyh 23 minutes ago | parent

This type of announcement is a way to kick off the process so these types of things will start to get supported & filter down to everyone. It's meant for people like Filippo who maintain crypto libraries, are major issuers, operating systems & browsers vendors, etc. to tell them "hey it's actually really important now, not that 5-10 year timeline you thought you had"

cipehr 11 minutes ago | parent

If you're on apple/mac devices, the Secure Enclave does in fact support ML DSA keys... https://developer.apple.com/documentation/cryptokit/secureen...

You can use them with apps like Secretive https://secretive.dev

adverbly 2 minutes ago | parent

Claude build a commercially available hardware key that supports ML-DSA. Make no mistakes.

bluegatty 24 minutes ago | parent

take it at face value

karel-3d 21 minutes ago | parent

Will Wireguard ever move to pq crypto?

The current solution is just shrugging shoulders.

I guess crypto agility was not such a bad idea after all?

marisen 11 minutes ago | parent

You can add a symmetric key to wireguard configs for PQC, used in addition to ECC.

blaind 20 minutes ago | parent

So... if:

- ed25519 signatures could be practically forged from public keys;

- most modern Linux distros default to it when generating keys;

- GitHub publishes all user keys in https://github.com/[username].keys

the potential adversary would have RW-access to very many repos?

segmondy 10 minutes ago | parent

Nothing, it's expected. Imagine that current encryption will fall in 5 years due to AI. I would consider that immediate threat. Why? How would you feel if some decrypted all your data from 3 years ago going back? You don't want to wait until it's proven to start upgrading. Govt keeps secrets for a long time. Collected encrypted data that can't be decrypted today will become valuable intel in a few years. For the government this is urgent, but it is for individuals too.

clownworld1984 7 minutes ago | parent

slop content. just yapping. no substance

djha-skin 6 minutes ago | parent

David Hilbert thought the Riemann Hypothesis would fall after Fermat's Last Theorem and the Transcendence problem might never fall, thus getting the order of when they were solved backwards.

I wonder if we'll find ourselves in a world where every algorithm has fallen _except_ RSA. We really don't know which one will fall first or which ones will never fall.

treetalker 4 minutes ago | parent

> The good closer of doors does so without bolt or lock, and yet the door cannot be opened; > The good tier of knots ties without rope or cord, yet his knots can't be undone.

Tao Teh Ching ch. 27

baggy_trough 4 minutes ago | parent

Wonderful, now we're supposed to move to algorithms that release Debian doesn't have.

maratc 4 minutes ago | parent

It would be great if someone who understands this stuff could translate the news into clear instructions on what I should have in my .ssh/config for "Host: *".

pshc 3 minutes ago | parent

[delayed]