News for hackers. Stuff that matters.
Re:Password-stealing Linux malware served for 3 years and no... by pdntspa on Tuesday September 12, 2023 @07:14PM (#37489947)
Or all those `curl install.sh | bash -` scripts that nobody checks that could do pretty much anything, esp when they ask you to sudo
Re:Password-stealing Linux malware served for 3 years and no... by thombles on Tuesday September 12, 2023 @07:26PM (#37490087)
I never understand why people get more upset about the bash script running arbitrary code than the program it's actually installing.
Re:Password-stealing Linux malware served for 3 years and no... by pdntspa on Tuesday September 12, 2023 @07:56PM (#37490342)
Oftentimes the installer needs greater system access than the code you're running, particularly on Windows

IME most of the randomly-downloaded software I've used does what it says on the tin. But there is a whole screening process: where did it come from? Does the originating site look legit? What are the possible motivations for the creator?

Besides there is no signing mechanism for your random install.sh. Maybe you check the SHA256 but if an attacker alters the script why not alter the website with the hashes too?

Re:Password-stealing Linux malware served for 3 years and no... by vladvasiliu on Wednesday September 13, 2023 @08:06AM (#37495626)
Aren't the most interesting things to steal already in the user's home folder, so having admin rights won't really give you that much more.
Re:Password-stealing Linux malware served for 3 years and no... by PhilipRoman on Wednesday September 13, 2023 @08:17AM (#37495709)
You're absolutely right

https://xkcd.com/1200/

Re:Password-stealing Linux malware served for 3 years and no... by _d3Xt3r_ on Wednesday September 13, 2023 @03:27PM (#37500627)
Depends on the malware. Not all of them aim to steal, some may want to turn your PC into a botnet node, or a remote proxy for illegal activities.
Re:Password-stealing Linux malware served for 3 years and no... by qerti on Wednesday September 13, 2023 @11:35AM (#37498167)
It’s not that the bash script is worse than the installed program. The problem is that the bash script risks installing a malicious program.
Re:Password-stealing Linux malware served for 3 years and no... by mtillman on Tuesday September 12, 2023 @07:19PM (#37490003)
Who is running random curl scripts without checking the code first? Is this common now?
Re:Password-stealing Linux malware served for 3 years and no... by zx8080 on Tuesday September 12, 2023 @07:45PM (#37490243)
Quite so. A quick example from k3s installation page (https://docs.k3s.io/quick-start):

``` curl -sfL https://get.k3s.io | sh - ```

Re:Password-stealing Linux malware served for 3 years and no... by rangerelf on Tuesday September 12, 2023 @08:11PM (#37490459)
It bugs me to no end that they (those that give those instructions) are normalizing this.
Re:Password-stealing Linux malware served for 3 years and no... by d0mine on Tuesday September 12, 2023 @07:59PM (#37490368)
Nobody reads the source code of all software they are running.
Re:Password-stealing Linux malware served for 3 years and no... by firen777 on Tuesday September 12, 2023 @09:20PM (#37490989)
Considering:

- Not everyone is proficient in bash.

- Some install scripts can easily go on for thousands of lines, especially if they are designed to work with multiple distro or architecture, or both.

- Said install script might be integrated deep down into someone else's build pipeline.

- ... that's assuming they aren't the type that would blindly download and run random exe from the web in the first place

Pretty common, I would say.

Re:Password-stealing Linux malware served for 3 years and no... by RulerOf on Tuesday September 12, 2023 @09:54PM (#37491244)
Ever install docker on a pet Linux box? That script saves a lot of time.
Re:Password-stealing Linux malware served for 3 years and no... by Brian_K_White on Wednesday September 13, 2023 @08:46AM (#37496030)
Unless that is the only way that was possible to save that time, this doesn't matter.
Re:Password-stealing Linux malware served for 3 years and no... by literalAardvark on Wednesday September 13, 2023 @07:13AM (#37495177)
It's like 80% of non distro Linux installers
Re:Password-stealing Linux malware served for 3 years and no... by CoolCold on Thursday September 14, 2023 @04:29AM (#37506366)
My own estimations and observations say - 80% of programmers do. It's called "great DX" nowadays