What broke when I enabled PQC for Git and SSH

(nordlenord.github.io)

191 points | by tukHelix 14 hours ago

26 comments

  • throw0101d 5 hours 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.)

  • a012 12 hours ago
    Apple ships stable but old softwares. I use brew to install new packages and update PATH then forget those default binaries.
    • politelemon 9 hours ago
      > stable but old softwares

      This is now considered a liability.

      • sigmoid10 9 hours 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 48 minutes 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 4 hours ago
        Thank goodness. I’m really tired of vendors who get away with stuffing 10+ year old crap on us.
      • jgalt212 6 hours ago
        Unless you enjoy full ground stops. It's not snark, but you have to pick your poison these days.
  • bloopernova 9 hours 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 9 hours 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 7 hours 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 6 hours ago
          Yeah seriously. Having commits that you’re not verifying for an agent signed kind of defeats the purpose the purpose.
      • bloopernova 8 hours 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 8 hours 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 2 hours ago
      PQC Yubikeys are coming/beta iirc!
    • imguienjoyer 6 hours ago
      [dead]
  • Tepix 11 hours 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)
  • kragen 1 hour ago
    This says "Could not load share (HTTP 403)." Is there a public mirror?
  • whacked_new 12 hours 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?
  • firesteelrain 4 hours ago
    Seems like this will be slow to roll out
  • dreamcompiler 9 hours 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 8 hours 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 3 hours 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 8 hours ago
      What’s the attack vector though?
      • Leherenn 5 hours 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 7 hours ago
      More of a checksum/identifier than a form of encryption
  • raphinou 11 hours ago
    Maybe I'm not well awake yet, but what key exchange is there in git?
    • Dagonfly 9 hours 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 11 hours ago
      Git over HTTPS, so regular TLS.
      • zzq1015 10 hours 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 11 hours ago
      GPG signing for commits?
      • progval 11 hours ago
        Commit signatures don't use a key exchange. Only a PKI, which is external to Git.
      • Zizizizz 11 hours ago
        You can sign with ssh too (just fyi)
  • pknerd 12 hours 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 11 hours 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 12 hours 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 10 hours 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 11 hours 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 12 hours ago
      You think the AI models that find multiple breakthroughs in cryptography in a month can't help individuals change their SSH keys?
      • literalAardvark 3 hours ago
        Technically they could, but we also observe that letting them do anything without a lot of sandboxing is extremely dangerous
      • pknerd 12 hours ago
        no, I think that not every individual has capability and domain knowledge to use AI.
        • 0c3ca83 11 hours ago
          Why do you believe they're knowledgeable enough to ask you, but not knowledgeable enough to ask an AI?
          • pknerd 11 hours 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 2 hours ago
              My point is that your target audience doesn't even know what an ssh key is.
          • klabetron 9 hours 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 5 hours 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 11 hours ago
      Figure it out yourself
      • dingdongditchme 10 hours 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.

      • pknerd 10 hours ago
        [flagged]
  • vijay886 8 hours ago
    Lot of integrations can lead to it
  • lerraric 1 hour ago
    [dead]
  • b473a 3 hours 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 8 minutes 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 11 hours 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 10 hours ago
      Seems to be `word-wrap: break-word`. Not seen it before either.
      • cubefox 9 hours ago
        Asian websites use it (they don't do the hyphenation thing over there), but the setting is clearly wrong for English.
      • captainhorst 7 hours ago
        While every space is  . Very weird.
    • cpach 10 hours ago
      Yeah that looks really weird. Never seen this before.
    • rkangel 9 hours ago
      It's also doing some strange unnecessary breaks halfway through things like conda-forge.
  • arbor-group 3 hours ago
    [dead]
  • yinyang1021 6 hours ago
    [dead]
  • crypto_bloopa 4 hours ago
    [dead]
  • listinglens 9 hours ago
    [dead]
  • slols 6 hours ago
    [dead]
  • palstable_team 6 hours ago
    [dead]
  • oniconnect 13 hours ago
    [dead]
  • charan345 11 hours ago
    [dead]
  • mahmoudrabea 10 hours ago
    [dead]
  • irishcoffee 13 hours ago
    Tl;dr: Apple and Ubuntu. What a shocker.
    • madduci 12 hours ago
      Apple still shipping also Bash 3.2 is quite bonkers
      • LoganDark 12 hours 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 5 hours 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.

        • dingdongditchme 10 hours ago
          Allowing alternative operating systems on Mac is awesome! But why do they do that in the first place would be my question?
        • madduci 5 hours ago
          Don't ship it at all then
          • LoganDark 3 hours 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.
        • toxik 8 hours ago
          bash is also pretty crap tbh, zsh for life!
          • kps 3 hours ago
            bash is just a weak ksh imitation.
          • esseph 5 hours ago
            fish shell fans rise up
  • doyoon_123 9 hours ago
    [flagged]