AUR Packages Compromised with Infostealer and Rootkit

(discourse.ifin.network)

79 points | by keyle 6 hours ago

11 comments

  • spystath 17 minutes ago
    Obviously installing anything from AUR must be done cautiously and there have always been sketchy (as in improperly built/packaged) packages in the past but seeing actively malicious injections is concerning. I think there are two main problems with AUR: 1. it is a remnant of a slightly more egalitarian era in the open source history when you could generally trust 3rd party code and 2. orphaned packages can be adopted by anyone with their full history and vetting intact.

    I think we are well past (1) but (2) could be mitigated by tighter controls on AUR accounts and potentially additional safeguards from AUR helpers. Maybe show a big scary warning if the package has changed owners recently. I know there will still be people that will "y" their way forward but it's better than nothing.

    Or just avoid AUR helpers altogether and inspect/build the packages you need yourself from their PKGBUILDs directly.

  • Retr0id 56 minutes ago
    I haven't used Arch for a few years now, but when I did the AUR was my favourite aspect.

    It was never perfect from a security PoV, but in 2026 this kind of trust model feels increasingly scary.

  • secret-noun 23 minutes ago
  • UI_at_80x24 1 hour ago
    Here's an easy script to scan for compromised packages:

    https://cscs.pastes.sh/aurvulntest20260611.sh

    Not my script. It's easy to read/parse. Never pipe a script directly to bash.

    • sph 52 minutes ago
      A quicker alternative:

        comm -1 -2 <(pacman -Qq | sort) <(curl -s https://gist.githubusercontent.com/quantenProjects/3f768dce7331618310f016d975bf8547/raw/beef579f8a8efeed6ccf60788e5b768775550095/packages | sort)
      
      It's never a bad time to learn about comm(1).
    • sva_ 1 hour ago
      It isn't guaranteed that the list is conclusive.

      Always check PKGBUILD and sources, AUR is not to be trusted for the most part. I'm actually more surprised that such compromise hasn't happened earlier.

      • matheusmoreira 52 minutes ago
        The Arch Wiki does note that malware has made it into the AUR several times before.
  • keyle 1 hour ago
    More news is coming out about this:

    https://www.phoronix.com/news/Arch-Linux-AUR-400-Compromised

    I toyed with the idea that someone should write a binary that simply emails, or alert you when it's been run... as a canary... and call that `npm`.

    At this point, not renaming the npm binary is a big risk.

  • nialv7 1 hour ago
  • lordleft 1 hour ago
    This is especially gnarly as more people have been picking up arch distros as of late (like CachyOS).
    • scary-size 56 minutes ago
      Installed CachyOS to replace my Win 10 installation a month ago. Not looking back! But yeah this sucks, I've mostly used Ubuntu with apt in the past. Pacman and makepkg felt a bit weird to use in the beginning.
  • sph 57 minutes ago
    Be aware of false positives! I found I had two of these packages installed, clang19 and compiler-rt19, but due to my recent laziness in updating my system, mine were still the versions from July 2025 from the official repos before they had relegated them to AUR.

    You can check the build and install date with `pacman -Qi <package>`.

    I run Arch Linux in a container (within Fedora Silverblue), but my plan for the future:

    - consider switching away from Arch Linux for my dev container, with great sadness. A rolling distro is a terrible idea in the current security climate. I loved using Arch for my dev container exactly because of AUR.

    - switch to Fedora Stable, perhaps the previous release which still gets security fixes but no other updates. I am still on Fedora 43, I guess I have no rush to update to 44. - be even lazier in updating my workstation. I used to update daily when I was running Arch, then I moved to weekly last year when I got stuck with slow internet, now consider updating monthly or more (of course, unless there are critical security bugs)

    - Flatpak and Flathub terrify me, it's only a matter of time until malware appears. I have had automatic upgrades disabled for a while.

    - for the love of God don't touch anything that uses npm

    Previously: https://news.ycombinator.com/item?id=48458931

    • reedlaw 3 minutes ago
      I also had an affected package installed, fortunately it was from the official repo before it was dropped and became an AUR package.
  • virajk_31 51 minutes ago
    AUR doesn't guarantee security, its upto the user to use AUR & verify before installing anything, its very evident why arch is not used in enterprise solutions.
    • fooqux 45 minutes ago
      It's not the AUR. It's the rolling release cycle, and probably even more importantly, lack of support options.
    • hootz 49 minutes ago
      Arch is not used in enterprise solutions because of the AUR? Can't you just not use it?
  • self_awareness 23 minutes ago
    How a person 'adopts' 408 packages and controls their build scripts?
  • QuantumNoodle 56 minutes ago
    Man, I never hear good security things about npm