3 ms·
You can check checksums. You can use a package manager which has been gpg signed and reviewed by people smarter than you. You could download it over https. You
by rmc 14y ago
You can check checksums. You can use a package manager which has been gpg signed and reviewed by people smarter than you. You could download it over https.
You're downloading and running in one go. If someone puts a badfile up for 1 minute, then restore it to normal, and you get hosed, it's pretty hard to check that, because the download link looks fine now. You cannot try to figure out what happened or who did it to try to track down the culprit.
- JonnieCache 14y agoChecksums are only for transmission errors. If someone can change the code, they can change the checksum. Indeed, using signed code is massively preferable, and it is increasingly common. I was about to write that you can't operate running only signed code, but if you consider git hashes a form of signing then I suppose you largely can these days. However, running unsigned code is still so common that I don't think you can really single out people who pipe curl into sh.