logoalt Hacker News

What to Make of the NSA Advisory

380 points • by jvdheyden • today at 7:24 PM • 122 comments • view on HN

Comments

xphos • today at 10:56 PM

Yeah I don't like the reasoning given here. Being PQC doesn't mean these are inherently more secure classically. We just know elliptical curves have a quantum weakness. But we do not know for certain if PQC or classical algorithms cannot be broken with some classical algorithm. AI existing doesn't change that fact unless it breaks those algorithms

adrian_b • today at 9:35 PM

> They are not calling out RSA.

This is not true. RSA is still allowed temporarily, but only with a size of at least 3072-bit.

Moreover, "starting in 2027, no new product for NSS should have a burned-in root of trust relying on a non-quantum-resistant primitive".

Also: "by the end of 2030, all available devices should fully support quantum-resistant algorithms".

Therefore, after the New Year new products should not use RSA in root certificates, and by the end of 2030 the use of RSA and elliptic curves in non-hybrid algorithms should be discontinued.

Among the non-public-key algorithms, only 3 are permitted: AES-256, SHA-384 and SHA-512. Older or weaker algorithms are deprecated.

There is an exception for the digital signatures specified in NIST SP 800-208, inside which SHA-256 and SHA-192 are allowed, but these smaller hashes are not permitted for general usage.

It is notable that SHA3 is not among the algorithms permitted by the "Commercial National Security Algorithm Suite 2" promoted by NSA, despite being significantly stronger than SHA-512 and SHA-384.

Unlike with many other algorithms that are mentioned and about which it is said that there are no plans to include them among the algorithms that are allowed for owners and operators of "National Security Systems", for SHA3 it is said that even if NSA currently has no plans to allow the use of SHA3, "it would be prudent from a cryptographic agility perspective for NSS customers to have larger versions of SHA-3/SHAKE available in FIPS 140 validated products", which appears to imply that they might reconsider this decision in the future.

➕ show 6 replies
leishman • today at 8:46 PM

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 • today at 8:56 PM

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?

➕ show 6 replies
quaz4r • today at 8:43 PM

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

➕ show 5 replies
BoppreH • today at 10:40 PM

Isn't the list of algorithms just a reiteration of their recommendations since 2016 [1]? The allowance for hybrid is new, but they've been consistent in recommending RSA-3k and avoiding 256-bit curves for a decade now.

If there was a 384-bit version of Curve25519 that was excluded, or if RSA-2048 was back on the menu I would agree, but this analysis might have been too clever for its own good.

[1] "CNSSP 15" from https://www.cnss.gov/CNSS/issuances/Policies.cfm

ok_dad • today at 8:24 PM

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.

➕ show 3 replies
int0x29 • today at 8:17 PM

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

➕ show 3 replies
galadran • today at 8:05 PM

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.

➕ show 3 replies
chinathrow • today at 10:40 PM

Wasnt there some suspicion that some EC curves were hand picked by the NSA and this is simply the outcome that their backdoor has been broken?

➕ show 2 replies
urba_ • today at 10:16 PM

My biggest tell would be when people start draining Satoshi-era Bitcoins (seems to be around 1.7M BTC that shared their secp256k1 public key) and reused wallets (they also emit the public key)

➕ show 1 reply
wk_end • today at 8:25 PM

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?

➕ show 2 replies
keito • today at 9:59 PM

