There are a bunch of iOS terminal apps + other hardware keys where the SSH keys are generated on the "Secure Enclave", but P-256 is the only key type supported.
Doesn’t really matter where they are if they’re vulnerable, but we don’t really know how vulnerable. If the security is brought down to 90 bits does that matter for most things? Probably not, at least in the medium term. Bitcoin's entire proof of work is in the order of 90 bits, for over 15 years of compute time on dedicated hardware.
fwiw, you can get a P-384 key on the Secure Enclave on macOS today using `sc_auth` but you'll need to (ask your favorite agent to) write a little custom ssh-agent for that key, to expose it as a plain `ecdsa-sha1-nistp384` key instead of the `sk-*` variant. Just did that myself today, worked fine. It's like 200 lines of Swift.
But also, I don't think that's extremely urgent at a personal level. It seems like this still require being targeted and a lot of effort to crack a key.
IMO as an individual without particular security concerns, it’s best to a) figure out what you’ve got now and b) make any upgrades like Ubuntu 24 lts to 26 lts like the article mentions and c) pay attention as new capabilities are rolled out.
Currently, no. But there's a lot of speculation going around that it likely has some vulnerability that's on the precipice of being disclosed. The NSA "Move to post quantum crypto now" notice and Anthropic's research into lattice crypto has people spooked.
My understanding from this was that in a OpenSSH context the "key exchange" was the most critical part. With my rusty OpenSSH 9.x it's already using some "sntrup761x25519-sha512@openssh.com" when connecting to my server which supposedly is "quantum safe".
The ssh keys are only used for auth (like a HUGE A** password), and if you don't share your public keys with random 3rd parties (like you wouldn't share your password hashes either) it should be relatively safe, I think.
> when connecting to my server which supposedly is "quantum safe".
So it's less about being quantum safe IMO and more about there being potential vulnerabilities within the algorithm.
> The ssh keys are only used for auth (like a HUGE A* password)
It's better than that. You can give out a public key which your server uses to encrypt the handshake. Only your private key is capable of decrypting things encrypted with your public key. The key for 25519 isn't particularly long.
The potential risk is that there is a way to reverse or generate a private key from that public key. It could be that the search space is a lot smaller than expected.
Github has always published all keys for all users though, it's the source of some really stupid vulnerabilities that they seem to think "public key" means "should be public".
You can discover what SSH servers are owned by what people by abusing GitHub. They publish the public keys, you have a target SSH server and you send the hashes of the keys you scraped to the server, it tells you which GitHub user has access there. Reverse way, you have a targets keys and you send them to every SSH server on IPv4, and it tells you what servers they own. This is because SSH supports just telling you if a hash of a public key would give you access to an account, meaning you don't need to enter the password for all keys in ~/.ssh sequentially for every server.
Yes you should, it's a little fiddly because SSH supports a maximum of 11 keys before you need to manually define them for each connection.
It's an another attack vector too though, if you SSH to my server you send me all of your public keys in ~/.ssh by default (or at least the hashes of them), and I can compare them to GitHub to find out your real identify. Github is just making this trivial by needlessly exposing them.
As an SSH server, there's nothing stopping you from always rejecting (or always allowing) those public key checks and only doing any work when sent the full public key authentication request (with the signature).
If you accepted all public key checks it shouldn't break anything. It's just an optimization for the client as the server needs to handle full public key authentication requests anyway.
Besides, there are additional (server-side) safeguards to prevent someone from doing these sorts of mass public key checks using anyone's public key, including (but not limited to) IP whitelisting and port knocking.
"tangled.org" also publishes public keys in ATProto (that might be necessary to coordinate with storage servers). I've dropped my p256 key. It's not yet clear to me if ed25519 has be weakened or not.
I have a hard time seeing this sub-thread conversation as viable or worth anyone's time. If some people think hiding a pubkey is their salvation out of this, I don't see any point in engaging.
If you’ve got static keys widely spread around the place, you’ve already made some poor life choices irrespective of recent developments.
You shouldn’t be doing this, and you should move to short-lived SSH certificates instead; a feature that has been available since 2010 to avoid this very issue (and to solve many others.)
Even if you use signed SSH certificates, you are still leaving a 'static key' around. Either way, you are placing a static public key on the server; either the signing key's public key or the SSH key's public key. They are the exact same type of key, too.
If the issue is that there is some way to factor a private key from a public key, it doesn't matter if that public key is the signing key or the authorized key itself. The attacker could just sign their own key at that point, anyway.
Don't get me wrong, using temporary signed keys for access instead of a static key has other benefits, but it does not help this particular issue.
> This is ~100 days (a very short timespan for anything that affects "all CAs") and would affect ~25% of all web traffic, *which is not something one would do for no reason.*
Emphasis at the end is mine: that is true, however we live in the timeline where the obvious reason is way too often not the real reason. So giving the benefit of the doubt to people requiring others to do a bunch amount of heavy lifting, based on unknown motivations, is getting old very quickly...
I'm not at all saying that this cannot be a good reason. Just that "this is hard for many, so they must mean it" doesn't pass the current climate's sniff test (for me).
regecks | 3 hours ago
Should we be moving off these as well?
drum55 | 2 hours ago
samhclark | an hour ago
But also, I don't think that's extremely urgent at a personal level. It seems like this still require being targeted and a lot of effort to crack a key.
rolosa | 49 minutes ago
stackghost | 9 minutes ago
sscarduzio | 2 hours ago
Also, many web apps using JWT tokens embedded in cookies will hit the 8K max header length just because of the humongous signatures
dannyw | 30 minutes ago
For now, and for my personal security model, I am simply increasing key sizes.
quantummagic | 2 hours ago
binaryturtle | 2 hours ago
(I wonder how many others waste their time like me with this "security" theatre and miss-information/ half-information)
anon7725 | 2 hours ago
cogman10 | 2 hours ago
Currently, no. But there's a lot of speculation going around that it likely has some vulnerability that's on the precipice of being disclosed. The NSA "Move to post quantum crypto now" notice and Anthropic's research into lattice crypto has people spooked.
binaryturtle | 2 hours ago
The ssh keys are only used for auth (like a HUGE A** password), and if you don't share your public keys with random 3rd parties (like you wouldn't share your password hashes either) it should be relatively safe, I think.
But it's all very confusing now for sure.
cogman10 | 2 hours ago
So it's less about being quantum safe IMO and more about there being potential vulnerabilities within the algorithm.
> The ssh keys are only used for auth (like a HUGE A* password)
It's better than that. You can give out a public key which your server uses to encrypt the handshake. Only your private key is capable of decrypting things encrypted with your public key. The key for 25519 isn't particularly long.
The potential risk is that there is a way to reverse or generate a private key from that public key. It could be that the search space is a lot smaller than expected.
debayande | 2 hours ago
Am I reading this wrong, or is the author's example showing an Ed25519 key?
SethMLarson | 2 hours ago
debayande | 2 hours ago
SethMLarson | 2 hours ago
lousken | 2 hours ago
For auth they are perfectly fine - it's like saying 17 character passwords are no longer good enough...
wolvoleo | 2 hours ago
I would stop publishing them on eg GitHub etc but I've never done that anyway.
drum55 | 2 hours ago
ninkendo | 2 hours ago
drum55 | an hour ago
cortesoft | 49 minutes ago
drum55 | 46 minutes ago
It's an another attack vector too though, if you SSH to my server you send me all of your public keys in ~/.ssh by default (or at least the hashes of them), and I can compare them to GitHub to find out your real identify. Github is just making this trivial by needlessly exposing them.
mscdex | 32 minutes ago
drum55 | 22 minutes ago
mscdex | 14 minutes ago
Besides, there are additional (server-side) safeguards to prevent someone from doing these sorts of mass public key checks using anyone's public key, including (but not limited to) IP whitelisting and port knocking.
dunham | an hour ago
noodletheworld | 2 hours ago
If you did for example, use the same key for github and login, anyone could access your public keys on this unauthenticated url:
https://github.com/yourname.keys
wolvoleo | 2 hours ago
nixosbestos | 2 hours ago
sva_ | an hour ago
dist-epoch | 2 hours ago
wolvoleo | 2 hours ago
I don't really see that happening on my stuff which is a very low value target.
wpollock | 2 hours ago
prmoustache | 2 hours ago
0xbadcafebee | an hour ago
bigfatkitten | an hour ago
You shouldn’t be doing this, and you should move to short-lived SSH certificates instead; a feature that has been available since 2010 to avoid this very issue (and to solve many others.)
cortesoft | 52 minutes ago
If the issue is that there is some way to factor a private key from a public key, it doesn't matter if that public key is the signing key or the authorized key itself. The attacker could just sign their own key at that point, anyway.
Don't get me wrong, using temporary signed keys for access instead of a static key has other benefits, but it does not help this particular issue.
zygentoma | 26 minutes ago
WTF?!?
Why would this be ignored instead of failing the command?
imrehg | 9 minutes ago
Emphasis at the end is mine: that is true, however we live in the timeline where the obvious reason is way too often not the real reason. So giving the benefit of the doubt to people requiring others to do a bunch amount of heavy lifting, based on unknown motivations, is getting old very quickly...
I'm not at all saying that this cannot be a good reason. Just that "this is hard for many, so they must mean it" doesn't pass the current climate's sniff test (for me).