this post was submitted on 26 Jul 2026
14 points (81.8% liked)

Arch Linux

9878 readers
1 users here now

The beloved lightweight distro

founded 6 years ago
MODERATORS
 

I haven't heard a peep about the security status of AUR since the headlines about malware injections into thousands of packages. I've ensured that none of my installed software is affected by the attack (to the best of my ability), but I've held off on my regular yay -Syu since then. What has you all done to keep your machine updated but clean?

And is there any update from AUR maintainers that the situation is under control? Most of my installed AUR packages simply don't exist in the official Arch repos, so if not I'd have to look for other sources.

top 25 comments
sorted by: hot top controversial new old
[โ€“] Feyter@programming.dev 39 points 5 days ago (1 children)

It's as safe as it always was and will be...

The concept of AUR is that you run other persons scripts on your device. That is by definition a very insecure thing to do.

[โ€“] halm@leminal.space 1 points 4 days ago

The concept of AUR is that you run other persons scripts on your device. That is by definition a very insecure thing to do.

This boils it down fairly well, I think ๐Ÿ™‚

[โ€“] darcmage@lemmy.dbzer0.com 20 points 5 days ago

I took the incident as a lesson to be more diligent about reviewing the pkgbuild before installing anything. It's understandable that not everyone will be willing to do that and I think the AUR is probably not for them, at least until there is some sort of safeguard in place.

[โ€“] communism@lemmy.ml 11 points 5 days ago

Just manually read the diffs for your yay -Syu. They were adding lines to the PKGBUILDs to pull malware. Verify what each line does and you'll be fine.

[โ€“] Creat@discuss.tchncs.de 8 points 5 days ago

It always has been as safe as it always was, assuming you follow basic safety rules. One of them being to read changes, or at least glance at them, but more importantly to not use/install packets that are unmaintained. This possibly includes occasionally checking if those that you have installed are still maintained.

The recent attack has been to take over unmaintained packages, which anyone can do, and use them to inject malware. So only people that had unmaintained packages installed could even be affected. This has not been made impossible. In fact it's mostly unchanged but has been made just slightly harder by requiring (new) aur accounts to have verified mail addresses.

It is kinda hard to really "fix" this, as anyone being able to put packages in the aur is literally the point. So is someone being able to adopt an abandoned package. Changing that would fundamentally alter what the aur is. Maybe it'll eventually be necessary, but what exactly a solution would look like without literally breaking the core idea isn't exactly a trivial question either.

[โ€“] halm@leminal.space 5 points 4 days ago

Thanks for all the replies! In a nutshell,

  1. "Safe" is a relative concept with AUR.
  2. Most of the affected packages were unmaintained, and probably shouldn't be installed anyway.
  3. Read the diff's before updating ๐Ÿ‘
[โ€“] ZWQbpkzl@hexbear.net 7 points 5 days ago (1 children)

The situation was under control within the day it was reported. The window where you could've been affected was only a few hours. It was not a case of them "uncovering" thousands of infected packages that were lying around for months. They were noticing an automated attack of hijacking and infecting orphaned packages as it was happening and rushing to keep up while warning the public.

That's not to say the AUR is "safe". Its as safe as its always been. Continue to read your PKGBUILD diff's as you always should have.

[โ€“] wuphysics87@lemmy.ml 3 points 5 days ago (3 children)

What is it you look for in the diffs more specifically?

[โ€“] MyNameIsRichard@lemmy.ml 3 points 5 days ago (1 children)

The first thing to check is that the software is being downloaded from the correct place. Look for additional downloads and make sure they're legit. Look for obfuscated code. If you're not sure, ask.

[โ€“] wuphysics87@lemmy.ml 1 points 5 days ago (1 children)

Not that it is a replacement to doing it manually, but if I were to write a script to look at "important" pieces, what should I be grepping?

[โ€“] MyNameIsRichard@lemmy.ml 1 points 4 days ago

You need to look at all the changes or if you are installing it, the whole package build file.

[โ€“] ZWQbpkzl@hexbear.net 1 points 4 days ago