On macOS, even though the OpenSSH version is recent, the key exchange algorithm selection is overridden in an Apple-installed /etc/ssh/crypto.conf to favor ecdh-sha2-nistp256 over mlkem768x25519-sha256, which is the upstream OpenSSH default. (I believe the override also suppresses the non-post quantum warning described here: https://www.openssh.org/pq.html).

You can override it back in your ~/.ssh/config with

  Host *
    KexAlgorithms ^mlkem768x25519-sha256
➕ show 1 reply
treetalker • today at 9:21 PM

> 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

segmondy • today at 9:15 PM

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.

djha-skin • today at 9:19 PM

David Hilbert thought the Riemann Hypothesis would fall before 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.

➕ show 1 reply
o_nate • today at 9:28 PM

> Again, this is a "get off 256-bit elliptic curve" advisory.

Isn't that what bitcoin uses to sign all transactions?

➕ show 1 reply
bongoman42 • today at 10:37 PM

This is like the rumblings being heard in November/December before full blown COVID got underway. I suspect RSA is done.

➕ show 1 reply
rustyhancock • today at 8:39 PM

Does this suggest secp256k1 is at risk?

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

➕ show 2 replies
m000 • today at 10:06 PM

<tinfoil_hat>

Genuine question: Is NSA immune to influence from the current administration? Because every other 3-letter agency appears to be bending to the administration's will, one way or another.

NSA surely has more street cred than any other agency with the open source tools they have released, but still...

</tinfoil_hat>

➕ show 1 reply
ComputerGuru • today at 9:33 PM

Have I been vindicated for never joining the “burn your RSA keys and switch to ed25519” brigade?

The problem is that my rationale for sticking with RSA (it’s a simple math equation we understand very well) doesn’t extend to any of the PQ alternatives. Funny NSA seems to (maybe) similarly feel about RSA as I do.

maratc • today at 9:21 PM

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: *".

➕ show 2 replies
karel-3d • today at 9:04 PM

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?

➕ show 2 replies
jdthedisciple • today at 9:27 PM

> 256-bit elliptic curves (P-256 and Curve25519/X25519/Ed25519) are likely broken or significantly weaker than we thought;

Can we stop with this false rumor spreading? The NSA did NOT say any of the above.

Edit: I can see somewhat how the OP (an expert) infers this, but this kind of statement is reminiscient of another author's recent "labs may be sitting on factoring in P"-claim which spread like wildfire and is nothing but pure rumor.

➕ show 2 replies
blaind • today at 9:05 PM

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?

dgellow • today at 8:44 PM

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

baggy_trough • today at 9:21 PM

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

➕ show 1 reply
bluegatty • today at 9:00 PM

take it at face value

jmclnx • today at 8:08 PM

>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.

➕ show 3 replies
nullc • today at 9:30 PM

Reasoning out that 256-bit ECC is broken from it's omission is seems spurious to me given that P384 has been their strong non-PQ mandatate for many years now.

But for discussion, lets go with it--

> The NSA wants you to move to PQC in such a rush that it’s saying explicitly, against all its previous recommendations, that you can use the X25519MLKEM768 hybrid key exchange since it’s the most widely available solution. (I think this is commendable policy, it lends credence to their previous anti-hybrid position being a simplicity expedient, and should probably lead to some retrospective about a lot of FUD from certain parties

How's that follow? NSA has stridently worked against hybrids ... and now that __per-the author's conclusions__ the 256 bit ECC schemes are broken, they're suddenly OKAY with it and somehow this means they weren't previously opposing hybrids in order to make systems easier to attack?

Seems to me that the logic would go the other way: if they became okay with it only once it was broken it suggests that their opposition was to avoid the inclusion of a strong component.

But I don't buy the premise that this communication necessarily tells us anything about the security of any cryptosystem.

I think it's also a missed opportunity to advocate for diverse hybrids-- in plenty of cryptosystems there is essentially no material performance consideration. I don't care if my rekeyed-once-a-day VPN tunnel to home spends 1 second of cpu time.

For that it would be just fine to use E-521 + RSA-8192-KEM + FrodoKEM-1344 + mceliece8192128 + preshared. -- the bandwidth and compute costs are irrelevant for such an application but it would be very good to not have to go rush out to upgrade things when there is some mathematical advance against a particular hard problem.

mikece • today at 7:56 PM

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?

➕ show 3 replies
mangod12 • today at 8:53 PM

[dead]

2883 • today at 9:25 PM

[dead]

clownworld1984 • today at 9:18 PM

slop content. just yapping. no substance