OpenSSH: "switch default key type generated to ECDSA NISTP384" (github.com)
536 points by throw0101d 12 hours ago
throw0101d 11 hours ago
The very next commit is "Add support for composite ML-DSA 87 / ECDSA p384":
* https://github.com/openssh/openssh-portable/commit/fc6f26530...
* https://github.com/openssh/openssh-portable/commits/master/s...
* https://cvsweb.openbsd.org/log/src/usr.bin/ssh/ssh-keygen.c (1.514)
It is per:
* https://datatracker.ietf.org/doc/draft-ietf-sshm-composite-s...
adrian_b 8 hours ago
The reason why the default key type was switched to ECDSA P-384 and not to one of the quantum-resistant types supported by the current or by the next OpenSSH version, is that the latter are not supported by old servers and clients, so choosing one of them as default would prevent connections.
ECDSA P-384 is supported even by at least 9-year old OpenSSH versions (I have such a device), perhaps even by much older versions.
So setting it as default achieves the goal of better security than with 256-bit elliptic curves, while maintaining compatibility with ancient clients and servers.
When you know that both computers that communicate have up-to-date OpenSSH versions, you can choose to generate quantum-resistant host and client keys.
sibman 6 hours ago
P-384 seems like a sensible default for now. We've been testing PQC interoperability today and even stock /usr/bin/ssh on macOS 27.2.1 doesn't understand ssh-mldsa44-ed25519 from OpenSSH 10.6. It still has the experimental @openssh.com variant, disabled by default. Hybrid KEX (mlkem768x25519-sha256) works fine though. I'd keep ECDSA P-384 host keys for now until the clients catch up. Wrote a post https://news.ycombinator.com/item?id=50774944.
leonidasrup 4 hours ago
formerly_proven 6 hours ago
Pxtl 39 minutes ago
cowlevel 6 hours ago
Are there any curves that have the same compatibility story, are 384 bits or bigger, and weren't selected by the NSA?
throw0101d 7 hours ago
> When you know that both computers that communicate have up-to-date OpenSSH versions, you can choose to generate quantum-resistant host and client keys.
Reminder that you can generate PQC keys right now (where available), and they will be offered right now, but you can still have fall back options.
atmosx 8 hours ago
Kudos for choosing sensible defaults.
quotemstr 6 hours ago
It certainly looks like everyone is going to treat this break as a "just move to larger EC keysize bro" and not bite the bullet on PQC until we have a quantum computer staring us in the face.
traceroute66 10 hours ago
> "Add support for composite ML-DSA 87 / ECDSA p384"
Looks like that's do do with using FIPS-approved algos.
thefilmore 10 hours ago
Why not ssh-mldsa87-ed448 [1]?
[1] https://datatracker.ietf.org/doc/draft-sun-ssh-composite-sig...
cvhc 8 hours ago
If I'm correct, Ed448 is not approved in CNSA. mldsa44-ed25519 gives the shortest key (though still longer than even RSA8192) and probably fastest among hybrid options, while mldsa87-p384 is the strongest + NSA approved.
adrian_b 8 hours ago
athrowaway3z 8 hours ago
kbolino 9 hours ago
OpenSSH doesn't support Ed448.
computerfriend 10 hours ago
I'm also hoping for this one.
nextaccountic 7 hours ago
why isn't ML-DSA 87 / ECDSA p384 the default?? it's at least as safe as pure ECDSA 384
rc_kas 9 hours ago
it will be 7 years before ubuntu puts this version on my servers.
1over137 9 hours ago
I think Ubuntu of late has proven itself unfit for servers. ;(
bonki 7 hours ago
Tepix 8 hours ago
But Debian 13 added 10.6p2 to stable-backports on Dec 3rd.
manbash 9 hours ago
Yeah on 24.04 is still v9.6. Security-related rollouts are really lacking.
Palomides 8 hours ago
you can generate and use the same keys with whatever version of ssh you already have, who cares
literalAardvark 10 hours ago
So ECDSA isn't the broken one. Good to know I guess. Time to change all the damn keys.
Polizeiposaune 10 hours ago
384-bit ECDSA, not 256-bit ECDSA.
Not sure why they aren't going all the way to 521-bit out of extreme caution, though.
(Oddly, the ECDSA sizes are 256, 384, and 521 -- the big one is 521 not 512).
adrian_b 9 hours ago
adgjlsfhk1 8 hours ago
formerly_proven 10 hours ago
leafingensemble 8 hours ago
nmadden 9 hours ago
loeg 10 hours ago
The suspicions I've heard floated are with elliptic curves generally and 256-bit key sizes specifically. ECDSA P-384 is an available EC algorithm with a larger key size.
knorker 10 hours ago
The announcements seem to say that 256bit and shorter is broken.
And what was added here was ML-DSA (PQ) dual signed with ECDSA 384. So in addition to being PQ, if whatever secret attack against 256bit ECDSA is improved to get te 384, then the ML-DSA is intended to still protect the key.
havnagiggle 9 hours ago
rao-v 6 hours ago
If we’re migrating why are we not just hard migrating to SPHINCS+ (hybrid with RSA or elliptic)? ML-DSA (Dilithium) is weakened by the recent Anthropic findings (https://blog.cloudflare.com/pq-is-still-safe), SPHINCS+ is (as of now atleast) the strongest standing NIST scheme.
The keys are not that much bigger or slower. Can we please just do this one time well?
pezezin 2 hours ago
SPHINCS+ keys are quite small, but signatures are huge, on the order of ~30 kB.
rao-v 2 hours ago
pippy360 10 hours ago
There's something interesting about to happen to bitcoin. It seems that, because old wallets with huge amounts of bitcoin have known known public keys, bitcoin will have to fork and lock out any wallets that don't transfer their bitcoin to the new fork. An alternative is to do nothing and hope any attacks are just too expensive/infeasible in the next 40+ years.
I'd love to have a conversation about it and hear people's opinions. I tired the bitcoin reddit but it's a difficult place to do that because so many people are heavily invested in it.
aenvoker 9 hours ago
Anyone can fork Bitcoin. It’s been done thousands of times. There are probably 10 forks made yesterday in response to the news. The hard part is getting everyone else to switch over to using your new fork.
The fork everyone has in mind would be one announced by the bitcoin core team. If that happened, it would go the same as it did when core Ethereum forked. There would be a worldwide argument over the legitimacy of the fork vs the unmodified client. Both chain would continue to run in parallel. And, everyone holding Bitcoin today would be holding both Bitcoin (new fork) and an equal amount of “Bitcoin Classic” (old fork). And, we’d all sit and watch how the prices of the two go from there.
A big difference would be there wouldn’t be much of an argument for sticking with a vulnerable fork. Even hardcore originalists would agree the fork was recommended by Satoshi himself if this happened.
The awkward part is that there would be a de facto pause on the network. At some point there would be an announcement “OK. We’re officially going to fork off of block N. We can’t stop you from continuing to transact on the current chain. But, your transactions after block N won’t be carried over to the forked chain.” The time between block N and the launch of the new fork will be painful.
And, I’m interested to see how secure migration of the 6 million bitcoins in vulnerable old wallets will work given that it would need to support a long time window. Preferably forever. But, I don’t know enough to say how to make that work.
The bright side is that Bitcoin might finally be able to drop the specter of Satoshi’s 1.1 million bitcoins. They are stored in vulnerable wallets and are not expected to migrate. So, the Bitcoin max supply would drop from a de facto 20 mil to an actual 20 mil (less lost, forgotten, burned and abandoned coins).
garaetjjte 9 hours ago
There is no need for any pause, you just push new client version that will start to accept new address format from some future block N, and stop accepting old addresses from future block M (presumably you wouldn't want to leave insecure coins for taking). I'm not even sure if this requires hard fork, as SegWit was deployed with some trickery as soft fork. (even if not, Ethereum hard forked multiple times for protocol changes without too much trouble)
hapticmonkey 3 hours ago
Wouldn’t it play out like Segwit or Taproot soft forks? (Perhaps minus the block size arguments) If Bitcoin soft forks to a new address type with a new cryptography scheme (which has been done before) then it just means people can send their funds to a new, safe address.
If the current 256bit scheme is reduced to a practical 85bits, then there’s not a major rush and thus can happen over the course of years.
Old addresses (lost keys or people who don’t send to new addresses) are still open fodder for anyone to throw compute at. That’s probably the way the community’s ethos will want it. No human intervention or preferential treatment.
I’m not sure what any of this means for mining, though. If mining gets easier then the difficulty self-adjusts. Unless mining gets totally broken and needs something to replace the SHA256.
ACCount39 an hour ago
thehamkercat 8 hours ago
> Bitcoin might finally be able to drop the specter of Satoshi’s 1.1 million bitcoins.
Completely opposite of what Satoshi wanted, government/people/a group being able to freeze your money,
or at least this will set up a precedent for that
cowlevel 6 hours ago
srdjanr 6 hours ago
aenvoker 8 hours ago
jMyles 9 hours ago
Your comment insinuates that hard forks, and community consensus to adopt new forks, is uncommon, but this is the ordinary course of business for ethereum upgrades, and is a well-established practice and tradition.
Also, GP is specifically asking about _wallets whose address reveals the pubkey_. Thus, if SECP256K1 is pwned, their private key can be gleaned.
There is going to have to be some serious deliberation about what to do about these. It may be that the only viable option is to require attestation from the original BIP-32 derivation material in order for these addresses to be considered valid for migration.
gwillen 8 hours ago
foota 8 hours ago
gwillen 8 hours ago
My impression, reading the tea leaves, is that P-256 is _not_ currently breakable by a realistic adversary; there was just some discovery that means it no longer has anywhere near the security level that the NSA is comfortable with.
This means Bitcoin is on a much-accelerated timeline to get onto post-quantum cryptography, for which plans were already in motion, but it does NOT mean that Bitcoin wallets are breakable tomorrow or necessarily even next year.
For the NSA and the USG, it means they need to worry _now_ about attackers who can store huge volumes of encrypted communications today, and break them in a few years, when they might still be relevant from an intelligence perspective. Bitcoin doesn't need to worry about such attacks; once coins are moved, the old keys are worthless. So a break that brings timelines down from 30 years to 15, or from 10 years to 5, is critical to the USG/NSA but not to Bitcoin yet.
selectodude 8 hours ago
I’ve read the opposite - single keys are now within reach but every key requires a new search. So your old communications are safe-ish but bitcoin is uniquely vulnerable.
ComplexSystems 6 hours ago
Not currently, right. But this whole thing is nuts. Will it be broken in a year? Or can't Levant Alpöge just go run his damn agent harness that gave us GRH, exotic 4D spheres, etc and give us some results?
jwpapi 3 hours ago
Somebody correct me if I’m wrong but as far as I understand the suspected discovery is that the reduction of breaking bitcoin knowing the public key is reduced from the square root to the cube root. Meaning we have only 83 bit of security vs 128.
https://btcpuzzle.info/puzzles
Given we have puzzles here with a 140bit difficulty the security would be reduced to 48bit, which is easily doable.
This is easily doable on a single GPU and there is a bounty of 14 BTC now half a million dollar on it. But nobody has solved it yet.
It could be that none of the people that have access to the exploit care about it, but it also means it’s not yet so spreaded that people can just crack it. Or the approach only works on the full 256 bits.
fwlr 6 hours ago
Assuming the still-maddeningly-unspecified issue is a break that makes substantially all old wallets vulnerable, but does not make mining vulnerable:
Bitcoin, in its role as a decentralized currency issued by mathematical rather than political fiat, faces no threat. Genesis coins being reactivated means fewer coins were destroyed than market participants previously assumed, but it doesn’t break the hard cap of 21 million so Bitcoin remains a deflationary currency and Coase’s Theorem will eventually redistribute those old coins more-or-less fairly. For a non-technical analogy: It would be something like the market shock if Musk passed away suddenly without a will and his assets were liquidated and distributed equally amongst all his biological children.
Bitcoin, in its role as an unregulated-ish cyber gambling game / stock market, faces an existential threat as the amount of old coins dwarfs the current amount in play. A non-technical analogy here is if all the money in a casino’s vault was destroyed and all patrons simultaneously realise the chips they’re betting with, expecting to be able to cash them in for real dollars, are now basically Monopoly money.
The tension would be that this second group, who have essentially “conquered” Bitcoin by virtue of being most of its users, would have the desire and maybe the ability to break some of Bitcoin’s principles or protocols to prevent their apocalypse.
Essentially, this is not strictly a fatal problem for Bitcoin, but current users could make it Bitcoin’s problem.
naveen99 9 hours ago
You can just think of cracking the satoshi exposed pay to public key coins as new type of bonus mining rewards. Pay to hash is still secure… unless they can crack a public key in less than 10 minutes.
swinglock 10 hours ago
https://delvingbitcoin.org/ would be a better forum than Reddit for such topics that aren't memes.
hartator 6 hours ago
There is also some odds that bitcoin is already broken as old wallets seem to have moved. In that the case, how to determine when the hard fork should be? If current blockchain is a mix of legitimate and non-legitimate transactions?
zarzavat 3 hours ago
The old wallets are likely moving because the owners either want to cash out, or to move to an address with higher security, not because the funds have been stolen.
Nonetheless, I agree that it's a major problem that you would not necessarily know at what point it's being actively exploited if an attacker was smart enough to target abandoned wallets rather than active ones.
That would be the intelligent play, preserving the value of the coins as much as possible.
alchemist1e9 6 hours ago
the old wallet movement is highly consistent with an OG miner securing weaker wallets. even if these old wallets were cracked it’s unlikely to be “bitcoin” itself and the encryption it uses but instead that a weakness was found in the RNG that was used in old versions of mining software allowing to guess the private keys.
However most knowledgeable observers think it’s more consistent with the real owner becoming paranoid about that theoretical issue and/or the early public address system being more theoretically vulnerable (as has been speculated) and deciding to move their coins now (bad timing imho).
PretzelPirate 8 hours ago
If coins are vulnerable, either the owner will lose them to an attacker or will lose them to being locked.
In either case, the owner loses them. When the miners decide that unsafe coins are abandoned and it's better to lock them than to allow them to be stolen by a nation state.
This all assumes that bitcoin adds support for a new signature scheme and gives time for wallets to be migrated.
post-it 10 hours ago
I don't really see the issue. If the wallets are in use, the owners will update. If they're not, it doesn't matter if someone cracks them.
stnikolauswagne 9 hours ago
For starters one of the long dormant wallets is satoshis thats like give or take 5% of bitcoins entire supply.
int32_64 8 hours ago
mattashii 9 hours ago
nmadden 9 hours ago
armchairhacker 9 hours ago
jwpapi 9 hours ago
Maybe bitcoin IRC?
ForHackernews 9 hours ago
Personally, I think bitcoin is doomed either way:
- If they do nothing, eventually those old wallets are hacked and stolen, new supply + loss of confidence crashes the price.
- If they fork it and lock those old (abandoned -- but maybe not!) wallets, then they have undermined the only value proposition BTC has ever had - it's not an infallible "trustless" currency, some cabal of devs/miners can take away your coins. Obviously that's always been true, but they are vividly demonstrating it.
It's lose-lose, because both narratives are catastrophic for BTC.
Auracle 3 hours ago
This is, what, the 8th time Bitcoin has been doomed? It’s incredibly how cyclic it’s been. Bad news happens. People that bought near the top freak out once it starts dropping and they sell (I had two friends do that around the $10k level), and it then continues to drop until enough people both stop and decide that it’s a good time to buy it.
At some point it starts climbing. Eventually it climbs quickly enough to make the news, and people rush in to buy it, bringing it to all-time highs. Less coins are produced as the years go on and some are lost, so there’s always upward pressure.
Unless something absolutely mathematically catastrophic happens it’ll be fine.
satvikpendem 9 hours ago
The second scenario already happened with Bitcoin Cash, perhaps many are too young to remember that now.
muyuu 6 hours ago
Bitcoin has introduced hard-forking changes before, and it will do again, and they only requirement for this is that there is a clear understanding that the change is necessary.
With the integer bug, the consensus was there that is was an obvious bug and had to be fixed, and it went swimmingly.
With Bcash, there was no consensus so they were pretty much forked off the network and both value and PoW left no doubt about which one had the community's consensus behind.
There have been grey areas more recently, but a hard necessity to change will see the community move together like it happened before. Either that, or it will indeed collapse. But such trials happened before.
swinglock 9 hours ago
armchairhacker 9 hours ago
> it's not an infallible "trustless" currency, some cabal of devs can take away your coins (obviously that's always been true, but they are demonstrating it)
Maybe people are too stupid. But the point has always been that the “cabal” must be a vast majority of crypto users, who would never persecute you (or your demographic) specifically, unless you’re doing something extremely wrong (even petty or local crime won’t cause a hard fork).
jimmydorry 8 hours ago
rcpt 5 hours ago
How cheap is the new exploit vs. a regular 50% attack?
pippy360 9 hours ago
yeah this is why I think the situation is so interesting. It really does seem like there's no way out. It actually looks inevitable.
jMyles 7 hours ago
jMyles 9 hours ago
Am I missing something? What about the third option:
* Require attestation from the original HMAC derivation material in order to migrate the wallet.
yieldcrv 8 hours ago
the network doesn’t have to do anything
if satoshi’s coins were signed and transferred but nobody else’s can be accessed, whats the issue here? that bitcoin’s price goes down for the accurate reason of there being more supply on the market?
okay? so what? people will purchase it, that volume of bitcoin has been bought and sold in periods of high volatility before as well as OTC and bitcoin’s liquidity is near its highest its ever been.
the commodities market is always based on supply and demand, not a permanently bullish “it must go up” treatment that equities investors have.
this is more akin to a huge known gold deposit thats been under a glacier for a long time and the glacier just melted
its not a free for all where everyone steals from each other indefinitely rendering the network unusable
but the price is accurate as is so the network should do nothing and promote movement of balances to proper addresses
knorker 10 hours ago
I for one think the best outcome is to see this crime coin just die. With enough speculators walking away it'll be 100% crime, and the criminals won't be able to hide amongst the speculators.
I'd comment on the third kind of bitcoin holders, but there isn't a third kind.
One day the speculators should come to terms with how they profited by hiding organized crime. But I'm not holding my breath.
pippy360 9 hours ago
calling it a "crime coin" just poisons the conversation. I came to hacker news instead of reddit to avoid this. You can make your point without inflammatory stuff like that.
knorker 6 hours ago
forgotoldaccoun 9 hours ago
its definitely not the majority of people who own crypto but it has come in handy paying for some very legal things too that payment processors don't wanna touch or where i don't wanna put my credit card in. also you want some crime to happen. a lot of things are only legal now because a bunch of people commited the crime of doing it and there was enough demand to get those things legalized/decriminalized.
cowlevel 6 hours ago
TedDoesntTalk 10 hours ago
There is a contingent of people who use it for “stored value” like gold. I don’t know how many people do that; I don’t anyone really knows. But I agree; the crime factor is huge and I wish it would die.
knorker 6 hours ago
cromka 9 hours ago
dontlaugh 9 hours ago
The third kind is sanctions evaders, which depending on your perspective may not be a crime. But losing bitcoin for the purpose wouldn’t be fatal to the practice.
wry_xy 9 hours ago
Funny enough, it was speculators who killed Bitcoin's utility. Back when it was used almost entirely by criminals, it was actually used as a currency. Too expensive and volatile for that now. Criminals have mostly moved on.
knorker 6 hours ago
shaky-carrousel 9 hours ago
Same could be said about the US dollar.
knorker 2 hours ago
mtlmtlmtlmtl 9 hours ago
Don't criminals mainly use monero now?
knorker 6 hours ago
survirtual 9 hours ago
Organized crime primarily uses USD and other government-sponsored currencies. They control the monetary supply with impunity, socializing losses while privatizing gains. They commit genocide on a scale never before seen in humanity, deport natives and citizens to unfathomable inhumane prisons, and commit unspeakable sexual crimes against children.
What crimes has bitcoin been used for? Making an honest monetary system that allows teenagers to buy some drugs for personal use?
I think you may want to reflect on what happened during 2008 that triggered the creation of bitcoin. Because you are on the wrong side of history. Modern robber barons stole from the world at an unprecedented scale and suffered ZERO consequences. Bitcoin was the first real salvo against that modern tyranny. But instead of people coming together and stopping them, that same tyranny has hoarded resources and gobbled up the world’s compute and they finally have a real response (allegedly) against this thorn in their strange-hold on humanity.
If I had to guess, this is just the beginning. Don't be a bootlicker contributing to the continuation of the suffering of our species.
We are all about to go through a gauntlet. They want us to own nothing and be grateful for it. They want us to trust them as they lie, feast, and steal from us. They want to drain our creativity and exhaust our will. Even this supposed crypto cracking situation is an example; there are easy ways to provide evidence of their attack but instead they weave a web of lies and rumors against their enemy: all of us. The sew confusion, fear, loss, hopelessness. I am talking right now about a very old and ancient pattern that we all know very well.
I wonder what we're all going to do about it? It isn't looking good if people think their enemy is literally math.
solyin 8 hours ago
cowlevel 6 hours ago
knorker 5 hours ago
sirmike_ 9 hours ago
Bender 10 hours ago
Before compiling this manually or updating your OpenSSH client, back up your existing keys and test manually to all of your oldest servers of each distribution flavor. One should have protected snapshots of all their keys regardless. Append the new key to authorized keys and avoid removing the old entry until it is verified that all systems accept the new key.
In an ideal world the trusts of public keys would be managed by a configuration management system that knows who really owns which public keys and fires alerts when unknown keys are added or added to the wrong account. Mapping should be by the public key itself and not the comment. Or configure PAM to query the SSH public keys from LDAP and cache them securely.
traceroute66 10 hours ago
> Append the new key to authorized keys and avoid removing the old entry until it is verified that all systems accept the new key.
Also a good time to consider migrating to using SSH certificates so you never have to play the authorized keys dance ever again. :)
Its not that difficult.
jeroenhd 10 hours ago
But then you need to update your SSH certificates, because I'd your key was signed by a broken algorithm, your certificate probably was as well.
Which reminds me to check my certificates, actually.
Bender 10 hours ago
There are a number of pros and cons to each method that each person or organization will have to decide for themselves. If I list the pros and cons of each it will appear biased so I would encourage everyone to do their own extensive research on this topic before making such a change.
traceroute66 10 hours ago
rustyhancock 10 hours ago
I can't believe I hadn't heard of SSH certificates. It does seem a nice simplification I'll look into this weekend.
I assume and hope it's as simple as setting up one key and then automatically being able to log in with any subsequently signed key.
traceroute66 9 hours ago
champtar 10 hours ago
You do need to move your CA to bigger sizes or different type, so this time you still need to do some changes on all your systems.
ycombinatrix 10 hours ago
Adding a remote dependency & new point of failure to my SSH servers? No thanks.
doubled112 7 hours ago
ijustlovemath 10 hours ago
Which configuration management system do you use?
Bender 10 hours ago
I used to use Ansible but now being retired I just have a handful of hobby nodes and that is trivial to manage with a shell script compared to the 50k+ physical servers and ungodly number of VM's most of which used LDAP for ssh keys.
cyphar 9 hours ago
I wonder why people aren't switching to Curve448, it has the same benefits of Curve25519 (nothing up my sleeve parameters, implementations are less likely to be buggy, unaffiliated with the NSA). It even has a larger security margin than P-384 (224 bits vs. 192 bits) so even if you assume the undisclosed issue is a classic attack on all elliptic curves it's a better choice.
Sadly it's not widely supported (a lot of internet standards forget to include it) but if you're implementing cryptosystems it's pretty easy to get your hands on and it's even FIPS approved. OpenSSL supports it but based on some very minimal testing it seems browsers won't negotiate it for TLSv1.3.
verandaguy 9 hours ago
"Unaffiliated with the NSA" is a selling point to some, but not to others. Many enterprise customers and compliance frameworks go with NIST-recommended algos, which are almost universally NSA-recommended.
cyphar 8 hours ago
They are finally FIPS-approved so there shouldn't really be any impediment even if you are selling to government.
NIST SP 800-56Ar3 does not explicitly approve X{25519,448} but Appendix D references NIST SP 800-186 which does allow them, and NIST has announced they plan to update it to include them. (Everyone switching to X25519MLKEM768 is already on the same boat in terms of compliance.)
And Ed{25519,448} signatures are explicitly approved in FIPS 186-5.
throw0101d 7 hours ago
> I wonder why people aren't switching to Curve448 […]
How many configurations have it as an option as compared to the various NIST 'P-series' options? If you, and also the folks you have to interop with, do not have Curve448, what's the point of implementing it now? Further, if you do government work and have to use Official Workflows™, then it may not be an option (FIPS 186-5 notwithstanding).
If you're going to spend effort to implement something now, you might as well put effort in (hybrid and/or pure) PQC options.
opk 9 hours ago
Would this change also be applicable to GPG. I have a need to create a fresh GPG key anyway (for signing release tarballs) and I see it defaults to Curve 25519. Should I go for NIST P-521 instead? It doesn't seem to support anything equivalent to the mldsa44-ed25519 that openssh 10.6 has, just some "Brainpool" thing with the same bit sizes as NIST.
treeblah 9 hours ago
I believe gpg's answer is kyber1024_cv448, which is a hybrid key supporting ML-KEM (one of the recommendations per https://words.filippo.io/nsa-advisory/)
treeblah 9 hours ago
Although I just noticed you mentioned signing, which gnupg doesn't support with PQC yet. The kyber stuff is encryption only. Sequioa PGP supports PQC signing: https://sequoia-pgp.org/blog/2025/11/15/202511-post-quantum-.... Annoyingly the standards differ between the two tools.
blackcatsec 9 hours ago
Not sure why one would stick with a purported vulnerable secondary cipher on the hybrid approach. If we take the worst case scenario, it's effectively useless right now.
Unfortunately I've found on most of the internet the hybrid support is largely x25519/mlkem768. But if you don't have an explicit need to be TLS compatible, I'd move further.
treeblah 8 hours ago
cowlevel 6 hours ago
NIST = NSA, it's probably not a good idea to use any NSA curve for obvious reasons
seethishat 10 hours ago
Curious why not RSA 4096 instead? RSA is the oldest and maybe the safest, most well studied option IMO.
noinsight 10 hours ago
Its performance is terrible. That’s the reason for the shift to ECC in the first place (partly).
globular-toast 6 hours ago
Does that make any difference for SSH? My understanding is asymmetric crypto is only used once per connection to exchange a symmetric key which is used to encrypt the actual data. PGP is similar. Nobody uses RSA of any key size to encrypt any actual data.
cowlevel 4 hours ago
upofadown 9 hours ago
If you think that RSA is OK then RSA2048 is good enough. It is significantly more performant then RSA4096. It is probably faster than typical curve based stuff for encryption and signature verification.
cowlevel 6 hours ago
rrr_oh_man 10 hours ago
What does terrible mean, practically?
bob1029 10 hours ago
noinsight 9 hours ago
13415 10 hours ago
rsync 4 hours ago
"Curious why not RSA 4096 instead? RSA is the oldest and maybe the safest, most well studied option IMO."
This should be our first question and, as a follow-up, why did OpenSSH steer default algorithms away from large (3072/4096) RSA in the first place ?
Who among us is handling thousands of SSH connections per minute ? Who among us is handling multi-gigabit streams of SSH traffic ? If so, you know what you're doing and can make good selections based on your unique and interesting use-cases.
Meanwhile, how many personal/home/small/sensitive users were shunted away from RSA over the last decade for no good reason ?
cowlevel 4 hours ago
Because it's really slow, that's why. That's basically the reason we all moved off RSA to ECC in the first place.
You don't have to be handling thousands of SSH connections per minute, you just have to have regular internet port scanners knocking on your SSH port and your server will be wasting substantial CPU proving its identity to them if it's got an RSA4096 host key.
The gigabits don't actually matter, since it's a one-time cost per connection establishment.
ajasmin 4 hours ago
1password can't import ecdsa-sha2-nistp384 just yet
throw0101d 12 hours ago
The link is pointing to the Github mirror, which can probably take a lot of traffic better than the canonical repo:
* https://cvsweb.openbsd.org/log/src/usr.bin/ssh/ssh-keygen.c
(See 1.512 on Thu, 03 Dec 2026 08:40:32 UTC.)
alpn 9 hours ago
currently being hugged to death. archive: https://web.archive.org/web/20261205154533/https://www.undea...
gist is:
- ssh-keygen(1) now defaults to ECDSA NISTP384.
- default first-preference signature algorithm has been changed to ML-DSA 44/ed25519 hybrid.
- initial support for composite ML-DSA 87 / ECDSA P384 signatures has been added.thisisthenewme 5 hours ago
Declarative config + private network is the future. Just switched all my machines to Nixos, moved all to ssh only over Tailscale. Still might have holes somewhere but at least its all easy to think about and manage rather than constant anxiety into potential gaps.
denverllc 9 hours ago
Does anyone know if Curve25519 (Montgomery) is also generally affected? I believe that’s what WireGuard uses
adrian_b 9 hours ago
With the exception of a few privileged, nobody knows for sure whether there exists a faster attack against all elliptic curves with small parameters, or only against a restricted class.
Nonetheless, the safer choice is to assume the worst case, which is that Curve25519 is also vulnerable. With this assumption, in all places where elliptic curves smaller than 384 bits are used, they must be replaced, which corresponds to the recommendations of NSA.
globular-toast 6 hours ago
The recommendation from the Wireguard author is to use the pre-shared key option and not rely on any asymmetric encryption.
cowlevel 6 hours ago
Nobody knows anything at all. Nobody actually knows that any curves are affected. All we have are two pieces of public information: the changes to NSA recommendations, and Chrome (who have probably spoken to the NSA) rapidly deprecating root certs that don't meet the recommendations.
steeleduncan 5 hours ago
The NSA recommendations are unchanged since 2016, they reiterated the urgency of following them.
bitanarch an hour ago
Hardware keys like YubiKey will all need to be upgraded :(
cvhc 5 hours ago
Is there a plan to support nistp384 for FIDO2 keys? I just checked and it seems only "sk-ssh-ed25519" and "sk-ecdsa-sha2-nistp256" are supported.
asveikau 6 hours ago
I wonder on what timeline we will see:
* Backports to OpenBSD stable branch and errata
* New OpenSSH portable release
* Distros adopting previous step
Or is do we end up waiting for a new OpenBSD release -- the 6 months cadence would put it at around May -- before normies start seeing these patches?
jwpapi 9 hours ago
https://btcpuzzle.info/puzzles
They didn’t yet crack 2^71 jfi
r2vcap 5 hours ago
As cryptography news develops so quickly, I wonder if LTS Linux distros have a place to exist, at least for internet-facing ones.
globular-toast 4 hours ago
LTS means long term support. That means security patches. That's the whole point. You can always stay on an unsupported distro forever if the goal is merely stability.
charlieyu1 5 hours ago
So just use longer keys instead of trying PQC that may or may not be vulnerable is the safe approach
nocturn9x 11 hours ago
so 256 bit ECC is well and truly dead huh. 1 minute of silence for my favorite curve, you'll always be in my heart Ed25519
xaduha 9 hours ago
Hardware keys ed25519-sk and ecdsa-sk are 256 bit. Most passkeys are a P-256 key pair and an ECDSA signature as well, that's not going anywhere. I don't see people mention passkeys in these conversations at all.
lewdwig 10 hours ago
Every “which is the best SSH key type?” blog post is now wrong in two directions
seanieb 8 hours ago
I don’t love using curves created using mystery numbers from the NSA, thank you.
mxey 8 hours ago
seanieb 3 hours ago
Thank you.
cowlevel 6 hours ago
DJB would classify this as "manipulable".
ls65536 8 hours ago
Are updates to host key algorithms covered by this as well?
sidcool 7 hours ago
Should we be changing out GitHub SSH keys?
JanisErdmanis 7 hours ago
I guess it won't take long until Github will invalidate all my P256 keys ;/
globular-toast 5 hours ago
I'm going for RSA-4096. If that gets banned too then we'll know something is up.
JoyfulPanda 8 hours ago
didn't we choose ed25519 over ecdsa because we didn't trust how nist came up with their curve or so?
tptacek 8 hours ago
No.
gildenFish 5 hours ago
kinda yes, kinda no
johnea 7 hours ago
According the DJ Bernstein, NIST P-384 fails his SafeCurves criteria:
I'm not an expert, that's why I'd use a Bernstein recommended algorithm.
nodesocket 9 hours ago
This is gonna be a nightmare re-generating all ssh keys and revoking old keys from authorized_keys once support for mldsa44-ed25519 authentication drops. I only have a handful of homelab servers and a few AWS EC2 instances and this is gonna royally be a pain in the ass. Imagine large companies who have thousands of servers with thousands of ssh keys.
JoyfulPanda 6 hours ago
they invented ansible for that. and also certificates
shevy-java 5 hours ago
Was this in response to NSA saying the crypto-world will soon come to its end?
kuschku 6 hours ago
Can we also get support for the webauthn sk- versions of p384? Currently they aren't supported
chasil 10 hours ago
Would the 521 curve not be more prudent?
traceroute66 10 hours ago
> Would the 521 curve not be more prudent?
Probably because their goal was notional compliance with CNSA 1.0.[1]
cowlevel 4 hours ago
The old default wasn't compliant with it. Why the sudden need for compliance now?
noinsight 10 hours ago
No, that curve is dead. Browsers removed support for it.
chasil 8 hours ago
You might also remember that PuTTY made a basic error in with their P-521 implementation, and it was corrected, not removed.
Th P-521 seems the best option for ECDSA at the current time.
http://blog.cr.yp.to/20140323-ecdsa.html
"To be fair I should mention that there's one standard NIST curve using a nice prime, namely 2^521 – 1; but the sheer size of this prime makes it much slower than NIST P-256."
bflesch 10 hours ago
They're using FUD to push everyone away from RSA and towards a new, backdoored curve because the current backdoored curve has been exposed.
kortex 9 hours ago
Tech companies are recommending hybrid x25519+MLKEM, or P-384 where hybrid isnt available, and RSA-4096 as a last-ditch interim. What exactly is this "new backdoored curve"?
chasil 6 hours ago
cowlevel 6 hours ago
bflesch 7 hours ago
SoftTalker 10 hours ago
Is that what Anthropic discovered? An intentional backdoor and not an algorithmic weakness?
airspresso 10 hours ago
jMyles 10 hours ago
bflesch 8 hours ago
mschuster91 10 hours ago
RSA is similarly broken. 1024 bit keys can be cracked by a sufficiently well equipped adversary (I think I came around a figure of 120 million dollars in compute cost, but that was before the AI craze), and 2048/4096 are going to fall as soon as someone manages to create a working quantum computer.
bflesch 8 hours ago
tae_yang 10 hours ago
wait so read-only just means you can't write files into the mount? tools/ is full of executable bash scripts and running one calls the server for real. readme literally says only use it with MCP servers you trust https://github.com/openai/mcpfs#readme