News for hackers. Stuff that matters.
Re:Detecting the use of “curl – bash” server side by ithkuil on Wednesday April 20, 2016 @06:34AM (#11533400)
I think the many discussions about this conflates two things:

1. "curl|bash" vs "curl >install.sh; sh install.sh" 2. install scripts vs package managers

The OP talks about how to detect a streaming execution of a script and exploit it. This proof of concept exploit aims at discouraging the the use of curl|bash as a means to installing code, and instead promotes that at least you should save the script (and review it) (i.e. the "curl >install.sh; sh install.sh").

All of the points you mentioned are valid and important pain points that affect any arbitrary executable install script (not verified cryptographically using a side channel). Deciding whether to use an install script or a packaging system is really a tradeoff.

The "obvious" problem the OP was talking about was that smell you feel when you see piping code to bash. I think OP made an excellent job showing how you can make it harder for people to spot and audit malicious code and how this is pretty serious downside for piping code into bash; It's more like: "I have a gut feeling this is horrible, so let's think about a way to prove that gut feeling", and the proof is insightful and non obvious.

There are no comments on this comment yet.