Minisign 2 Is Here

(00f.net)

154 points | by chmaynard 10 hours ago

10 comments

  • raphinou 1 hour ago
    I'm working on a multisig release signing solution [1], and initially I used Minisign signatures but switched away to have better control of the signature parameters.

    With all news about the need to move to pqc this week I started looking at pqc signatures, but it requires to make compromises on what you get between: public key size, signature size, time to generate and time to verify a signature.

    Good to see a respected project progressing on it. It also gives a signal and a reference point for other projects, mine included. Each project might have to make differing choices though. Small key sizes are great for sharing, but I'm collecting and aggregating signatures which might require to limit sign size and find a user friendly way to share public keys.

    A point that I worry about is that those algos are less battleproof. Let's hope there's no bad solution amongst the possible choices!

    1: https://asfaload.com/blog/asfaload-intro/

  • networked 6 hours ago
    This looks great. I wish Git natively supported Minisign. There is git-signify (https://github.com/sug0/git-signify) and git-minisign (https://codeberg.org/SkyFox42/git-minisign), but it isn't the same. GitHub/GitLab/Gitea/Forejo/Tangled aren't going to support their signatures.
    • abhinavk 5 hours ago
      I use SSH keys for signing now. I still have gpg installed just in case.
      • Avamander 1 hour ago
        I use an S/MIME certificate stored in my YubiKey PIV for signing, it's actually supported by GitHub and many others.

        I'm happy as long as I never have to interact with PGP and its tooling.

        Plus it actually carries some trust out of the box, not just a pinkie promise. (Which you can of course return to with a self-signed cert you generate with something like OpenSSL.)

        • akerl_ 55 minutes ago
          Are you using an SMIME cert issued by some public authority?
  • Retr0id 7 hours ago
    TIL of FAEST, it sounds very promising indeed. SLH-DSA is a great choice for now, though.
  • alphazard 1 hour ago
    Excellent choice of algorithm (SPHINCS+). It's really not worth it to mess around with lattices, or any complicated cryptography right now.

    There is a strong argument to be made that the simplicity of the algorithm is related to the amount of people that can understand and criticize it, and inversely related to the chance of being tricked by its complexity. That is proving to be a better predictor of security than algorithms certified secure by a blessed mathematical elite. The more complicated algorithms seem to be giving up bits every week. Complicated enough to trick the best humans into thinking they are secure, not complicated enough to trick the best machines. This is the first time I heard of FAEST; I plan to read through that later. At first glance: it's not simple.

    The constructions used in hash based signatures are on solid footing compared to what else is out there. SPHINCS+ has security proofs that reduce to the properties of the underlying hash function. Moreover, the median HN user can probably understand the scheme in about an hour. Until we have similarly solid proofs for everything else, why risk it?

    • tptacek 48 minutes ago
      Cryptographers have been beating on lattices since the 1990s.
  • Ninoks 5 hours ago
    azure trusted signing helped a bit here. it's a monthly subscription instead of buying a cert from a CA, and no hardware token. still not free and the identity verification takes a while, but it's way less painful than the old way
  • willwade 8 hours ago
    Every time I read anything about code signing I get excited someone has created a free way of creating authenticode certificates for windows. Some dreamt of flying cars for 2026. I dreamt of the crappy super expensive monopoly of code signing certificate providers to be dismantled. Signpath was so hopeful until they don’t sign your app unless it’s well known..

    Alas this software isn’t that but looks neat anyway!

    • teo_zero 8 hours ago
      > someone has created a free way of creating authenticode certificates for windows

      That would mean that someone has geabbed Microsoft's private keys or cracked its algorithm. Both cases would break the chain of trust, and signing code would become meaningless. So your dream is about the end of this practice.

      • codefreakxff 3 hours ago
        would ir? if this is a series of certificate trusts, and right now microsoft only trusts authenticode, couldn't microsoft trust another signing provider? isn't the problem that microsoft doesn't allow other signing providers, thereby creating a monopoly who is unmotivated to provide cheaper, easier, better service?
        • teo_zero 5 minutes ago
          I don't think the "dream" the GP was referring to is to have another signing authority accepted by Microsoft. I'm pretty sure they alluded to a way to sign your own code without asking any third party.
      • Retr0id 7 hours ago
        There are lots of viable alternative trust models, but most of them solve for the original problem statement of "prevent software packages from being tampered with, by anyone other than the maintainer", vs the more modern "prevent clueless users from installing malware".
        • brookst 4 hours ago
          Don’t both of those reduce to “prevent running malicious software”?
          • Retr0id 3 hours ago
            No, since it is easy for a malicious (or compromised) developer to produce a valid signature over malicious code.
    • poisonborz 7 hours ago
      The whole point of most industry certifications is large corps paying each other large sums for "trust", so your dream cannot become true in that context. See how browsers handle self signed certs.
  • aadieng100 9 hours ago
    Picking SLH-DSA over ML-DSA makes total sense for release signing. Keeping public keys at 32 bytes means you can still drop a .pub key into a README or a Dockerfile without it turning into a giant base64 blob, which was half the reason people liked Minisign over PGP in the first place.

    Hash-based assumptions are also the safest bet for long-lived release keys, and in a CI pipeline signing a few tarballs, the slower signing time doesn't really matter.

    • filleokus 3 hours ago
      One downside with SLH-DSA might be lack of (future) hardware support. I don't know if there are any plugins or implementations today of the old minisign protocol targeting something like the Yubikey, but I guess it should be possible considering it used ed25519?

      SLH-DSA seems less suitable for ≈TPM implementation, but maybe not?

      I think having important keys bound to hardware is a nice peace of mind, some rouge NPM dependency can't just scoop it up and run away with it at least...

    • comex 7 hours ago
      However, the signature size does go up from 300 bytes to 10 kilobytes.

      Since they're already eating the cost of large signatures, they could have theoretically used a system like ML-DSA without sacrificing the short-keys property, by having the .pub key only store a hash of the public key, and embedding the actual public key into each signature.

      But I agree SLH-DSA is a safer bet.

  • mdayan 3 hours ago
    [dead]
  • simsbridge 6 hours ago
    [dead]
  • m-jovan 5 hours ago
    [dead]