• 9tr6gyp3@lemmy.world
    link
    fedilink
    English
    arrow-up
    19
    arrow-down
    2
    ·
    edit-2
    23 hours ago

    I think they want to, but Microsoft has made it expensive for open source developers who do this as a hobby and not as a job to sign their software. I know not too long ago, this particular dev was asking its users to install a root certificate on their PC so that they wouldn’t have to deal with Microsofts method of signing software, but that kind of backfired on them.

    • TeamAssimilation@infosec.pub
      link
      fedilink
      English
      arrow-up
      9
      arrow-down
      1
      ·
      23 hours ago

      Let’s Encrypt is a trusted, established alternative, it could replace Microsoft for long-lived software certificates.

      Or tarnish its name associating it with malware and bad actors, who knows?

      • Luminous5481 [they/them]@anarchist.nexus
        link
        fedilink
        English
        arrow-up
        6
        arrow-down
        3
        ·
        22 hours ago

        Let’s Encrypt is a trusted, established alternative, it could replace Microsoft for long-lived software certificates.

        Uh, no it could not.

        First of all, the whole point of signing software is to ensure it comes from a reputable source. Let’s Encrypt signs certificates with an automated process that does no verification whatsoever of the identity of the person asking for a certificate. It would make the whole process completely pointless.

        Second, Let’s Encrypt has stated themselves over a decade ago that they have no intention of doing this because it would render the whole system pointless.

        • piccolo@sh.itjust.works
          link
          fedilink
          arrow-up
          8
          ·
          edit-2
          21 hours ago

          The point of signing software is to ensure the software was not tampered from the publisher. Linux package managers solve this by comparing a gpg key from the publisher with the software’s. There is no need for a corporate giant to “vet” software.

          • lad@programming.dev
            link
            fedilink
            English
            arrow-up
            1
            ·
            6 hours ago

            I guess, the point was there’s nothing doing that in windows, and you will have to check manually or use an expensive M$ certificate

    • yetAnotherUser@discuss.tchncs.de
      link
      fedilink
      arrow-up
      3
      ·
      21 hours ago

      Yes, but from what I understand this refers to the automatic update functionality and not Microsoft’s own .exe signature verification thing.

      Couldn’t you do it like this:

      • Put hardcoded key into N++
      • If a new release is available: Download, then verify signature
      • If the signatures match, do whatever Windows requires to install an update

      That should work, shouldn’t it?

      • 9tr6gyp3@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        20 hours ago

        No, because you wouldn’t be able to execute the updated exe without a valid signature. You would essentially brick the install with that method, and probably upset Microsoft’s security software in the process.

        • yetAnotherUser@discuss.tchncs.de
          link
          fedilink
          arrow-up
          3
          ·
          edit-2
          19 hours ago

          I meant the old .exe would check the signatures before initializing the official Windows way to update. Effectively have this run whenever you start the application:

          main() {
              if (update_available()) {
                  exe_path = download_update()
                  if (signature(exe_path) == SIGNATURE) {
                      install_update(exe_path)
                      restart()
                  } else {
                      put_up_a_warning_or_something()
                      delete(exe_path)
                  }
              }
          # Rest of the application
          # ...
          }
          

          The only thing I have no idea how to implement would be the install_update(path) function. But surely this is one way to install updates without signatures recognized by Microsoft, right?

          And if for some reason you aren’t allowed to sign the .exe because this breaks something, then place an unsigned .exe in a signed zip folder.

            • yetAnotherUser@discuss.tchncs.de
              link
              fedilink
              arrow-up
              2
              ·
              16 hours ago

              I don’t know enough about Windows app development to answer this. Maybe it replaces the old .exe and the now replaced .exe is just continuing to run from RAM? Maybe there is some restarter.exe program in the same folder that does all the work. In any case, this depends far too much on the Windows update process and how to launch applications.

              I just know when I used Windows applications in the past, they were able to restart themselves after updating somehow.

              • 9tr6gyp3@lemmy.world
                link
                fedilink
                English
                arrow-up
                2
                arrow-down
                1
                ·
                16 hours ago

                After an update on Windows, you must close the application to clear the RAM before launching the updated exe.

                Upon launching the new binary exe, Microsoft will check the code signing certificate and make sure its valid before letting it execute. If its not signed, you will be met with a warning that the binary publisher is unknown, and I believe that Microsoft won’t even let it launch nowadays

                • Pup Biru@aussie.zone
                  link
                  fedilink
                  English
                  arrow-up
                  2
                  ·
                  15 hours ago

                  that’s all completely irrelevant…, there is already an update mechanism built into NPP: that’s the entire point of the attack… it’s this update mechanism that got hijacked

                  • 9tr6gyp3@lemmy.world
                    link
                    fedilink
                    English
                    arrow-up
                    1
                    arrow-down
                    1
                    ·
                    15 hours ago

                    If Notepad++ had a valid signing certificate, you wouldn’t be able to run the malicious binary in the update. How is that not relevant?