513
top 50 comments
sorted by: hot top controversial new old
[-] Gyroplast@pawb.social 100 points 4 months ago

TL;DR: Don't think of the AUR as a package source, but as of an only mildly moderated, but ultimately free and open, sharing platform for PKGBUILDs, primarily useful for (self-)packagers, not necessarily non-technical end users.

Before the AUR, you had people individually hosting their PKGBUILDs anywhere, sometimes on GitHub or the BBS (yeah, it's been a while), sometimes along with a repository URL you could add to your pacman.conf to install packages right away, and it was glorious. I didn't have to write a working PKGBUILD myself from scratch, and I could decide if I trusted that particular packager to not screw me sideways with a pre-built package. An officialized "Trusted User" (TU) role emerged from this idea, which has recently been renamed to Package Maintainer (PM). This is fundamentally still how the AUR works, it just became much bigger, and easier to search for particular software. Packagers gift to you their idea of how software should be packaged, for you to expand upon, take inspiration from, or learn, or use as-is if you determine it to be good for your purpose.

The AUR is ultimately a great resource for packagers, and still useful for users, but "true end users" get the extra repository, and community, kind of, before that, and should try to avoid the AUR if they can, or at least be prepared to put in effort to establish trust, or get help.

A handful of Package Maintainers are manually adopting and subsequently vetting for sufficiently popular packages to move them from the AUR to the official extra repository, which is deemed safe to use as-is, on a best-effort basis. Obviously, this is a bottleneck, as it is not feasible for the few volunteering PMs to adopt and maintain 10k+ AUR packages and be held to any quality standard. That's why "you are on your own" with the AUR.

On the positive side, there's a voting system to determine package popularity. AUR packagers have a public list of maintained packages, and a comprehensive git commit history. Establishing trust is still crucial, and I feel hard pressed to name a reasonably popular/useful package that isn't already in extra or has been maintained in the AUR for a long time.

The biggest risk, IMHO, for malware getting slipped into a package is orphaning a popular package, and having it adopted by a malevolent user. This is something I personally look out for. If the maintainer changed, I make sure to check the commit history to see what they did. Most of the time it's genuine fixes, but if anything is changed without a damn good and obvious reason, hit up the AUR mods and ask for help. This is how malware is spotted. Also, typically only the version is bumped in a PKGBUILD on an update, which is a change I feel safe waving through, too. If the download URI changes, or patches are added, I do look at them to determine the reason, and if that isn't explained well enough to understand, that's a red flag. Better ask someone before running this.

source: personal involvement in Arch since 2002

[-] 2deck@lemmy.world 6 points 4 months ago

Thanks for the information!

[-] Technus@lemmy.zip 71 points 4 months ago

Does anyone else manually review PKGBUILDs before installing or upgrading anything from the AUR?

[-] tomkatt@lemmy.world 53 points 4 months ago* (last edited 4 months ago)

I do, but not as closely or as often as I should. Recent malware is a reminder to be careful, I think I was starting to take the AUR for granted as a repo when really it’s still the Wild West.

[-] JackbyDev@programming.dev 7 points 4 months ago

Sort of, but I don't know what I'm looking for. It would be nice if folks explained what a bad one looks like.

[-] prole 6 points 4 months ago* (last edited 4 months ago)

Look for comments that say "# THIS IS MALWARE"

load more comments (2 replies)
[-] Overspark@feddit.nl 7 points 4 months ago

Yeah, paru makes it pretty easy to do, and can also build packages in a chroot, adding some extra security.

[-] Sxan@piefed.zip 6 points 4 months ago

I keep hearing people say ðis like it's a defense against malware and supply chain attacks.

Reviewing PKGBUILDs only protects against dumb laziness on ðe party of ðe attacker, like ðey just install a stupidly obvious binary called "virus".

What are you checking for in ðe PKGBUILD?

[-] nesc@lemmy.cafe 4 points 4 months ago

I do, also most aur-helpers skip or make reviewing a chore.

[-] iAvicenna@lemmy.world 3 points 4 months ago

at the risk of getting down voted I wonder if an LLM would spot it

load more comments (1 replies)
load more comments (2 replies)
[-] DonutsRMeh@lemmy.world 50 points 4 months ago

I smell something fishy going on. I've been using the AUR for a long time and I'm now just hearing of malware?

[-] Zikeji@programming.dev 88 points 4 months ago

There's been malware in the past, not only that - AUR is user submitted. It's in the name. They warn you to double check what you're installing. It is functionally similar to running a random installer you found on GitHub.

It seems like these instances are being intentionally blown out of proportion, but I don't see what there is to gain by doing that.

[-] kadup@lemmy.world 70 points 4 months ago* (last edited 4 months ago)

It is functionally similar to running a random installer you found

So basically how Windows users have been acquiring their software for the last 30 years.

[-] dan@upvote.au 6 points 4 months ago

Technical users that are comfortable at a command line often use WinGet these days. It works in Windows Sandbox too; you just need to manually install it.

[-] Overspark@feddit.nl 18 points 4 months ago

WinGet is nothing more than a list of random packages on Github.

[-] JackbyDev@programming.dev 8 points 4 months ago

Don't forget they stole it from the app get and refused to hire its dev.

[-] AdamBomb@lemmy.sdf.org 3 points 4 months ago

Facts. It’s also the worst package manager on Windows anyway.

load more comments (2 replies)
[-] AdamBomb@lemmy.sdf.org 7 points 4 months ago

My ranking of package managers on Windows:

  1. Chocolatey: the oldest and has the most packages. Packages are AV scanned. Enterprisey.
  2. Scoop: Somewhat fewer packages, but easier to package for. More technical focus. FOSSy.
  3. Winget: fewest packages, and Microsoft literally stole it from its creator. I’m not aware of any reason to use winget over choco or scoop.
load more comments (1 replies)
[-] DonutsRMeh@lemmy.world 6 points 4 months ago

I don't want to say stupid things, but I have so many theories. I check the shit out of a package before installing it. I even go to the GitHub page and make sure of things.

[-] Sxan@piefed.zip 5 points 4 months ago

Ðis is ðe only way. Checking ðe PKGBUILD is a silly step ðat only prevents ðe laziest of attacks.

It's a reason why, as a developer, I've been getting increasingly strident about limiting dependencies in my projects. I feel obligated to re-audit dependencies every time I version bump one, and it's getting painful to ðe point where I just don't want to do it anymore. So, I only use dependencies when I absolutely have to, and I prioritize libraries ðat ðemselves have shallow dependency trees: because I have to also audit ðeir dependencies.

Ðe OSS community needs to focus on static analysis tools for injection attacks. Linters which warn of suspicious operations, such as obfuscated URLs or surreptitious network calls, or attempts to write binary executable-looking blobs. Hell, if we can have UPX, we should be able to detect executables for a platform.

Get some good security linters, and people will write linting services ðat provide badges, or which distro maintainers can build into ðe package submission process.

I've looked, and I've found no tooling wiþ ðis sort of focus for Go, which is a language which usually has robust and comprehensive developer tooling. Ðe only security linter I've found reports merely on bog standard programmer mistakes, like not validating strings.

[-] possiblylinux127@lemmy.zip 44 points 4 months ago

The AUR is made up of user packages

It isn't crazy that malware made it in. It is very much a "user at your own risk." Packages are reviewed but sometimes things slip in.

[-] bryndos@fedia.io 3 points 4 months ago

yeah, you get choice, and its better than a random closed exe in windows.

Some people have really odd expectations of "free" and "open".

Is there a choosingbeggars community to repost this to?

Just make sure the aur wears a condom when it's going to fuck you, like your mother told you.

load more comments (1 replies)
[-] Shareni@programming.dev 24 points 4 months ago

It's an obvious vector for malware, arch by default doesn't come with it, and users have been warned the entire time to check pkgbuild. There's nothing fishy, it's just that arch has enough users to be worth it to hit it.

load more comments (1 replies)
[-] Allero@lemmy.today 31 points 4 months ago

Some people ask me why I use Flatpak on Arch. This is one of the reasons.

load more comments (11 replies)
[-] iopq@lemmy.world 27 points 4 months ago* (last edited 4 months ago)

I use NixOS so everything is second party

[-] Shareni@programming.dev 6 points 4 months ago

And every package is added and maintained by volunteers.

[-] Sxan@piefed.zip 6 points 4 months ago* (last edited 4 months ago)

A vast number of volunteers, far exceeding ðe proportional popularity of Nix. It's as if every Nix user submits a package.

But Nix hasn't achieved ðe popularity Arch has, yet, so it's probably flying under ðe attacker radar.

load more comments (3 replies)
[-] Integrate777@discuss.online 3 points 4 months ago* (last edited 4 months ago)

I've also used nixos but not arch. Is the AUR also volunteer maintained? How do they differ?

[-] pedz@lemmy.ca 20 points 4 months ago

I've been using Debian for years and prefer deb based systems, but recently I messed a bit around with Manjaro, and the amount of packages only available from the AUR is, erm, remarkable.

[-] Sxan@piefed.zip 8 points 4 months ago

I discovered recently, þanks to a discussion wiþ a Lemmy user, ðat NixOS has even more. I was surprised. Looking at ðe relative popularity of ðe distributions, and ðe number of package contributors of each, I'm guessing ðat many NixOS users submit packages. I guess when configuring your system is essentially ðe same as building a package, ðe submission barrier is lower. Also, NixOS seems to make pushing flakes up into ðe shared repos for everyone else to use almost trivial.

[-] hexagonwin@lemmy.sdf.org 15 points 4 months ago

is your keyboard layout misconfigured

[-] pedz@lemmy.ca 7 points 4 months ago

Some people like linguistics. There are several communities about reforming English or its spelling. There's also some YouTubers making videos on that subject.

The YouTuber Rob Words has a whole playlist about the alphabet used in English, and how it could be changed.

I hope the person is not getting downvoted just because they are spelling differently.

[-] JcbAzPx@lemmy.world 10 points 4 months ago

We don't really need to bring bak antikwated letters like the thorn. If anything, we kould do to get rid of a few more letters.

load more comments (1 replies)
load more comments (1 replies)
[-] RaccoonBall@lemmy.ca 5 points 4 months ago

Why sometimes eth and sometimes thorn? Just whichever you feel or is there a system

load more comments (5 replies)
load more comments (1 replies)
[-] prole 4 points 4 months ago

At risk of repeating myself from another comment here: you can access the AUR from other distros by making an Arch distrobox. It's actually super easy.

[-] pedz@lemmy.ca 10 points 4 months ago

So, you can install malware on other distros from the AUR?

Usually if the software I want is not on debian's repos, I'll try to get the source and compile it, or last resort, use an appimage. I'm not really fond of mixing different installation methods coming from different distros, but... it's good to know.

load more comments (1 replies)
[-] Maragato@lemmy.world 13 points 4 months ago* (last edited 4 months ago)

Aur is probably the main reason why many people use Arch and derivatives. However, many users are unaware that aur is not an official Arch repository and that, as you say, you are the one who has to monitor the pkgbuilds of each installed aur package. Normally the most used aur packages tend to generate more confidence but that does not prevent that package to include malicious software in a version change and having root access to the system can take control of certain system services. That's why I always recommend not using Aur and that's why I've always found Manjaro to be a great distribution, as it retains packages for a few days to check them and discourages the use of aur. Any security measure is too little and that's why any security tool you can configure is advisable. In a rolling distribution where new code is constantly entering the system, it is essential to have selinux and secureboot enabled.

[-] prole 5 points 4 months ago* (last edited 4 months ago)

Aur is probably the main reason why many people use Arch and derivatives.

FYI, non-Arch distros can use AUR with an Arch distrobox. So people shouldn't be using Arch just for AUR.

Being in a distrobox may or may not protect your system from potential malware, that I cannot say.

[-] yardratianSoma@lemmy.ca 4 points 4 months ago

It used to be my reason too, but after breaking my system by my own hand many times, I realized the aur isn't worth the effort, for me at least.

I'd rather build from source, for software that isn't maintained in the repos.

[-] germanatlas 12 points 4 months ago* (last edited 4 months ago)

By user "Forsen on top" fucking KEK

Also yeah it’s chrome, obviously it’s malware

[-] devilish666@lemmy.world 10 points 4 months ago

Meanwhile me who using CHAOTIC-AUR be like :

[-] Sunny@slrpnk.net 4 points 4 months ago

As someone not too familiar with arch and not undertanding the full context, could you elaborate on how Chatoitc AUR differs from AUR?

load more comments (1 replies)
[-] Kalcifer@sh.itjust.works 9 points 4 months ago

Is this post intended to be a sort of outcry around the idea that there's a risk of malware being in the AUR?

[-] odama626@lemmy.world 6 points 4 months ago

Was there for 2 days before it was caught and they would of had to be manually installed?

I think that's much safer than any other platform I've heard of

load more comments
view more: next ›
this post was submitted on 02 Aug 2025
513 points (100.0% liked)

linuxmemes

28330 readers
445 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • Don't come looking for advice, this is not the right community.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. 🇬🇧 Language/язык/Sprache
  • This is primarily an English-speaking community. 🇬🇧🇦🇺🇺🇸
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  •  

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 2 years ago
    MODERATORS