NSA Advises Immediate Transition to Post-Quantum Cryptography to Protect National Security
83 points by boramalper
83 points by boramalper
https://words.filippo.io/nsa-advisory/ Filippo, head of cryptography for Go and a very well respected applied cryptographer, is taking this to mean that there is an implied classical break for ECC but not RSA.
Great read, thanks for sharing!
For the lazy:
They are explicitly calling out the P-256 elliptic curve (by exclusion), and Ed25519 (which is the only EdDSA in the NIST specifications). This implicates X25519/Curve25519/Ed25519 along with P-256.
They are not calling out RSA.
For the laziest:
this is a “get off 256-bit elliptic curves” advisory.
Are they though? The inventory list covers elliptic-curve algorithms on every curve except P-384 and P-521. But NSA's CNSA suite has required P-384 for national security systems since ~2015.
+1.
I don't interpret it is as "explicitly calling out the P-256 elliptic curve (by exclusion)". As you say, that has been their position for NSS operators since 2015 (because they target 192-bit security).
I interpret this as NSA announcing to NSS operators that the recent results don't weaken their push for PQC.
It is unfortunate that just yesterday we got a result about lattices, but that result is completely theoretical and should not have gotten as much attention as it did
Neither me, nor the industry has followed NSA's higher-baseline advice that it provides to NSS operators.
Notice that this advisory is specifically targeted towards National Security Systems:
FORT MEADE, Md. — NSA advises National Security Systems (NSS) owners, operators, and vendors to immediately accelerate the transition to post-quantum cryptography (PQC).
EdDSA hasn't been included in CNSA 1.0 either. So, on paper, it doesn't seem like the NSA is actually changing of its recommendations here?
On macOS, the OpenSSH 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).
You can override it back in your ~/.ssh/config with
Host *
KexAlgorithms ^mlkem768x25519-sha256
Though I'd like to understand Apple's rationale for sticking with the classic algorithm.
/etc/ssh/crypto.conf
I think it's removed in latest macOS (27.2.1)
$ ls -l /etc/ssh/crypto.conf
ls: /etc/ssh/crypto.conf: No such file or directory
$ uname -v
Darwin Kernel Version 27.2.0: Thu Oct 15 00:02:46 PDT 2026; root:xnu-13432.41.4~25/RELEASE_ARM64_T6000
Not 100% certain because I've installed OpenSSH 10.6 from Nix, which may have an influence.
Hm weird, it exists in both my main Mac Studio (27.2.1) and a recently-installed Golden Gate VM (also 27.2.1); it's also still in the Apple OSS repo (https://github.com/apple-oss-distributions/OpenSSH/blob/main/conf/apple.conf). I'm not familiar with Nix, does it overwrite system config files?
I removed the Nix openssh package and rebooted, /etc/ssh/crypto.conf is still absent.
I'm not familiar with Nix, does it overwrite system config files?
Not that I'd heard of, but I can't say for sure.
╰─❮ ls -l /etc/ssh/crypto.conf.
lrw-r--r-- - root wheel 2025-11-22 09:17 /etc/ssh/crypto.conf -> crypto/apple.conf.
╰─❮ uname -v.
Darwin Kernel Version 27.3.0: Tue Nov 17 19:11:10 PST 2026; root:xnu-13432.61.2~18/RELEASE_ARM64_T8132
I have nix but not ssh from it.
If the reasoning is "labs have suggested classical cryptography is at risk," it doesn't necessarily follow that post-quantum specifically is necessary, right? Moreso, "better conventional" would also be fine? The reason to specifically go to PQC would be that we have to do it eventually anyway and we don't have something else that's better? Or does it suggest that there is a fear that anything that is not post-quantum is somehow at risk even from classical computers?
It's really weird, because the current standard PQ algorithms are the ones that this week's disclosures have theoretically slightly weakened. Given the timing here, the wording and lack of acknowledgement of this fact are really odd.
AIUI, even if you consider the weakening there to be of concern, and suppose that newer algorithms drive down the insanely high compute cost...even with all that, at the point where it's a tangible risk, RSA and its like would be long past compromised.
One of NSAs remits is to advise operators of classified data on which cryptography is suitable.
I imagine the Anthropic results have spooked some operators, and so NSA is reassuring them that the PQC strategy hasn't changed, but instead has shortened the timeline, because cryptanalysis is moving faster.
Might just be that that is the main set of standardized algorithms available which is not vulnerable to whatever was disclosed. Alternatively, a comment on HN points out in a different release it says:
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. However, with the rapid evolution of SI and the tremendous capabilities being developed, it is incumbent upon industry and the government to work together to expeditiously upgrade our digital infrastructure and cybersecurity capabilities, with the interests of the American people front of mind.
It might just be that they want everybody to go through the exercise of changing their encryption algorithms, so that the world is prepared if "factoring in P" or whatever other cryptanalysis breakthrough is actually found.
No stupid questions allowed on Lobsters of course, but what does the NSA mean by SI here?
Trump decided in an Executive Order that "Artificial Intelligence" should actually be called "Super Intelligence", so now government bodies and also bootlickers have to say "SI" instead of "AI".
Sometimes ignorence really is bliss ain't it? I'm sorry for you to have to learn about this.
As a government agency they are presumably required to use the term superintelligence/SI rather than artificial intelligence/AI.
Read the previous sentence in that press release:
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.
My reading is that the previous disclosure was the galactic attack against lattices, and as such these are not contradictory positions. I see the NSA saying they don't see a real threat to PQC, but do see a real threat classical algorithms and are telling us all to calmly head to the exits before the fire spreads.
If we take it as a given that ECC ciphers are broken what would one need to do with their ssh setup? Roll keys I assume, but I don't see a pq key type available in ssh-keygen. Am I missing it?
ssh-keygen -t mldsa44-ed25519
ssh-keygen -t mldsa44-ed25519
GitHub doesn't recognize it as valid, hehe, this is gonna get annoying.
Filippo Valsorda is again both fast and credible. That said, this is to some extent an expert reading of tea leaves.
We might want to merge this into the NSA announcement.
Importantly, that linked thread links to NSA's press release. The advisory which Filippo's post discusses is here: https://media.defense.gov/2026/Dec/01/2004039413/-1/-1/0/CSA_Immediate_Actions_Push_Toward_PQC.PDF
I would prefer to avoid merging them if possible. The press release contains very little technical information.
FWIW, the motivation for merging would be to combine the nsa.gov name with the more readable, if more speculative, analysis here.
Both link to the underlying NSA document; I agree that the press release itself says little.
Here's the operational bit, for sysadmins:
In short: get your TLS connections to X25519MLKEM768, get your private PKI to ML-DSA (or RSA 3048/P-384 if you really can’t do it), get ready to rotate your WebPKI certificates and update your TLS/ACME stack, update OpenSSH to 10.6 and rotate to ssh-mldsa44-ed25519 keys.
update OpenSSH to 10.6
Notably, RHEL and derivatives are at 9.9, latest Ubuntu LTS is at 10.2, Debian is at 10.3 if you backport to stable.
This is not the type of attack where you need to patch from >9 to 10.6 out-of-band from your distribution at 3 in the morning. You should make sure your distribution has a plan to get there in due time, but you yourself need to immediately make sure that your key exchange is using the post-quantum one (default since OpenSSH 10.0).
Commented on the other post too, but note that even though macOS uses a recent OpenSSH, it does not use the default post-quantum key exchange due to a config set by Apple. https://lobste.rs/s/ysw16u/nsa_advises_immediate_transition_post#c_lzjcbv
There’s far too much speculation here and far too little solid evidence. CNSA has always preferred P384/P521 over 256-bit EC. They are just listing “algorithms not approved in CNSA”. RSA (3072) was approved, 256-bit EC wasn’t. Jumping from that to “AI has cracked P256/X25519” is ridiculous and not helpful or responsible.
The 256-bit curve note did feel a bit tenuous, but I think Filippo did raise an important point around a change in the technical recommendation document.
I get to read lots of federal requirements around crypto thanks to work (joy) and the NSA position has been "don't use hybrid cryptosystems except for IPsec/IKEv2" – their CSNA 2 suite for TLS1.3 was ML-KEM-1024 only. No hybrid models, certainly no X25519. Not just "you don't need them", but actively discouraged.
For them to suddenly say "move immediately, to RFC 10024 if you need" is a significant reversal in their very long-held position. That's an eyebrow raiser.
But if you thought X25519 was broken that would be a very weird move, no? I think this can be adequately explained by the NSA simply recognising that they lost the argument on hybrids. If suddenly recommending hybrids was going to raise eyebrows it would point the other way: that they have less confidence in the PQ part.
For reference,
OpenSSHPubkeyAcceptedAlgorithms ssh-mldsa44-ed25519
HostKey /etc/ssh/ssh_host_mldsa44_ed25519_key
HostKeyAlgorithms ssh-mldsa44-ed25519
KexAlgorithms mlkem768x25519-sha256
sshd_disable_keygen="yes"
nginx
ssl_protocols TLSv1.3;
ssl_conf_command Ciphersuites TLS_CHACHA20_POLY1305_SHA256;
ssl_prefer_server_ciphers on;
ssl_conf_command Groups X25519MLKEM768;
ssl_session_cache shared:SSL:2m;
ssl_session_timeout 1h;
ssl_session_tickets off;
ssl_certificate /etc/acmeleaf/lindenii.org/current/leaf-chain.pem;
ssl_certificate_key /etc/acmeleaf/lindenii.org/current/key.pem;
InspIRCd
<sslprofile
name="Clients"
provider="openssl"
certfile="/etc/acmeleaf/lindenii.org/current/leaf-chain.pem"
keyfile="/etc/acmeleaf/lindenii.org/current/key.pem"
hash="sha256"
requestclientcert="yes"
tlsv1="no"
tlsv11="no"
tlsv12="no"
tlsv13="yes"
ecdhcurve="X25519MLKEM768"
strictgroups="yes"
strictpriority="no">
ssl_session_cache shared:SSL:2m;
doesn't do anything with TLS 1.3 only, as per https://configurator.tlsref.org
No justification given for changing the ciphersuites and forcing server ciphers either.
my ssh-keygen version (Fedora 44) does not support the recommended "ssh-mldsa44-ed25519" mode. Apparently OpenSSH 10.4 released in July 2026 (I have 10.2p1, according to ssh -V) introduced experimental support for post-quantum signatures.
In other words: this is not just a case of sysadmins being slow to change configuration files or processes, while the tools we use would have enabled this for years. This is a case where it looks like the open-source ecosystem is lagging behind in terms of availability of recommended schemes.
(The post also says that RSA is supposedly better than Ed25519, so maybe in the meantime one should revert their keys to RSA?)
More annoyingly, it seems that Sourcehut & GitHub don't support ssh-mldsa44-ed25519, so I don't see how it's practical to completely rotate away from ssh-ed25519 keys. I wonder how long that fix will take.
I'm also sad that we are back to keys the size of several screens, after ssh-ed25519 pubkeys were almost practical to type in by hand.
Out of curiosity why do a half step to P-384 instead of just straight doubling to P-512?
For one, it's P-521 (I know. I know.), not P-512.
But the performance cost of ECC is roughly O(n^3) versus the group size at O(n^2), so P-521 is more of a performance hit than most folks intuit. P-256 was also already annoyingly slow for many applications.
Edit: above, n is the security level against ECDLP
If you'te going to do a migration, you might as well try to migrate to the PQC algorithms.
Maybe a stupid question... But what about resident SSH keys, like the ones on YubiKey? I've largely ditched normal keys and switched to just my YubiKey's ed25519-sk . Obviously these are NOT PQC. So should I be moving away from YubiKey resident ssh keys now?
Attackers generally can't even get your public key (which is specific to each domain name) unless they already popped the server.
So, y'know, make sure your TLS connection is using PQ crypto and worry about it when PQ Yubikeys are generally available.