Posted by throw0101d 12 hours ago
https://web.archive.org/web/20261205154533/https://www.undea...
* 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...
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.
The main source of worry is the SSH host and client keys not having PQC options, so 'impersonation attacks' are probably the primary source of risk in the near future.
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.
Looks like that's do do with using FIPS-approved algos.
[1] https://datatracker.ietf.org/doc/draft-sun-ssh-composite-sig...
The next version of OpenSSH is likely to include the algorithms made mandatory by CNSA 2.0 for all systems that are classified as "National Security Systems", and which are also recommended by NSA elsewhere.
These algorithms are "mlkem1024nistp384-sha384" (RFC 10042) for key exchange and "ssh-mldsa87-p384" for host keys and client keys (draft RFC).
While Ed448 is not among the recommendations of NSA, there is no doubt that it is more secure than P-384, and also faster, so the hybrid algorithms with ML-KEM-1024 and ML-DSA-87 where the curve NIST P-384 is replaced by Ed448 are certainly preferable.
Such combinations are defined and they might become available in some TLS 1.3 and IPsec implementations, but it is unlikely that OpenSSH will include them, because it has never included support for Ed448.
Nonetheless, there is an obvious difference in tone when mentioning algorithms that must be avoided, i.e. any elliptic curves with sizes below 384 bits or RSA with sizes below 3072 bits, and algorithms in which NSA appears to be not interested, at least for now, without providing any opinion about whether they are good or bad. A big enough elliptic curve like Ed448 belongs to the latter class.
Another poster has made a comment that I believe to be correct, i.e. that NSA has attempted to minimize the number of algorithms that are included in CNSA 2.0 to the minimum possible, because they are interested to have all of them implemented in some custom hardware, where, unlike in software, every additional option increases significantly the cost.
The actions of the NSA sit in a super position of good-faith and bad-faith interpretations.
Therefor we must also interpret its silence and apathy towards Ed448 somewhere between unremarkable and the strongest possible endorsement.
" A piece of debris classified "top secret" is somewhere among the thousands of shards of the space shuttle Columbia spread across Texas.
The communications device handles encrypted messages between the shuttle and the ground. According to its serial number, it is in a class of equipment labeled "TSEC" -- telecommunications security -- that must be handled with strict chain-of-command documentation.
Experts differed on the importance to national security of recovering the device, which was "keyed," or prepared for use with mathematical algorithms. "
http://www.globalsecurity.org/org/news/2003/030206-comsec-sh...
The keys are not that much bigger or slower. Can we please just do this one time well?
No new features. No new nothing. Boring, but stable. Kinda lika Ubuntu LTS, but possibly even more boring.
"Unstable" means that you'll probably never ever experience anything which causes issues, but the versions are not carved in stone - and new version of things arrive in a useful way - like actually having maintained versions of OpenSSH and OpenSSL for your system.
It has versions - and when a new "unstable" version is out, you have to dist-upgrade. Boring, but more up to date, while still reliable & predictable.
"Testing" is essentially a rolling distro - and I wouldn't recomend that for any server.
But in today's security landscape I wouldn't recommend Debian stable either. The crypto-libraries are too old.
And this was possible because 20 years ago they first introduced Linux to thousands of kids that grew to be sysadmins, and those kids-turned-sysadmins knew and trusted Ubuntu
I know because around 2006 I distributed Ubuntu live CDs I received for free (I think it was Ubuntu Dapper)
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).
There is no noticeable slow-down, I still connect instantaneously, but that is because I am the only one who connects through SSH to those devices. If there would be thousands of SSH connection establishments per second, I suppose that there might be a measurable difference in CPU load between using ED25519, P-384 and P-521. For a Github server or for a Huggingface server, the size of the curve should matter, because those have a great number of clients connecting through SSH, but not for a server with a single administrator, who uses SSH.
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.
If you read closely it mentions specifics
>particularly checking for algorithms not approved in CNSA 2.0 or CNSA 1.0 (e.g., DSA, elliptic curves other than P-384 or P-521 for ECDH or ECDSA, EdDSA, deprecated Diffie-Hellman groups, pairing-based cryptography).
>Removing all weaker elliptic-curve and deprecated DH options (e.g., IKE groups 22-24) from cipher suite and key exchange preferences.
Those mentioned IKE prime order sub groups are of 160/224/256 bits. Lots of algos are outside CNSA 2.0 and 1.0, but they found it important to point to a small subset specifically
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.
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).
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
With broken crypto, the only two options would be keeping Bitcoin as is, vulnerable and thus worthless, or to give an option to migrate to a new fork to avoid that. I don't see how forking isn't a strictly better option.
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.
Attestation from BIP-32 derivation material is obviously not possible for very old wallets, most notably the "Satoshi coins"*, which are P2PK addresses and predate the existence of BIP-32.
A possible alternative involves allowing holders of such coins to bury a blinded commitment to a secret in the blockchain _now_, or soon, before "q-day" when all quantum-vulnerable spend paths get shut off. Then they could reveal the blinded commitment at any time in the future to make a quantum-resistant spend of the old coins. This preserves the status quo: holders of old coins can still retain access to them, without having to break their privacy by revealing anything, not even whether the coins do still have an owner.
*Technically nobody has any idea whose coins they are, or if they even belong to a single individual; only that they were mined by one or more very early miners, and never moved. Many people suspect that they were intentionally destroyed, since in the very early days of the network they were worthless, and reliable mining was a public service rather than a profit-making enterprise. And Satoshi (if it was Satoshi) may have realized that it wouldn't be good for the economics of the new currency if the creator owned the supermajority of all the coins.
This thread was making me feel crazy.
The development and deployment of a protocol-level secret blinded witness attestation is a great silver lining of this whole thing. I hope it happens quickly.
Do you know where this is being worked on? (I presume it's a separate path for ethereum, based on a ZKP or Schnorr or something?)
I'm not an expert on bitcoin, but again if we assume things are safe today, people could submit some "I am switching this account over SECP_SUPER_SECURE with address FOOBAR" message on the blockchain, but this method can only work until SECP256K1 is broken, since afterwards you wouldn't be able to trust those conversion messages since they would be spoofable.
For addresses that are post BIP-32 (ie, nearly all of them), this is not strictly necessary, because the original derivation material (which went through an HMAC to derive addresses) can serve as a witness.
For addresses older than that, it's not necessary to make a public pronouncement as you suggest; a blinded secret witness (or, for ethereum, a ZKP) can achieve this, in case bearers of such secrets want even their existence to remain uncertain.
But how would the dating come into play here? I guess what you're saying is that before some date someone could publish some ZKP kind of thing (hand-waving, but I accept that this is likely possible) that would allow them to later prove that at that date they knew the private key, and hence if they later want to access those funds they should be able to?
Expect discussion about this to ramp up in the next 10 days or so.
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.
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.
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).
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.
Nobody is going to spend billions to crack individual addresses and then dox their cryptographic capabilities sending them to an exchange to sell.
- 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.
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.
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).
There have been numerous times where there has been contention about what to do about specific problems, and every time the combination of above has put their foot down and those that disagreed, left or were pushed out of the project.
For all addresses derived since BIP-32 (which is almost all addresses), the HMAC input (seed phrase or whatever) can be used as an independent witness, no? That requires no changes at all right now, and will cover all of the wallets except from the genesis era.
Also, assuming the curve isn't pwned right now today, the chains can stand up slots for a secret blinded witness to be used as a spending attestation in a PQC scheme. These are two "ways out", and I'm sure there are plenty more.
Why does everyone assume it's either ban already-published pubkeys or commit them to a wasteland of uncertainty and robbery?
* Require attestation from the original HMAC derivation material in order to migrate the wallet.
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
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.
To call it anything else would be as dishonest as referring to Andrew Tate as an "entrepreneur", and Russel Brand having performed "seductions". I don't think the conversation is useful if we refuse to state the plain truths about the topic.
You could equally say that you left reddit because it's so full of people pretending blockchains solve any actual problems, and the likes of /r/wallstretbets.
So I don't think I can make my point while only using the words of the delusion group itself, no.
I meant crime coin (cryptocurrency) in general.
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.
I have a hard time taking this question at face value. Ransomware basically entirely depends on cryptocurrency.
> Organized crime primarily uses USD
Sure. Fiat currencies are also used for speculation and crime. It's just that it is also, and mainly, NOT used for that. A third category. And that third category is the main one.
> I think you may want to reflect on what happened during 2008 that triggered the creation of bitcoin.
I think this condescending statements misunderstands the nature of capital and wealth, and tries to equate it to fiat money.
> Because you are on the wrong side of history.
Oh, you're a true believer? That whole classy "every satoshi today is a slave you'll have in the future" thing?
> 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.
All it did was give criminals more power. Or shift power from at least elected criminals to the non elected kind.
> Don't be a bootlicker contributing to the continuation of the suffering of our species.
Jesus. You think funding CSAM and ransomware reduces suffering?
> They want us to own nothing and be grateful for it.
Bitcoin won't help you against that. It's just delusional.
> It isn't looking good if people think their enemy is literally math.
Yup, that's true believer talk. Math isn't law. Law is law. If you don't pay your taxes because it's not in your smart contract, then when the government kicks your door in, drags you away to a small room, and sells your house to someone else, then a smart contract somewhere saying your house still belongs to you doesn't actually mean anything. Math isn't the enemy. But neither can some scribbles on a blockchain "prove" that you are a sovereign citizen.
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.
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.
Which reminds me to check my certificates, actually.
Sure there are managed ways to do it, like `AuthorizedKeysCommand` or Ansible etc.
But for most people, especially those people allowing manual management of keys files, there are more cons than benefits of authorized keys.
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.
Yes, in the most basic implementation that's it.
Obviously RTFM, but the gist is that the CA SSH Key gets defined on the server (sshd_config) side, e.g :
TrustedUserCAKeys /etc/ssh/user_ca.pub
AuthorizedPrincipalsFile /etc/ssh/principals
# AuthorizedKeysFile none # only once you're happy everything works ;)
And then yes, you can automagically log in with whatever is signed with the key(s) in `TrustedUserCAKeys` (as long as the principal defined in the signature matches one listed in `AuthorizedPrincipalsFile` – although IIRC you can wildcard `AuthorizedPrincipalsFile` so you might not even need to worry about that if you want a super-simple setup).Then once you're happy with the basic principles and tested it out, you can do more fancy stuff like using Yubikeys as a poor-man's HSM (hardware CA) and eventually all sorts of server-side (man sshd_config) magic.
Its great ! Welcome to the dark side. ;)
In practice, your client side devices may well be at more risk of loss due to theft or similar than your server is of being broken into, and it's pretty convenient to just scp your public keys over to sign them. I can reach my own CA private keys by SSH, just not via public IP address.
Here's a good resource for anyone wanting to get started with SSH certs: https://free-pmx.org/guides/ssh-certs/
The CA could be on a remote server. It could also be a folder of certs and keys on your laptop, and you manage it with the openssl CLI.
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.
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.
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.
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.
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.And by "affected" I mean your CPU will die when you switch from 2048 bits to 4096.
Of course the security bits of e.g. ED25519 are up in the air now, but it (used to) offers 128 bits of security at vastly better performance.
See for yourself on your own hardware:
$ openssl speed rsa2048 rsa4096 ed25519
Is 2000 handshake operations per CPU core per second good enough (RSA 2048)? Is 300 (RSA 4096)? Do you need 30000 (ED25519)?
Google will have a different opinion than the operator of a cat picture website. OTOH, if the cat picture website is hosted on a Raspberry Pi, its operator might greatly care as well - those numbers are a lot smaller.
No they aren't.
You're literally doing a Chicken Little dance based on literal Twitter rumors.
Get a grip on yourselves.
Recently experimented with other types of keys, that now turn out to be problematic… and it didn't made any difference really from the performance perspective.
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 for the last decade for no good reason ?