5 ms·
Why does piping commands in to bash from the internet take on a magical security significance for people who run software they haven't audited literally all the
by peteretep 12y ago
Why does piping commands in to bash from the internet take on a magical security significance for people who run software they haven't audited literally all the time?
- zorpner 12y agoIn the case of a network interruption, a command could become truncated with potentially destructive results.
- e12e 12y agoYou don't see the difference between running an exploit to check if you're vulnerable to a security bug, and running software provided by your upstream distribution?
- peteretep 12y agoNo, I don't see why people who run open source code from a variety of sources think that there's something magically insecure about downloading it and executing it using curl and bash.
- zurn 12y agoThis is a good question to think about, especially if it makes you consider more carefully about what software you run! But there's a lot of spectrum between "i have audited this software" and "i'm just piping this random url off the web to my shell". Many software distribution mechanisms provide varying degrees of curation, reputation, accountability etc. Also in this case the link was provided in a context that would select for people who are concerned about security updates (= looking after high value systems) and still somewhat naive about security practices, and could get run on systems that have strict rules about installing software on them.
- heavenlyhash 12y agoPerhaps the parent commenter doesn't run software without audit. There's no reason to presume defeat -- It's wholly possible to run a modern system using only signed builds from trusted sources and compile-from-source from everything else. Certainly, one can't audit every line, but just as certainly, one can establish a train of trusted sources and audit the rest (like this tiny snippet of bash, which is so utterly trivial to verify you might as well polish the habit on it).