News for hackers. Stuff that matters.
Re:Show HN: Xmake, a modern C/C++ build utility by kayamon on Monday April 08, 2019 @09:47PM (#19610972)
Don’t ever install software by piping arbitrary remote scripts into bash.
Re:Show HN: Xmake, a modern C/C++ build utility by bluejekyll on Monday April 08, 2019 @10:14PM (#19611117)
Assuming the script is hosted on an https site, is a popular tool (like brew or rustup) from a trusted source, why would this be any more dangerous than downloading and installing from a a package manager?

What would it take beyond https and a well-known site to make you comfortable doing this?

Re:Show HN: Xmake, a modern C/C++ build utility by adev_ on Tuesday April 09, 2019 @02:56AM (#19612414)
> Assuming the script is hosted on an https site, is a popular tool (like brew or rustup) from a trusted source, why would this be any more dangerous than downloading and installing from a a package manager?

Most package manager use an offline signature mechanism done at build time (rpm, dpkg, nix) and do not rely on HTTPS security for anything else than eyes-dropping reasons.

Relying purely on HTTPS is insecure. Nothing guarantee you that your source / script / package did not get hacked / modified between the time you uploaded it and the time your user downloaded it.

This is not hypothetical scenario, it already happened in the past with sites like sourceforge.

Re:Show HN: Xmake, a modern C/C++ build utility by flukus on Monday April 08, 2019 @11:04PM (#19611406)
> why would this be any more dangerous than downloading and installing from a a package manager?

Normally the packager and developer are different people so there is a second set of eyes to at least give a cursory glance to the changes. It takes more than a single compromised account to publish malicious changes. There are of course a million exceptions and caveats to this and it's not perfect, but it's better than allowing developers to push code directly.

Re:Show HN: Xmake, a modern C/C++ build utility by waruqi on Monday April 08, 2019 @09:51PM (#19611000)
This is just one of the more convenient installation methods, like homebrew, of course, we can also compile and install directly.
Re:Show HN: Xmake, a modern C/C++ build utility by hollerith on Monday April 08, 2019 @09:51PM (#19610997)
Unless you read and thoroughly understand the script first.
Re:Show HN: Xmake, a modern C/C++ build utility by michaelkrupp on Monday April 08, 2019 @09:59PM (#19611043)
Not even then. The Server can detect if you pipe to a shell or just download the script: https://www.idontplaydarts.com/2016/04/detecting-curl-pipe-b...
Re:Show HN: Xmake, a modern C/C++ build utility by Cyph0n on Monday April 08, 2019 @10:11PM (#19611097)
“Don’t ever” is a statement that depends on your threat model.

The vast majority of users would trust Homebrew (for example) to not do something like that.

Re:Show HN: Xmake, a modern C/C++ build utility by hollerith on Tuesday April 09, 2019 @08:06AM (#19613746)
Thanks for that. (Now I hate bash slightly more than I hated it already.)