Update - 18:55 UTC - The Arch Linux team put up an official announcement now:
We are currently experiencing a high volume of malicious package adoptions and updates in the Arch User Repository.
We are actively working to track down existing malicious commits and attempting to prevent additional malicious commits from being pushed. While this is happening, and while we work to create a more permanent solution, users may see issues with the following:
- Creating new accounts on the AUR
- Pushing package updates
- Adopting or creating new packages
We continue to encourage all users of AUR packages to review all PKGBUILD and install script changes when updating, especially during this time. If you notice suspicious commits to a package that you use, please reach out to Arch staff via the aur-general mailing list with more information.
Original article below:
Looks like the Arch Linux AUR (Arch User Repository) needs some better security and package checks - as some malicious users compromised a lot of packages.
For those who aren't clear on the details - the AUR is a community-driven way of providing extra software for Arch Linux. Anyone can submit a package to it. This is completely separate to the actual Arch Linux packages which were not hit.
There's a thread on the public AUR Mailing List with people reporting packages, where it seems like over 400 packages were hit with the issue. Arch packager Jonathan Grotelüschen mentioned work was ongoing to "reset/delete all malicious commits and ban the accounts".
From the packages that were changed, they were made to include npm (a package manager), which is then used to pull in some sort of keylogger / credentials stealer - so it's really quite a shocking security breach to have affected so many different packages.
Hopefully the mess will get sorted fully soon, and for some improvements to the packaging processes to prevent this from happening in future. Especially with the rise of AI bots, and how much easier this sort of thing has become thanks to them - it could end up a lot worse in future.
Oh dear.
Quoting: BreizhThat's my point though - it *needs* some checks. Otherwise, the people responsible for keeping the AUR online become responsible for helping to spread malware. Just telling people to check whatever code or recipe isn't going to cut it.the Arch Linux AUR (Arch User Repository) needs some better security and package checks […] for some improvements to the packaging processes to prevent this from happening in future.Well, there is no check at all currently. The AUR is just a way for user to share what they use personnally, it shouldn’t be trusted.
People that use AUR recipes without checking them before can only be angry against themself, it’s like getting a random script on GitHub and running it blindly…
Of course, cleaning the AUR as it’s going now is a good thing, but Arch could simply close the AUR and ask people to share their PKGBUILDs elsewhere instead.
Quoting: Liam Squires-HandWhile you are rising a valid point, I don't see how that could happen. AUR packages can pull sources from anywhere and run any kind of script, and thus automated checks do not seem possible. And if they manually check them, well, they would just not be AUR packages, they would be normal packages.Quoting: BreizhThat's my point though - it *needs* some checks. Otherwise, the people responsible for keeping the AUR online become responsible for helping to spread malware. Just telling people to check whatever code or recipe isn't going to cut it.the Arch Linux AUR (Arch User Repository) needs some better security and package checks […] for some improvements to the packaging processes to prevent this from happening in future.Well, there is no check at all currently. The AUR is just a way for user to share what they use personnally, it shouldn’t be trusted.
People that use AUR recipes without checking them before can only be angry against themself, it’s like getting a random script on GitHub and running it blindly…
Of course, cleaning the AUR as it’s going now is a good thing, but Arch could simply close the AUR and ask people to share their PKGBUILDs elsewhere instead.
IMO they should implement a system to report packages, but other than that I think there's little they can do other than closing AUR entirely (and IMO that would be a great loss, I am currently using 54 AUR packages on my system, and I maintain 14 of them: https://aur.archlinux.org/packages?SeB=m&K=doragasu).
Also note that IMO this problem is not that big for power users using Arch, but for users of Arch derivatives that incorporate tools that automatically install and update software from AUR without the user understanding the risks. On standard Arch, for you to install an AUR packages you have to follow the wiki to manually build at the very least an AUR helper, and understand the risks.
Quoting: doragasuIf they cannot do any checks - that's just a glaring flaw in the entire design of the AUR and so yes - it should be shut. If it's just going to repeatedly be a huge security issue like this, then why should it exist? It's dangerous.Quoting: Liam Squires-HandWhile you are rising a valid point, I don't see how that could happen. AUR packages can pull sources from anywhere and run any kind of script, and thus automated checks do not seem possible. And if they manually check them, well, they would just not be AUR packages, they would be normal packages.Quoting: BreizhThat's my point though - it *needs* some checks. Otherwise, the people responsible for keeping the AUR online become responsible for helping to spread malware. Just telling people to check whatever code or recipe isn't going to cut it.the Arch Linux AUR (Arch User Repository) needs some better security and package checks […] for some improvements to the packaging processes to prevent this from happening in future.Well, there is no check at all currently. The AUR is just a way for user to share what they use personnally, it shouldn’t be trusted.
People that use AUR recipes without checking them before can only be angry against themself, it’s like getting a random script on GitHub and running it blindly…
Of course, cleaning the AUR as it’s going now is a good thing, but Arch could simply close the AUR and ask people to share their PKGBUILDs elsewhere instead.
IMO they should implement a system to report packages, but other than that I think there's little they can do other than closing AUR entirely (and IMO that would be a great loss, I am currently using 54 AUR packages on my system, and I maintain 14 of them: https://aur.archlinux.org/packages?SeB=m&K=doragasu).
Also note that IMO this problem is not that big for power users using Arch, but for users of Arch derivatives that incorporate tools that automatically install and update software from AUR without the user understanding the risks. On standard Arch, for you to install an AUR packages you have to follow the wiki to manually build at the very least an AUR helper, and understand the risks.
i wish official arch linux repos included packages that other distros do, even some arch based repos include apps like heroic launcher and vesktop. debian has vmtouch.
meanwhile arch repos have some half broken image viewers and similar abandonware, that should be removed
Quoting: doragasuAlthough certainly not perfect an automated hash check for known [malware signatures](https://github.com/Yara-Rules/rules) would greatly help.Quoting: Liam Squires-HandWhile you are rising a valid point, I don't see how that could happen. AUR packages can pull sources from anywhere and run any kind of script, and thus automated checks do not seem possible. And if they manually check them, well, they would just not be AUR packages, they would be normal packages.Quoting: BreizhThat's my point though - it *needs* some checks. Otherwise, the people responsible for keeping the AUR online become responsible for helping to spread malware. Just telling people to check whatever code or recipe isn't going to cut it.the Arch Linux AUR (Arch User Repository) needs some better security and package checks […] for some improvements to the packaging processes to prevent this from happening in future.Well, there is no check at all currently. The AUR is just a way for user to share what they use personnally, it shouldn’t be trusted.
People that use AUR recipes without checking them before can only be angry against themself, it’s like getting a random script on GitHub and running it blindly…
Of course, cleaning the AUR as it’s going now is a good thing, but Arch could simply close the AUR and ask people to share their PKGBUILDs elsewhere instead.
IMO they should implement a system to report packages, but other than that I think there's little they can do other than closing AUR entirely (and IMO that would be a great loss, I am currently using 54 AUR packages on my system, and I maintain 14 of them: https://aur.archlinux.org/packages?SeB=m&K=doragasu).
Also note that IMO this problem is not that big for power users using Arch, but for users of Arch derivatives that incorporate tools that automatically install and update software from AUR without the user understanding the risks. On standard Arch, for you to install an AUR packages you have to follow the wiki to manually build at the very least an AUR helper, and understand the risks.
Malware writers are a lazy bunch they tend to automate their injection and reuse code.
This at least limits their scale.
Quoting: GrishnakhNot panicking, for now, as I don't use npm or have any apps that do. But I agree with the sentiment: Oh dear.You don't have to use npm to be affected. If you use any of the affected aur packages and you updated them in the last week or so then you might want to check your repos.
It would be different if the AUR operated more like Gentoo where you have to build the packages yourself, but PKGBUILDs abstract almost all of the process away to the point where the AUR isn't just a place to share scripts, it's a repository of automated installs.
I hope the Arch community comes up with something that isn't just victim blaming newbies for not having their security dialed. The AUR is universally easily accessible and recommended with caveats that disavow responsibility. So Arch fans gave their fair warnings, sure, but then threw newbies to the wolves.
This will go down as AURgate
Although, this is pretty much why I don't mess with the AUR typically, it's too... laissez-faire, and me no likey.
Quoting: StellaThis highlights how AUR cannot be the future of Linux Desktop. It's totally unregulated, mostly limited to a single distro family (unless wrappers like distrobox are used), and requires a lot of user input (reading PKGBUILDs) as well as ensuring packages are up-to-date on the system at all times. In contrast, there hasn't been a single case of malware found on Flathub so far, mostly due to the strict requirements to publish on Flathub, and every app being manually reviewed before it's published. Also Flatpaks are available on every distro.Was anyone saying AUR could be the future of Linux Desktop? I don't think so.
Flathub has better security but it's not a great example for packaging for the Linux Desktop either. A huge amount of duplication and massive waste of disk space, which is the result of some flatpaks that require downloading enormous amounts of data, this needs to be addressed if flatpak is to succeed in any meaningful way, in my opinion.
Quoting: Liam Squires-Handthe Arch Linux AUR (Arch User Repository) needs some better security and package checks […] for some improvements to the packaging processes to prevent this from happening in future.That's like saying "people who can't swim can drown in the sea, so we should have every single access to the sea guarded and protected at all time".
That is insane...
for dir in ~/AUR/*/
do
dir=${dir%*/}
echo "${dir}"
cd ${dir}
cat PKGBUILD | grep $1
cd ~/AUR/
doneif you don't keep your AUR packages in ~/AUR/, you will need to change that in the code.
run it with `./<script-name>.sh <bad-package>`. so for this one, if you do `./script.sh atomic` and any of them print anything, you have been compromised. If none of them do, you're hopefully safe.
I'm sure you could probably do this more elegantly and if your AUR helper stores its packages predictably, you could also use it for that - but this is what I just made (and luckily none of mine are affected as far as I can tell) and it works for me.
It is worrying, and I'm torn - I find the AUR incredibly helpful, as it means that the only packaging system I have on my PC is pacman. AUR has filled every gap I've ever needed, compared to when I ran Ubuntu and had flatpak, apt, snap, manual `.deb` packages, and full git repos to compile from source. However clearly it is a flawed system, and this is a huge disgrace - I sincerely doubt the majority of users read through PKGBUILDs, so undoubtedly this is going to have some severe impacts. I'm also a little disappointed in the response, as I feel like there are systems they could have put in place to handle this quicker - like turning off all adoptions, for starters. Easier said than done though I'm sure.
Last edited by Turkeysteaks on 12 Jun 2026 at 7:41 pm UTC
Several helpers come with a feature that warns you about changes to a PKGBUILD, or .install script/additional files.
If you use an AUR helper, it's still wise to review build scripts just like any other bash script. Malicious edits are usually painfully obvious, even for someone who doesn't know much more than a line of code like myself.
The crux of the problem seems to be the post-install .install scripts that run after a package has been installed; people probably don't have the presence-of-mind to look at those too often, they just check the PKGBUILD.
Quoting: ExplosiveDiarrheaThat is not even remotely the same. It’s more like: this one pond is shark infested and they’re hungry so don’t enter.Quoting: Liam Squires-Handthe Arch Linux AUR (Arch User Repository) needs some better security and package checks […] for some improvements to the packaging processes to prevent this from happening in future.That's like saying "people who can't swim can drown in the sea, so we should have every single access to the sea guarded and protected at all time".
That is insane...
Anyway, the fact that the AUR clearly has no verification of any sort is very clearly a problem that needs to be dealt with properly.
Quoting: Liam Squires-HandIf they cannot do any checks - that's just a glaring flaw in the entire design of the AUR and so yes - it should be shut. If it's just going to repeatedly be a huge security issue like this, then why should it exist? It's dangerous.The AUR is basically a convenient wrapper around a forum where people share scripts to easily build software from source. It is dangerous in the same way that the Arch forums are dangerous. The Arch team should probably appoint some moderators to check the AUR, but then you get to the point where those people will have a really difficult time checking every single package. You're welcome to your opinion that 'it should be shut down', but I'd sooner say 'people shouldn't be using Arch (and derivatives) unless they understand the risks of the AUR and are willing to take responsibility for what they do on their computer'. Some may call that elitism, but to me it's like saying stores selling cooking supplies shouldn't be allowed to sell knives because people who can't handle them may injure themselves.
Quoting: tmtvlIt is dangerous in the same way that the Arch forums are dangerous.That comparison is interesting. The Arch team would never let some random new account edit the forum posts of an inactive user. So why are they letting them do it on the AUR? IMO the ophaning system should be eliminated entirely and abandoned PKGBUILDs archived or deleted. If someone wants to reintroduce an abandoned PKGBUILD they should have to write it entirely themselves as a new entry.
In special when both the aur webpage and the arch wiki are explaining that all AUR-Repositories are user-provided packages that aren't checked / monitored / reviewed?
The AUR is from / for the community, not maintained, no QA or anything else. If you use it you have to understand what's happening.
And - that's for all distributions and all operating systems: Never ever should one blindly install any software packages without a bare minimum of understanding what's going on with the installation script.
If you blindly trust your 'best budddy' and just click install - sorry not sorry.
BTW: arch itself and responsible derivates are forcing you to manually enable the AUR. Or - as for e.g. I handle it myself for 2-3 pkgbuilds - I download and build them manually on my computer. Regular updates are done with pacman, AUR-repos disabled. I'm on arch since 2005, btw
Quoting: doragasuAUR does not have package checks by definition, it puts that weight on the user.We all start off as beginners. You don't have to not recommend it. If you do recommend it, just explain the reasons for why someone would want to try Arch. Arch is for people who are interested in really learning how to do things on their own, and don't mind scraping their knees a bit by learning things the hard way. It's also good for people that just want to be aware of every package on a clean install.
As I always say, I have been using Arch as my main distro for 10+ years, and despite that (maybe because of that) I never recommend Arch!
My first distro was Slackware, and I reckon it's much harder to get into as a beginner than Arch is, especially during the mid 2000s. If I can learn my way through it, anybody can.



