27 comments

  • regecks an hour ago

    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.

    Should we be moving off these as well?

    • drum55 an hour ago

      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.

  • quantummagic an hour ago

    The advice to use ssh-agent is only going to list currently loaded keys; better to just scan manually:

           find ~/.ssh -type f -name "*.pub" -exec ssh-keygen -lf {} \;
  • sscarduzio an hour ago

    We need time for tooling to catch up before we can move to heavier cryptography.

    Also, many web apps using JWT tokens embedded in cookies will hit the 8K max header length just because of the humongous signatures

  • lousken an hour ago

    Why would you upgrade from ed25519 ssh key? It is not used in encryption but for auth

    For auth they are perfectly fine - it's like saying 17 character passwords are no longer good enough...

    • wolvoleo an hour ago

      Yes, as the attacker normally won't have the public part of the key pair, they have nothing to crack.

      I would stop publishing them on eg GitHub etc but I've never done that anyway.

      • sva_ 9 minutes ago

        Hope you don't use ssh-agent (I don't)

      • noodletheworld 31 minutes ago

        It depends; you don't reuse ssh keys right? That would be lazy and bad.

        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 21 minutes ago

          I don't use github at all. And not much cloud. I'm not a dev, I only use my keys on my own servers.

        • nixosbestos 18 minutes ago

          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.

      • drum55 39 minutes ago

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

        • dunham 9 minutes ago

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

        • ninkendo 16 minutes ago

          Please elaborate. What vulnerabilities?

          • drum55 5 minutes ago

            You can discover what SSH servers are owned by what people by abusing GitHub. They publish the 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.

    • dist-epoch 25 minutes ago

      A MITM intercepting your public ssh key can then authenticate as you if the curve is broken

      • wolvoleo 20 minutes ago

        Yes true but in order to do that they first need to get to the point of being able to MITM and then break the server key to be able to identify as it.

        I don't really see that happening on my stuff which is a very low value target.

  • prmoustache 25 minutes ago

    The article is misleading. you can't upgrade a pgp/ssh key. You create new ones and retire old ones.

  • binaryturtle an hour ago

    So ssh-ed25519 is bad too? I just "upgraded" my RSA keys to that. I guess it's going back to RSA for now? Yikes. :)

    (I wonder how many others waste their time like me with this "security" theatre and miss-information/ half-information)

    • cogman10 43 minutes ago

      > So ssh-ed25519 is bad too?

      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 36 minutes ago

        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.

        But it's all very confusing now for sure.

        • cogman10 27 minutes ago

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

    • anon7725 an hour ago

      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.

  • wpollock 30 minutes ago

    Don't forget about the server's keys! For OpenSSH, look for keys in "/etc/ssh" or "C:\ProgramData\ssh".

  • debayande an hour ago

    > Seems that my PGP key is using RSA-4096 which is not a concern for today.

    Am I reading this wrong, or is the author's example showing an Ed25519 key?

    • SethMLarson 30 minutes ago

      That's an SSH key! My PGP key returned no hits, but I can see why that section is confusing. I'll fix that to be clearer :)

      • debayande 19 minutes ago

        That's a miss on my part as well! Apologies.

        • SethMLarson 16 minutes ago

          Just pushed a fix, thanks for raising that issue. I think it's much clearer now :)