You have to have some expectations and understandings of what the PKGBUILD for the package should be doing and look for something out of the ordinary. The upstream repo will usually have packaging instructions in its readme or wiki which should be reflected in the PKGBUILD.

In the case of the last incident, the attacker was adding npm as a dependency so they could execute npm install atomic-lockfile, which was the actual attack. That was a huge red flag because most of the packages had nothing to do with JavaScript.

Anything that could compromise your security, privacy, anonymity or safety.

[โ€“] krolden@lemmy.ml 2 points 4 days ago

Sure but npm isn't

[โ€“] nublug@piefed.blahaj.zone 3 points 5 days ago (1 children)

none of the affected packages were popular and iirc all were flagged out-of-date for a long time, which is also why the attackers got access as they were abandoned.

just review pkgbuilds and pay attention to ones that get flagged out-of-date when you're updating and go check it out and find an alternative if the upstream project looks abandoned as well or install it from source instead if it's just the aur pkg.

most out of date aur pkgs i've had ended up being things that the arch team put in extra so i just needed to install that one instead anyway.

[โ€“] dadarobot@lemmy.ml 3 points 5 days ago (1 children)

another thing to note: after an update, when your aur tool says you have orphaned packages installed, highly consider removing them.

if you want to keep them for whatever reason, try to remember (or write them down) so if they get an update out of the blue, you can scruitinize the pkgbuild

[โ€“] definitemaybe@lemmy.ca 1 points 4 days ago

It only takes a few moments to scan the diffs in a pkgbuild. It's not a big ask.

[โ€“] Ooops@feddit.org 3 points 5 days ago* (last edited 5 days ago) (1 children)

Those headlines were the usual "mention (seemingly) big numbers without context"-bullshit. You can easily look up the actual amount of packages in the AUR...

They also did not "inject malicious code into AUR packages" because of some insecurity that needed fixing. They simply took over orphaned packages then modified them.

So actual reality boils down to:malicious actors took over a miniscule amount of AUR packages with so little public interest nobody even maintained them. And the AUR is as secure as it ever was. Which means not very secure at all because it's public community content without any vetting. So look up the package and actually read the PKGFILE. Just as Arch is vocally warning you.

99.9% of changes are version numbering, checksum and rarely slight dependency changes. There is no chance anyone affected by a long orphaned package that got taken over and modified did ever read that one stupid file of just a few lines (or just the dif provided by several AUR helpers automatically).

[โ€“] Telorand@reddthat.com 3 points 5 days ago

They also did not "inject malicious code into AUR packages" because of some insecurity that needed fixing. They simply took over orphaned packages then modified them.

I agree, but I wanted to clarify this point for anyone: they didn't "take over orphaned packages" themselves, they took over the install processes, provided by the AUR for packages, that have likely been abandoned by the maintainers. The AUR doesn't host the actual code for software itself; it's just a set of instructions that tells the client where to grab code from and what to do with it.

[โ€“] Tenderizer78@lemmy.ml 2 points 5 days ago

The AUR is never safe.

[โ€“] Nibodhika@lemmy.world 1 points 5 days ago (1 children)

This reads like someone asking whether it's safe to leave your front door unlocked again because he read about a bunch of people using open front doors to rob them.

It never was safe, it never will be safe, you're trading convenience for safety, you're supposed to review the PKGBUILDS to ensure they're safe, if you can't do that you shouldn't risk it.

This is why I hate when Arch (yes, even Cachy or whatever is the current "easy" Arch) is recommended for new users. Arch assumes you know what you're doing, it expects you to read the manual, and it doesn't have kid gloves. You will get hit in the face by this and many other similar things, and will be told "it was in the manual".

[โ€“] halm@leminal.space 1 points 4 days ago

This reads like someone asking whether it's safe to leave your front door unlocked again

Fair, and not wrong ๐Ÿ™‚ Appreciate the reminder!

[โ€“] kittenzrulz123@lemmy.dbzer0.com -2 points 5 days ago (2 children)

I would personally still wait until the AUR maintianers give the all clear

[โ€“] flameleaf@lemmy.ml 2 points 5 days ago

All of them?

[โ€“] Creat@discuss.tchncs.de 1 points 5 days ago

There is not going to be an all clear. See my longer response as to why.