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: GrishnakhNot panicking, for now, as I don't use npm or have any apps that do. But I agree with the sentiment: Oh dear.The hit packages actually pulled in npm, which is then used to grab the malicious bits.
The methodology of the attacker seems like the most obvious way to attack the AUR. There are 15000+ orphaned packages on the AUR, where anyone can create an account and then adopt packages in mass. Then push updates and wait until someone who has the package installed with their AUR helper, maybe happens to be a bit sleep deprived that day, and just runs an AUR update without inspecting the PKGBUILDs too much.
AUR being user-generated content, unsupported, at your own risk, whatever... aside, this along with the compromised CEMU Linux AppImage makes me feel that the Linux desktop community is in for a real rude awakening when it comes to security that has been neglected in many ways. (even the XZ Utils backdoor was largely targeting servers!)
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.It seems the issue isn't that npm based packages got compromised, but rather npm was added to packages that don't generally need it. They are using npm *IN THE BUILD STEP* not adding it to your system.
Have a look at the list of packages in the thread, they cover a huge range of things.
The mailing list has a discussion on how to prevent this in the future. Hopefully some moderation process for adopting abandoned packages or even a limit on how many packages you can adopt in a set period, since the current process of nothing is insane. Adopting 400 packages in one go should be a major red flag for any moderator.
Quoting: mattaraxiaIt seems the issue isn't that npm based packages got compromised, but rather npm was added to packages that don't generally need it. They are using npm *IN THE BUILD STEP* not adding it to your system.For the malicious packages I saw, the "npm install" was put into a .install file that bundles a hook in the package that gets run after installing a package. So just by looking at the PKGBUILD itself, it's completely fine apart from that addition (and there are packages that do need legit post-install hooks!), and nothing malicious happens when you build the package with makepkg, typically not as root.
It's only when you try to install the package with pacman that it runs the post-install hook... Which happens to run as root! Quite insidious, and I would say this is really clever from the attacker, but in reality it was probably devised by some AI agent with access to the Arch Wiki's packaging documentation...
Quoting: ROllerozxaSo it *does* run on the system as a hook, not in the build step?Quoting: mattaraxiaIt seems the issue isn't that npm based packages got compromised, but rather npm was added to packages that don't generally need it. They are using npm *IN THE BUILD STEP* not adding it to your system.For the malicious packages I saw, the "npm install" was put into a .install file that bundles a hook in the package that gets run after installing a package. So just by looking at the PKGBUILD itself, it's completely fine apart from that addition (and there are packages that do need legit post-install hooks!), and nothing malicious happens when you build the package with makepkg, typically not as root.
It's only when you try to install the package with pacman that it runs the post-install hook... Which happens to run as root! Quite insidious, and I would say this is really clever from the attacker, but in reality it was probably devised by some AI agent with access to the Arch Wiki's packaging documentation...
Does it add npm as a dependency to the package then?
Either way though, every Arch user who's installed anything from AUR should look at the list. It's huge and covers a crazy range of things. I think I saw Window Maker and some COSMIC related stuff in there. Also a bunch of Perl and Python stuff that probably make the effective list much bigger, as other things depend on them.
Last edited by Stella on 12 Jun 2026 at 12:57 pm UTC
In the {package-name}.install it runs 'npm install atomic-lockfile axios got'
Even if the npm stuff may not seem immediately suspicious to a layman, all of the maintainers suddenly changing their contact details should.
Quoting: mattaraxiaSo it *does* run on the system as a hook, not in the build step?Yeah the ones I saw also added npm as a dependency to the package, which can be a red flag depending on what the package is about. If one is just using an AUR helper or does `makepkg -si` the difference isn't really whether it happens during build time or install time as the two happen at the same time, but there's a big difference in the privileges that the two run at.
Does it add npm as a dependency to the package then?
Then I also heard that the payload in the npm package itself apparently installs an eBPF kernel module if it is running as root to disguise itself ([link to analysis someone has made of the malware](https://ioctl.fail/preliminary-analysis-of-aur-malware/)), so it does not seem to be a coincidence they did it like that.
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.
Last edited by Breizh on 12 Jun 2026 at 1:15 pm UTC
Quoting: ROllerozxaWell that is so much worse. This may be one of the worst Linux malware campaigns I've ever seen that wasn't targeting specific enterprises, will catch a lot of, probably mostly, desktop users. I mean the apple-music-desktop package is in the list. All kinds of things like that.Quoting: mattaraxiaSo it *does* run on the system as a hook, not in the build step?Yeah the ones I saw also added npm as a dependency to the package, which can be a red flag depending on what the package is about. If one is just using an AUR helper or does `makepkg -si` the difference isn't really whether it happens during build time or install time as the two happen at the same time, but there's a big difference in the privileges that the two run at.
Does it add npm as a dependency to the package then?
Then I also heard that the payload in the npm package itself apparently installs an eBPF kernel module if it is running as root to disguise itself ([link to analysis someone has made of the malware](https://ioctl.fail/preliminary-analysis-of-aur-malware/)), so it does not seem to be a coincidence they did it like that.
I wonder if it will dent all the momentum Arch has right now.
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!
That's meta.
Npm itself suffers greatly from malicious package inserts.(they suffer from an install process with too much power and insufficient credentials protection)
Not sure if I have any of the packages that have bee compromised but I'd rather just be careful.
Quoting: ROllerozxaIt's default behavior for NPM poisoner.Quoting: mattaraxiaIt seems the issue isn't that npm based packages got compromised, but rather npm was added to packages that don't generally need it. They are using npm *IN THE BUILD STEP* not adding it to your system.For the malicious packages I saw, the "npm install" was put into a .install file that bundles a hook in the package that gets run after installing a package. So just by looking at the PKGBUILD itself, it's completely fine apart from that addition (and there are packages that do need legit post-install hooks!), and nothing malicious happens when you build the package with makepkg, typically not as root.
It's only when you try to install the package with pacman that it runs the post-install hook... Which happens to run as root! Quite insidious, and I would say this is really clever from the attacker, but in reality it was probably devised by some AI agent with access to the Arch Wiki's packaging documentation...
This is just one of the many NPM poisoners trying to experiment with something new.
Post and preinstall hooks have wayy to much power in their current implementation for little-curated environments.



