News for hackers. Stuff that matters.
Re:Detecting the use of “curl – bash” server side (2016) by aesyondu on Wednesday December 09, 2020 @05:10AM (#25357080)
Pardon my ignorance, but couldn't we just cryptographically sign bash scripts as well?

Perhaps modify the installation script, something like `curl | some-verification-tool | bash`

Re:Detecting the use of “curl – bash” server side (2016) by Arnavion on Wednesday December 09, 2020 @05:54AM (#25357345)
You can. PowerShell already has a 15-year precedent of signed scripts - you generate a signature and embed it in the script in a specific way, and the shell can be configured to only run scripts if their signature is valid.

(PowerShell script signing is based on standard Windows codesigning certificates, but of course this hypothetical bash script signature verifier can use GPG keys instead.)

Re:Detecting the use of “curl – bash” server side (2016) by iso1631 on Wednesday December 09, 2020 @06:31AM (#25357556)
Those who do not understand package managers are doomed to rewrite them. Badly.
Re:Detecting the use of “curl – bash” server side (2016) by OskarS on Wednesday December 09, 2020 @05:44AM (#25357284)
Not easily, and probably not in a way that would work on all different systems (different distros/os's trust different keys).