What broke when I enabled PQC for Git and SSH

(nordlenord.github.io)

215 points | by tukHelix 2 days ago ago

80 comments

  • throw0101d a day ago ago

    Perhaps worth nothing that on Thursday, December 3, OpenSSH changed ssh-keygen(1)'s default key type from "ed25519" to "ecdsa" P-384:

    * https://github.com/openssh/openssh-portable/commit/5b63da24d...

    * https://cvsweb.openbsd.org/log/src/usr.bin/ssh/ssh-keygen.c (See 1.512 on Thu, 03 Dec 2026 08:40:32 UTC.)

  • lacoolj a day ago ago

    After reading the many posts complaining about Ubuntu refusing to (or being incapable of) upgrade and patch the security issues lately, I can't imagine going back when I re-install my desktop, and my servers are all Debian 13+ now (which supports what we are doing here)

    My desktop is still Ubuntu 24.04 but not for long. In the meantime, upgrading OpenSSH was a bit of a pain, and even now I have to alias and use a separate config for my compatible server vs my non-compatible ones (currently have an old OpenBSD box I need to upgrade still)

    Very annoying Ubuntu captured our hearts over the years and have dropped the ball so easily (though not the first time - I believe they denounced Valve/Steam at one point which kept me on this version specifically)

    • ThePowerOfFuet 9 hours ago ago

      Fedora KDE has been an absolutely wonderful desktop distro for me, and truly "batteries included".

      Patches also drop quickly, too.

  • a012 2 days ago ago

    Apple ships stable but old softwares. I use brew to install new packages and update PATH then forget those default binaries.

    • politelemon 2 days ago ago

      > stable but old softwares

      This is now considered a liability.

      • sigmoid10 2 days ago ago

        There is no such thing as stable and new. There is just stable and maintained or stable without continued support. Apple falls heavily into the latter with their release and EOL schedules.

        • zbentley a day ago ago

          I mean … there’s a spectrum. OpenSSL isn’t unstable trash, and using versions of it younger than 5 years isn’t being a cowboy.

          Sure, some new software tends to have more stability issues than some old software, but it’s also true that some software is just better than alternatives, and that some old software is deeply unstable due to old defects or changing circumstances. The older the version, the younger the code in it.

      • trollbridge a day ago ago

        Thank goodness. I’m really tired of vendors who get away with stuffing 10+ year old crap on us.

      • jgalt212 a day ago ago

        Unless you enjoy full ground stops. It's not snark, but you have to pick your poison these days.

  • Tepix 2 days ago ago

    Related: This OpenSSH PR https://github.com/djmdjm/openssh-portable-wip/pull/14 "Implement ssh-mldsa87-p384 and certificate format" looks promising. (Not mine)

  • bloopernova 2 days ago ago

    I set up gnupg with signing and auth subkeys on my yubikey just yesterday. Gemini Neon was very helpful.

    So my git commits are signed via the yubikey. My git pushes and pulls are authenticated using the yubikey via gpg-agent with ssh support enabled. I also have this forwarded over ssh to my headless Linux box, so I can sign, push, and pull there too.

    The yubikey doesn't support post quantum keys, so I've set mine to rotate and expire. I'm going to write a tracking site for all the pieces of PQ cryptography used in this setup, so I get a pretty picture of where things are at any given point.

    • NavinF 2 days ago ago

      Do you touch the yubikey for every commit? These days half my messages to an AI agent results in a commit so that would be way too often.

      Also seems more practical to just use whatever hardware comes with your laptop. fTPM, Apple Secure Enclave, etc. That also gets you biometric 2fa for free. I use yubikey for login only because it’s physically easier to stash than a phone/laptop with a passkey

      • Snild a day ago ago

        > These days half my messages to an AI agent results in a commit so that would be way too often.

        Maybe those commits should not be signed with your key? At least not until you've reviewed it. Maybe sign a merge commit at the end of something?

        • dawnerd a day ago ago

          Yeah seriously. Having commits that you’re not verifying for an agent signed kind of defeats the purpose the purpose.

      • bloopernova a day ago ago

        I use the PIN for the yubikey, and the password for the GPG key, when I first attach the yubikey. After that, it's cached until I remove the yubikey. As the other commenter said, you can configure the touch frequency. I have mine just set to off because this is a home office and as you said, it would be onerous to keep having to touch the damn thing.

        I like the physicality of the yubikey, that I can just remove it if I need to.

        I will look into the apple secure enclave though, that could be a good secondary/backup.

      • aaronmdjones 2 days ago ago

        This is configurable. You can set the touch policy for the slot when generating/importing the key, and, if you have not set it to require a touch every time by force (known as a fixed touch policy), you can change it later. If you did fix the policy, you have to erase the private key and generate/import it again to change it.

             $ ykman openpgp info
            [...]
            Require PIN for signature:  Once
            Touch policies:            
              Signature key:      On (fixed)
              Encryption key:     On (fixed)
              Authentication key: On (fixed)
    • tasn a day ago ago

      PQC Yubikeys are coming/beta iirc!

  • whacked_new 2 days ago ago

    I'm about to start this journey so this is good information. Based on this report, reflexively, my gut feeling is to nix-pin everywhere and call it a day, hopefully?

  • kragen a day ago ago

    This says "Could not load share (HTTP 403)." Is there a public mirror?

  • dreamcompiler 2 days ago ago

    But what about Git's own hash algorithm for commits? They're moving to SHA-256 but I read the NSA notice as suggesting SHA-256 should be replaced too.

    • black_knight a day ago ago

      No, I don’t think there is any evidence of attacks on (currently considered secure) hash functions or symmetric primitives like AES. It is all about the public key exchange algorithms.

    • adrian_b a day ago ago

      NSA's notice is for hashes used in digital signatures or other applications that depend on strong collision resistance.

      One-way hash functions have much more diverse applications than that, and for many of those applications smaller hashes, like SHA-256 or BLAKE3 are perfectly fine.

    • robin_reala 2 days ago ago

      What’s the attack vector though?

      • Leherenn a day ago ago

        Replacing an existing commit with another poisoned one, with the same hash.

        It's usually best practice to pin a hash, and not just follow main or whatever, so that even if the repo is compromised, you're safe. But if suddenly you can craft commits with a given hash, then this goes out.

    • cannonpalms a day ago ago

      More of a checksum/identifier than a form of encryption

  • raphinou 2 days ago ago

    Maybe I'm not well awake yet, but what key exchange is there in git?

    • Dagonfly 2 days ago ago

      Git over SSH: SSH uses a ephemeral session key when establishing a connection to the server. Just like TLS.

      > ssh -v git@github.com 2>&1 | grep -i "kex"

      Should show MLKEM.

      That's different from your identity key, which is the one used for authN.

    • dns_snek 2 days ago ago

      Git over HTTPS, so regular TLS.

      • zzq1015 2 days ago ago

          curl -v https://github.com/robots.txt |& grep "SSL connection"
          * SSL connection using TLSv1.3 / TLS_AES_128_GCM_SHA256 / x25519 / id-ecPublicKey
        
        At least GitHub doesn't have PQ key exchange, let alone PQ auth. Oops

        Strangely, GitHub has git over SSH support and has PQ key exchange.

    • arionmiles 2 days ago ago

      GPG signing for commits?

      • progval 2 days ago ago

        Commit signatures don't use a key exchange. Only a PKI, which is external to Git.

      • Zizizizz 2 days ago ago

        You can sign with ssh too (just fyi)

  • pknerd 2 days ago ago

    A dumb question, all this crypto saga going on, as a developer, is it an opportunity to learn something related to quantum thing or all this crypto thing is being taken care by big tech firms only?

    My point is, is it an opportunity to learn a skill, offer it to individuals and make money?

    • bawolff 2 days ago ago

      There is always an opportunity to learn new things.

      However the current situation doesn't change much. We dont know the nature of the break, and even if we did, it probably wouldnt matter much, as PQC already has about a decade of effort behind it.

      If you want to learn new things, by all means, learn new things. However nothing is manifestly different in terms of what you should learn compared to a month ago.

      As far as big tech goes - big tech is made up of people. You could always be one of them. There are also plenty of academics in this area not working for big tech.

      If you just mean, be some sort of PQC transition consultant, i'm doubtful. In a few months most of this transition is going to be run apt-get upgrade and maybe regenerate your ssh key. There are jobs in more complex areas, but its definitely not a get rich quick sort of thing.

    • edoceo 2 days ago ago

      For the advanced crypto part of this, like the maths, it's a steep hill.

      For a time there may be opportunity for the scan/audit, update, test, deploy to live sys-admin work. However, I think many will depend on their existing vendors to sort this, like they do many other things (PHP, log4j, whatever thing we had in 2016, etc).

    • dingdongditchme 2 days ago ago

      A great place to start is "The Code Book" by Simon Singh. Easy read and gives historical context without dwelling too much on the math. Must read for any software developer imho. Once you've been through that you can choose what topics to focus on in more depth.

    • whilenot-dev 2 days ago ago

      As a developer, there's always the opportunity to learn about cryptography and any modern textbook has at least one chapter on PQC.

      I found Secret Key Cryptography[0] to be aimed at developers, as it contains very little math. Then there's Serious Cryptography[1] with some math, its accompanying book Crypto Dictionary[2] could be helpful as well. And then there are some more math heavier introductions like Introduction to Cryptographic Definitions[3], which are more about cryptographic security.

      Like the sibling comment already said, learning more about crypto makes you more comfortable in sys admin tasks around its handling and auditing.

      [0]: https://www.manning.com/books/secret-key-cryptography

      [1]: https://nostarch.com/serious-cryptography-2nd-edition

      [2]: https://nostarch.com/crypto-dictionary

      [3]: https://link.springer.com/book/10.1007/978-3-031-91969-5

    • magnio 2 days ago ago

      You think the AI models that find multiple breakthroughs in cryptography in a month can't help individuals change their SSH keys?

      • literalAardvark a day ago ago

        Technically they could, but we also observe that letting them do anything without a lot of sandboxing is extremely dangerous

      • pknerd 2 days ago ago

        no, I think that not every individual has capability and domain knowledge to use AI.

        • 0c3ca83 2 days ago ago

          Why do you believe they're knowledgeable enough to ask you, but not knowledgeable enough to ask an AI?

          • pknerd 2 days ago ago

            The existence of tech companies in different niches and lame SaaS apps makes me believe so. It's kind of weird to think that laymen know all this stuff when even many CSS people have no idea about it

            • 0c3ca83 a day ago ago

              My point is that your target audience doesn't even know what an ssh key is.

          • klabetron 2 days ago ago

            Flashback to my first IT gig: installing Y2K patches for a local business. (I wasn’t even in high school yet… so a small business knew they needed to do something but were cheap enough to hire a kid.)

            “Oh, you should ask Matt, he’s good at computering.”

    • gilrain a day ago ago

      "My point is, is it an opportunity to learn a skill, offer it to individuals and make money?"

      Yes, information technology is a marketable skill.

    • medellin 2 days ago ago

      Figure it out yourself

      • dingdongditchme 2 days ago ago

        Although your comment is a snide comment, I too feel that the question is poorly phrased:

        > My point is, is it an opportunity to learn a skill, offer it to individuals and make money?

        The answer is obviously yes, you can make money peddling the most basic shit. It rarely has to do with super great expertise. Software developers (myself included) sometimes have this weird preconception that they have to be the greatest algorithmic slinging mastermind to provide a service to the world that people are willing to pay for.

  • firesteelrain a day ago ago

    Seems like this will be slow to roll out

  • vijay886 a day ago ago

    Lot of integrations can lead to it

  • b473a a day ago ago

    > Apple Git 2.54.0 on my Mac used LibreSSL 3.3.6, which lacked support for X25519MLKEM768

    I hope we settle on shorthand names for these keys. It looks like instead of a name you just slam your head on the keyboard a few times.

    • frizkie a day ago ago

      The name is long mostly because it’s hybrid key exchange, it’s just two standards added together, x25519 and ML-KEM-768. The former is elliptic curve and the latter is lattice based. At some point removing characters becomes not exactly practical, nor would it be particularly helpful or sensible to give the combined hybrid method its own name.

  • globular-toast 2 days ago ago

    There's a line break setting that breaks randomly mid-word without hyphenation? Is this a hipster thing? I would check the source but I'm in my phone.

    • aquasync 2 days ago ago

      Seems to be `word-wrap: break-word`. Not seen it before either.

      • cubefox 2 days ago ago

        Asian websites use it (they don't do the hyphenation thing over there), but the setting is clearly wrong for English.

      • captainhorst a day ago ago

        While every space is  . Very weird.

    • jbl0ndie a day ago ago

      Not hipster, it's what post quantum web looks like.

    • cpach 2 days ago ago

      Yeah that looks really weird. Never seen this before.

    • rkangel 2 days ago ago

      It's also doing some strange unnecessary breaks halfway through things like conda-forge.

  • irishcoffee 2 days ago ago

    Tl;dr: Apple and Ubuntu. What a shocker.

    • madduci 2 days ago ago

      Apple still shipping also Bash 3.2 is quite bonkers

      • LoganDark 2 days ago ago

        They won't ship a newer version because the license changed from GPLv2 to GPLv3. Apple avoids GPLv3 completely. This is almost certainly why they switched to Zsh instead.

        The leading theories on why are either the anti-tivoization clause or the patent grant. Apple allows alternative operating systems only on Mac, and they don't want any risk of their patent portfolio being compromised.

        • throw0101d a day ago ago

          > They won't ship a newer version because the license changed from GPLv2 to GPLv3. Apple avoids GPLv3 completely.

          Also being stuck with rsync 2.x versus rsync 3.x.

          • 1over137 a day ago ago

            I think they switched to OpenBSD’s OpenRsync recently.

            • LoganDark a day ago ago

              Looks like they did. macOS 27.3 beta `man rsync` says `openrsync`.

        • dingdongditchme 2 days ago ago

          Allowing alternative operating systems on Mac is awesome! But why do they do that in the first place would be my question?

        • madduci a day ago ago

          Don't ship it at all then

          • LoganDark a day ago ago

            Apple was shipping recent versions of Bash while they could. If they suddenly just removed it, there would be issues for nearly every shell script out there on Mac.

            • mkesper a day ago ago

              In contrary, shipping that ancient bash makes hell for anyone assuming half-way sane systems. Ship shome POSIX compliant shell and remove bash if you don't agree with the license.

              • LoganDark 18 hours ago ago

                I'm talking about scripts that already existed, not newcomers. Newcomers can (should) ignore Bash completely and use sh or zsh for their scripts. I use zsh.

        • toxik 2 days ago ago

          bash is also pretty crap tbh, zsh for life!

          • kps a day ago ago

            bash is just a weak ksh imitation.

          • esseph a day ago ago

            fish shell fans rise up