News for hackers. Stuff that matters.
Re:Password-stealing Linux malware served for 3 years and no... by acatton on Tuesday September 12, 2023 @05:51PM (#37489005)
This is installed by adding a shady repository to your apt sources.list...

How is this a supply chain attack? My official debian repository have never been breached so far.

This is no different from downloading an .exe off a shady website and blindly running the .exe.

Also: https://packages.debian.org/search?keywords=download+manager... lists:

• uget: https://sourceforge.net/projects/urlget/

• kget: https://apps.kde.org/en-gb/kget/

• persepolis: https://persepolisdm.github.io/

why use "Free Download Manager" when high quality ones are already officially packaged by debian? Is this targeting new-comers from windows?

Re:Password-stealing Linux malware served for 3 years and no... by baz00 on Tuesday September 12, 2023 @06:21PM (#37489382)
Basically, as per everything these days, the entire software industry is based on "download and run any old shit off the Internet" with little to no fucks given about the source or trustworthyness or correctness. End users are no better because for most people, including a lot of novice Linux users, this isn't even considered as part of fixing or dealing with any particular problem. Cut / paste / job done.

Worst is I've seen CD/CI systems which just pull unsigned unverified binaries off the internet and build software from github, random APT and YUM repos, all sorts of shit. This is then all thrown together and pushed into production systems.

Re:Password-stealing Linux malware served for 3 years and no... by acatton on Tuesday September 12, 2023 @06:31PM (#37489471)
It doesn't have to be. Corporations which are FedRAMP[1] compliant, have to build software reproducibly in a fully isolated environment, only from reviewed code.[2]

[1] https://en.wikipedia.org/wiki/FedRAMP

[2] https://slsa.dev/

Re:Password-stealing Linux malware served for 3 years and no... by metadat on Tuesday September 12, 2023 @07:56PM (#37490347)
In theory, yes. Who has really reviewed and analyzed every line of Kafka or Spark? Even the bigcos.. don't.
Re:Password-stealing Linux malware served for 3 years and no... by Nursie on Tuesday September 12, 2023 @08:09PM (#37490441)
Ah, I remember when we all did that. It was just part of basic due diligence - pull all your dependencies into your own build system, review and check compatibility, then build completely locally.

Of course a lot of what we built wasn’t public facing or exposed to the internet at all, so addressing the latest vulnerabilities in record time wasn’t quite as important as known-good builds.

I’ve worked in one or two places recently (big bank) that are large enough to have their own internal repo systems and teams of security/compliance reviewers. Their versions of things can be a bit behind but are at least under control of the same org. Everywhere else, well, it feels a bit like cowboy country…

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
Re:Password-stealing Linux malware served for 3 years and no... by thephyber on Tuesday September 12, 2023 @08:07PM (#37490430)
Other than reputation analysis by Snyk, I honestly don’t know how to objectively analyze one repo/package versus another.

Obviously I can make some basic heuristics, but I can’t reasonably evaluate all of the components of trust for every library, package, container, framework, repo even at a regular interval, let alone fast enough to just maintain patch levels (nevermind being reasonably productive).

I actually considered first steps in making a business out of this idea, but I’m convinced that every developer overestimates their ability to identify untrustworthy repos/packages and companies aren’t willing to pay the actual cost (with either subscription dollars or in the friction it would add to reject almost all 3rd party code because it doesn’t meet high standards of quality and security in a transparent and verifiable way).

Re:Password-stealing Linux malware served for 3 years and no... by RulerOf on Tuesday September 12, 2023 @09:52PM (#37491232)
>Obviously I can make some basic heuristics, but I can’t reasonably evaluate all of the components of trust for every library, package, container, framework, repo even at a regular interval, let alone fast enough to just maintain patch levels (nevermind being reasonably productive).

Related: have you tried throwing a file (or a hash) at VirusTotal lately? If it's executable, they'll run it in a sandbox and give you a forensic report of everything it touched and did.

I'm so suspicious of software I can't at least review the source code of that originates outside of trusted channels that I probably wouldn't run anything meeting that description that I couldn't compile myself if it weren't for that (and similar) tools.

Re:Password-stealing Linux malware served for 3 years and no... by thephyber on Tuesday September 12, 2023 @11:52PM (#37491990)
Virus scan is only 1% of security.

Eg. How do I know with any certainty that a library passes all OWASP best practices? Or is well documented? Or is maintained? Or is responsive to security reports? [… and dozens of other similar properties]

Re:Password-stealing Linux malware served for 3 years and no... by nprateem on Wednesday September 13, 2023 @05:54AM (#37494563)
Reviewing code is an insurmountable task if you're using more than a few very simple packages.
Re:Password-stealing Linux malware served for 3 years and no... by marcus_holmes on Tuesday September 12, 2023 @09:48PM (#37491210)
I personally believe this is going to be the biggest security nightmare of the next ten years. All those npm/gem/pip/deb packages that are imported by thousands of projects and Docker images, with maintainers who are retiring. So easy for a malicious actor to just slip in some code, and who has time to audit all those dependencies for every single update?
Re:Password-stealing Linux malware served for 3 years and no... by sva_ on Tuesday September 12, 2023 @06:05PM (#37489195)
> This is installed by adding a shady repository to your apt sources.list...

How is this possible? Aren't the packages signed like on ArchLinux so that you can use any mirrorlist?

Re:Password-stealing Linux malware served for 3 years and no... by acatton on Tuesday September 12, 2023 @06:11PM (#37489273)
Yes, they are signed, but not with the official key. If you add it through the UI, it will auto-accept the key from the repository. (I'm not sure how it exactly works, it might ask the user for the confirmation)

If you do it from the command line, by editing files, you will have to add the key manually.

But most inexperienced users will just copy/paste and run the "curl | sudo apt-key add" command from the shady repository website, because they want to run the software.

This is not much different from downloading an .exe from an untrusted website, and ignoring the warning from windows when running the .exe.

Re:Password-stealing Linux malware served for 3 years and no... by TechBro8615 on Tuesday September 12, 2023 @07:50PM (#37490295)
Until recently (when apt-key was deprecated), this has been a large security hole (and it will continue to be as long as apt-key is still used). Basically unless a repository in your sources.list includes a signed-by attribute referencing a specific key, then it can install packages signed by any public key you've added via apt-key. Also, sources.list defines an implicit priority order (IIRC it's top-to-bottom), so that when two repositories include a package with the same name, the package from the highest priority repository is installed. You can imagine the security issues that arise from a system dependent on the order of lines in a file that many people manually edit while frustrated and reading a tutorial online.

More here: https://medium.com/@glegoux/ubuntu-22-04-jammy-jellyfish-apt...

Re:Password-stealing Linux malware served for 3 years and no... by mistrial9 on Tuesday September 12, 2023 @08:06PM (#37490422)
"people who walk on the sidewalk often cross the street in front of traffic THEREFORE walking on the street is just like walking in front of traffic"

maybe you intend to deeply explore the behavior of "the most inexperienced" as if it is Typical of Desktop Linux admins?

Re:Password-stealing Linux malware served for 3 years and no... by sudobash1 on Tuesday September 12, 2023 @06:10PM (#37489257)
This is more like using AUR (except the packages are prebuilt with no way to inspect source). They are entirely user submitted.
Re:Password-stealing Linux malware served for 3 years and no... by acatton on Tuesday September 12, 2023 @06:13PM (#37489290)
No. This is not AUR, this is an entire third party repository. It would be the equivalent of these https://wiki.archlinux.org/title/Unofficial_user_repositorie...
Re:Password-stealing Linux malware served for 3 years and no... by cosmojg on Tuesday September 12, 2023 @08:08PM (#37490432)
If you run Arch, I highly recommend checking out ALHP and chaotic-aur.
Re:Password-stealing Linux malware served for 3 years and no... by _joel on Tuesday September 12, 2023 @07:20PM (#37490022)
| uget: https://sourceforge.net/projects/urlget/

Appreciate sf.net isn't as shady now, but ironic it should be listed as that used to spread malware. https://www.howtogeek.com/218764/warning-dont-download-softw...

Re:Password-stealing Linux malware served for 3 years and no... by dotty- on Tuesday September 12, 2023 @08:21PM (#37490533)
> How is this a supply chain attack?

It's a supply-chain attack because the article has a section about how the official website for "Free Download Manager" was serving malware to a percentage of people.

> While checking videos on Free Download Manager that are hosted on YouTube, we identified several tutorials demonstrating how to install this software on Linux machines. We observed the following actions that happen in all these videos:

> - The video makers opened the legitimate website of Free Download Manager (freedownloadmanager[.]org) in the browser;

> - They afterwards clicked on the Download button for the Linux version of the software;

> - They were redirected to the malicious https://deb.fdmpkg[.]org/freedownloadmanager.deb URL that hosts the infected version of Free Download Manager.

Re:Password-stealing Linux malware served for 3 years and no... by Nursie on Wednesday September 13, 2023 @01:20AM (#37492507)
It's a supply-chain attack on Free Download Manager, rather than on linux itself. The truncated HN headline makes this seem like it's a general linux problem.
Re:Password-stealing Linux malware served for 3 years and no... by wut42 on Wednesday September 13, 2023 @10:31AM (#37497261)
>This is installed by adding a shady repository to your apt sources.list...

In the article they show a video which shows the user downloading FDM from the official website, and the file coming from that repo.

Re:Password-stealing Linux malware served for 3 years and no... by FDM_Team on Thursday September 21, 2023 @05:09AM (#37595106)
Greetings from the Free Download Manager team! Here is our latest update regarding the issue. We have created a bash script that you can use to check the presence of the malware in your system. Please review our instructions on our official page: https://www.freedownloadmanager.org/blog/?p=664 We once again sincerely apologize for any inconvenience that might have been caused.