• chebra@mstdn.io
    link
    fedilink
    arrow-up
    2
    ·
    2 months ago

    @gomp try comparing it with apt install, not with downloading a .deb file from a random website - that is obviously also very insecure. But the main thing curl|sh will never have is verifying the signature of the downloaded file - what if the server got compromised, and someone simply replaced it. You want to make sure that it comes from the actual author (you still need to trust the author, but that’s a given, since you are running their code). Even a signed tarball is better than curl|sh.

    • gomp@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      2 months ago

      Installing a .deb is what I was thinking about.

      Even a signed tarball is better than curl|sh.

      If you have a pre-shared trusted signature to check against (like with your distro’s repos), yes. But… that’s obviously not the case since we are talking installing software from the developer’s website.

      Whatever cryptografic signature you can get from the same potentially compromised website you get the software from would be worth as much as the usual md5/sha checksums (ie. it would only check against transmission errors).