• KassioAug@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    5
    ·
    2 hours ago

    I was starting to get too confident in AUR. Thankfully I wasn’t affected. Just replaced all possible AUR packages to their respective Arch and Flatpak alternatives, with exception of very few or from the ones I had no option. But will definitely check before updating them, and will only install AUR packages as a last resort.

  • Cease@mander.xyz
    link
    fedilink
    English
    arrow-up
    21
    arrow-down
    4
    ·
    10 hours ago

    I think a lot of people are confusing what the AUR actually IS. It is NOT the official package repository used by Archlinux - it’s more like a bunch of community install scripts for stuff that isn’t officially supported yet - for popularity or other reasons.

    So for all those people complaining and saying “debian does it better” it’s very likely that you would not even HAVE a package to install and would have to come up with a build script on your own - the AUR allows you to skip this and instead just verify that the script itself isn’t malicious, which is usually fairly obvious.

    A lot of people here seem to be under the impression that all of this effort should be abstracted for them - but that’s what you chose when you left windows - a system that you control intimately with a necessitation to actually do some upkeep yourself because a giant company isn’t doing it for you.

    In other words. RTFM and stop expecting other people fix all your problems for you, because that’s exactly how windows got to how it currently is.

    • Jjakef96@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      11 minutes ago

      I haven’t been on my PC that much this week, just Friday night. And our D&D group uses Discord so I needed to make sure it was up to date to ensure it would run. I typically just do a, “sudo pacman -Syu” and that seems to update what I need.

      If that is the only thing I did with the PC during this window, is there any concern?

    • ExLisper@lemmy.curiana.net
      link
      fedilink
      English
      arrow-up
      6
      arrow-down
      2
      ·
      7 hours ago

      it’s more like a bunch of community install scripts for stuff that isn’t officially supported yet - for popularity or other reasons.

      I’m looking at the list of affected packages and many of them are in official debian repos. Isn’t the issue then that the official Arch repositories don’t have many packages and people have to use less secure sources? That still sounds like an Arch issue to me.

      • HaraldvonBlauzahn@feddit.org
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        45 minutes ago

        Isn’t the issue then that the official Arch repositories don’t have many packages …?

        Not at all. The official Arch distribution has tens of thousands of packages and the user repository / AUR probably more than 100,000 .

        Edit: I looked it up:

        • According to distrowatch.com, the Arch Linux distribution has over 17,000 packges by now
        • Meanwhile, the number of packages in the Arch User Repository is 114,000 .
      • Billegh@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        arrow-down
        1
        ·
        4 hours ago

        Just because there is an official package doesn’t mean someone can’t make an aur one with the same name, or with common misspelling.

      • flying_sheep@lemmy.ml
        link
        fedilink
        English
        arrow-up
        7
        ·
        7 hours ago

        Arch actually has a large amount of official packages. Maybe some of the packages you’re referring to are just slightly renamed or alternate versions?

        It’s possible that in some areas it has fewer packages of course (e.g. Debian might repackage a larger subset of PyPI as Python packages), but I need the AUR for very few things.

    • prole@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      2
      ·
      8 hours ago

      A lot of people here seem to be under the impression that all of this effort should be abstracted for them

      Wouldn’t this just make it harder to detect?

  • Kazel@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    2
    ·
    7 hours ago

    Look how every motherfucker complains about arch and the aur but not that their distros blindly use it without contributing back and even suggest to blindly trust it. these same people now complain the aur is to complicated. Never go full retard guys

  • niva@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    9 hours ago

    Wow, I have 229 AUR packages installed but none of them is on the infected list!

    Am I just lucky?

    • texture@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 hours ago

      i have a few machines and lots of aur packages and none of mine have a single hit either

      • onnekas@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        2
        ·
        4 hours ago

        How do you guys check against that list? Especially when people have so many aur packages. I simply searched the list for each package manually but I only have 5. Do you write scripts?

        • flying_sheep@lemmy.ml
          link
          fedilink
          English
          arrow-up
          2
          ·
          2 hours ago

          So far I’ve just checked the diff of every package update. But with that many, I think we should maybe start using using the script provided in the article that you evidently didn’t read.

          • onnekas@sopuli.xyz
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 hour ago

            I read another article before which did not mention the script but only listed all affected packages. So yeah I should read this article :)

  • xthexder@l.sw0.com
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    1
    ·
    12 hours ago

    Not even having npm installed as a system package feels like a personal win right now. I’d like to think I would have caught this due to the number of dependencies it would introduce to my system. node_modules seems like it’s been the source of most of the recent CVEs I’m hearing about.

    • KassioAug@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 hours ago

      Nope. Distrobox does not offer any meaningful protection, since its purpose is to integrate with the system. It’s basically meant to make downloading and managing packages from different distros, on the same system, much easier… but it’s not meant to protect and isolate your device the same way that Flatpak or other type of containers do. That baing said, stop relying on Distrobox as a safety measure, and check your recently installed and updated packages since 9th June, to make sure you were not infected.

  • jason@discuss.online
    link
    fedilink
    English
    arrow-up
    1
    ·
    9 hours ago

    So, I’m totally fine because I always manually install from the AUR? This is more of a problem for people using those AUR helpers that make a package manager out of it, right?

    • KassioAug@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 hours ago

      No. If it came from AUR, it doesnt matter the method you used. You should check all the AUR apps you recently updated (from 9th to 12th June), and compare it to the lists. Only AUR though… Arch official repos are not affected by it.

  • misterrabbit@lemmy.world
    link
    fedilink
    English
    arrow-up
    38
    ·
    20 hours ago

    Been saying for years that people need to stop treating the AUR like a repo, when it’s more akin to curl installscript.sh | bash.

    • Cethin@lemmy.zip
      link
      fedilink
      English
      arrow-up
      8
      ·
      13 hours ago

      But it is a repo. It’s just an unofficial one. I don’t know how you use it without understanding this. It’s not far from perfect, but it is useful.

      • gergo@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        arrow-down
        1
        ·
        12 hours ago

        the problem is exactly the fact that it is a repo; it introduces a layer of unknown between the dev and the user. and the user will unavoidably “trust” it (especially when it’s listed amongst official repos in e.g. the graphical version of Pamac), without understanding the risks.

  • Tetsuo@jlai.lu
    link
    fedilink
    English
    arrow-up
    84
    ·
    1 day ago

    I hope all the Arch based distros will do a proper post to inform their users on how to cleanup afterwards.

    I’m hoping at least cachyos, the distro I use, will tell me exactly how to check and clean my system.

    I remember that when I installed a few of my AUR package, I was well aware that this repo was pretty much unregulated and that I just have to trust it’s safe. So I made sure to only use AUR as a last resort. But there was warnings on cachyos that were displayed to tell me to be cautious about it so that’s at least a positive.

    • yesman@lemmy.world
      link
      fedilink
      English
      arrow-up
      79
      ·
      1 day ago

      The article has instructions to do exactly that.

      Users who regularly install AUR packages should take the following steps immediately:

      Run pacman -Qm to list all foreign (AUR) packages installed on your system and cross-reference against the published list of compromised packages

      Audit recent PKGBUILD history for any packages installed between June 10–12, 2026

      Rotate all credentials — browser passwords, SSH keys, API tokens, and cloud access keys — if any flagged package was installed

      Scan for suspicious processes masquerading as kernel threads using tools like rkhunter or chkrootkit

      Consider using AUR helpers with PKGBUILD review prompts enabled by default.

      The Checklist of infected packages

      • Tetsuo@jlai.lu
        link
        fedilink
        English
        arrow-up
        27
        ·
        edit-2
        6 hours ago

        Ok, but I was expecting something a bit more automated then opening a list of package in kate and comparing it to my list of installed AUR package… Plus it’s 400 package so that’s a lot of things to check and plenty of space to miss one package by manually checking.

        But I get it I’m lazy and just need to script something myself. This is affecting so many people I thought we would have a script to check quickly if you are “infected”.

        Edit : thanks for the numerous script sent as reply ! But I’m all set now, thanks !

        • wonderingwanderer@sopuli.xyz
          link
          fedilink
          English
          arrow-up
          4
          ·
          15 hours ago

          It’s at the bottom of the doc:

          echo "Checking for infected AUR packages (${#INFECTED_PKGS[@]} total)..."
          echo
          
          found=()
          for pkg in "${INFECTED_PKGS[@]}"; do
              if pacman -Qi "$pkg" &>/dev/null; then
                  found+=("$pkg")
              fi
          done
          
          if [[ ${#found[@]} -eq 0 ]]; then
              echo "Clean: none of the known infected packages are installed."
          else
              echo "WARNING: ${#found[@]} infected package(s) found:"
              for pkg in "${found[@]}"; do
                  echo "  - $pkg"
              done
          fi
          

          Not sure why it uses -Qi instead of -Qm since there’s no point in scanning pacman packages, but I’m no expert

        • Holytimes@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          7
          arrow-down
          1
          ·
          1 day ago

          how many aur packages do you have? Most people i know have like AT MOST 20 or so packages from the aur. Which takes less then 2 mins to manually check against the list.

          • BurgerBaron@quokk.au
            link
            fedilink
            English
            arrow-up
            2
            ·
            7 hours ago

            I try to not use any, I have 6 and 4 of those are maintained by the developer, not some rando.

            One I really dislike is that CachyOS when you install their gaming software bundle…it uses the AUR version of Heroic Games Launcher instead of their own repo and CachyOS does not maintain the Heroic AUR AFAIK. I guess because AUR updates more frequently than their own repo? I think it’s bad practice.

          • Kjell@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            ·
            9 hours ago

            I have much more than 20 packages in aur, most of them are dependencies from steam-native-runtime. Since steam is popular, I can understand that many have more than 20 packages.

            Now when I was reading the ArchWiki I saw that it is mentioned as an alternative, so I assume I can remove steam-native-runtime and all dependencies. Perhaps the instructions have been updated or I googled for instructions and found another page. But there could be other popular packages with many dependencies.

          • Tetsuo@jlai.lu
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 day ago

            I’m not home for a few days so I can’t check yet.

            But I think I have something like 3/4 packages at the most.

            But I need to compare that to a 400+ list I’m not sure I agree with you it’s that easy to do rigorously.

            • shelf@piefed.social
              link
              fedilink
              English
              arrow-up
              1
              ·
              5 hours ago

              you only need to check your 3 or 4 packages to see if they were installed/updated during a certain date range.

              • Tetsuo@jlai.lu
                link
                fedilink
                English
                arrow-up
                1
                ·
                5 hours ago

                Considering I haven’t been home since the 6th of June, I assume I probably couldn’t have been infected. But I will still do a thorough check when I get home next week.

            • hoppolito@mander.xyz
              link
              fedilink
              English
              arrow-up
              5
              ·
              1 day ago

              Not sure I understand - if you only have 3-4 packages you can just search for them specifically in the long list?

              Even if you have 50 or 100s of packages, bash makes it pretty doable

              comm -12 <(sort -u file1.txt) <(sort -u file2.txt) > common.txt
              

              Should spit out only the packages appearing in both lists (done by memory so may not be 100%)

        • NebulaNymph@programming.dev
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 day ago

          I haven’t used kate but does it not have some sort of easy search?

          ex. pacman -Qm to list AUR packages; should display the 3/4 pkgs you have installed. Then just search in kate for those 3/4 results?

          Alternatively cat & grep in the terminal is pretty straight forward.

          That is if it’s 3/4 pkgs that are from AUR, but if someone has hundreds installed that is a bigger issue on its own.

          • Tetsuo@jlai.lu
            link
            fedilink
            English
            arrow-up
            2
            arrow-down
            3
            ·
            1 day ago

            Am I missing something ?

            Just because I have 3/4 package on my system doesn’t mean the 400+ list of affected package gets shorter on the other side…

            I’m actually pretty cautious with AUR and I only install them when there is no other options.

            • m4ylame0wecm@lemmy.zip
              link
              fedilink
              English
              arrow-up
              9
              ·
              1 day ago

              Especially for a small list, 3-4, that you actually need to check, what’s the actual issue? Open list of 400, ctrl+f for the few names you care about, move on.

            • shweddy@lemmy.world
              link
              fedilink
              English
              arrow-up
              5
              ·
              1 day ago

              I was just curious because I didnt think it was so tediuous to check against an alphabetical list on a website using ctrl+f. But thats just me. It took me less than a minute to check my 8 aur packages against the list

        • flying_sheep@lemmy.ml
          link
          fedilink
          English
          arrow-up
          1
          ·
          6 hours ago

          Arch usually doesn’t re-package Python packages that aren’t needed for something else, meaning they end up in the AUR. I maintain several there, and when I stop using them I abandon them. I wouldn’t be surprised if some of the ones I used to maintain are on the list

        • Eldritch@piefed.world
          link
          fedilink
          English
          arrow-up
          6
          ·
          1 day ago

          Yeah, Python has been a massive vulnerability for a long while. And the AUR has similar issues. This is only getting widespread coverage now. But it’s always been a risk.

          • HaraldvonBlauzahn@feddit.org
            link
            fedilink
            English
            arrow-up
            1
            ·
            9 hours ago

            Yes, we need a kind of Debian for Python.

            Part of the solution could be the Guix package manager. Part could be the commercial offerings, like Anaconda.

        • CaptDust@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          3
          arrow-down
          1
          ·
          1 day ago

          Well, those are mostly extension libraries, stuff “normally” installed using pip. Arch is kind of unique that they encourage using system aur over pip, npm and other package managers. While it is a big radius, none of the python packages stick out to me, but maybe I just haven’t encountered the popular ones.

          • iocase@lemmy.zip
            link
            fedilink
            English
            arrow-up
            5
            ·
            1 day ago

            The attackers specifically targeted orphaned projects on AUR so it’s no wonder most of those aren’t familiar to us.

          • esc@piefed.social
            link
            fedilink
            English
            arrow-up
            3
            ·
            1 day ago

            It isn’t really all that unique? Debian does it, el does it, probably almost any popular distro?

    • HaraldvonBlauzahn@feddit.org
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      38 minutes ago

      Are you aware how github works, or open source development in general ?

      Some users are developers, too.

      Some people write code, others may try it out, and a few of the latter might help with developing it. And some of these efforts become popular.

      That’s how we have Linux or KDE.

      It is all based on open sharing.

      And of course you can opt to not run code that you don’t know, or don’t understand , or don’t trust.

    • GameEngineer@infosec.pub
      link
      fedilink
      English
      arrow-up
      9
      arrow-down
      1
      ·
      11 hours ago

      So what would the alternative be? If the resources or desire don’t exist to make a package official, how else would you install it?

      • BlackLaZoR@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        arrow-down
        4
        ·
        11 hours ago

        You’re missing the point entirely. I’m talking about inspecting the scripts not about making packages

        • GameEngineer@infosec.pub
          link
          fedilink
          English
          arrow-up
          12
          arrow-down
          1
          ·
          10 hours ago

          Sorry if I was unclear. You usually don’t inspect the install scripts for official packages since you put the trust in the official team. You don’t trust(or at least shouldn’t) AUR packages, hence you should inspect the install script for those packages. I don’t really see what the alternative would be.

          • BlackLaZoR@lemmy.world
            link
            fedilink
            English
            arrow-up
            2
            arrow-down
            4
            ·
            10 hours ago

            Well, the alternative would be for moderation team to inspect them, with clear signaling of which scripts are trusted and which aren’t.

            • HaraldvonBlauzahn@feddit.org
              link
              fedilink
              English
              arrow-up
              10
              ·
              edit-2
              8 hours ago

              But this is exactly what the top comment of Cease talks about: There is no moderation team. You seem to think that it is the job of the maintainers of the Arch Linux distribution is to vet and review the AUR packages. But they take care for the - much more widely used - Arch distro packages and are busy with this. They have enough to do. And the AUR packages are not part of the Arch distro.

              The AUR is basically a server where users can store their own packages so that others can use it. As its name says: Arch User Repository.

              • BlackLaZoR@lemmy.world
                link
                fedilink
                English
                arrow-up
                2
                arrow-down
                9
                ·
                9 hours ago

                There is no moderation team.

                And that’s why it’s fundamentally shit idea on so many levels. Instead of having one person to inspect let’s make every single user expert or not to inspect every package each individually. This is fucking retardation at its finest.

                • amda@feddit.nl
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  2 hours ago

                  There IS one person that inspect the code for everyone, that’s the package maintainer. But it’s a random voluntary contribution from some random person who you should not blindly trust. That’s the point of the AUR, one person makes it significantly easier to install for everyone. The point is to be better than installing directly from somewhere like GitHub. For actual good moderation there are officials repos

  • lazylemons@lemmy.today
    link
    fedilink
    English
    arrow-up
    19
    ·
    1 day ago

    I have always been nervous about this type of thing happening with the AUR. Thankfully many packages I used to need the AUR for have since added native versions or made flatpaks. I hope AUR users don’t have too many issues from this!

    • Holytimes@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      16
      arrow-down
      5
      ·
      1 day ago

      flatpaks arn’t any safer and with how poor the sandbox is handled by 99% of devs. Hell flatpaks have a new issue every other month. Its almost more often to see a new flatpak problem then aur problem.

      Its literally no safer in reality sure on paper its safer but reality has proven that flatpaks just are not some magical fix to this problem.

      Hell half the time when flatpaks do have issues they go unaddressed or fixed for months after they are found. While AUR problems get smacked real fucking fast after they are found.

      • Eldritch@piefed.world
        link
        fedilink
        English
        arrow-up
        6
        ·
        1 day ago

        The one positive with flatpak is that it allows for universal deployment. A lot of projects are providing official builds. But you are still relying on them to vet what they put in.

  • xploit@lemmy.world
    link
    fedilink
    English
    arrow-up
    8
    ·
    1 day ago

    Welp if nothing else at least this has helped me to replace jack1 with jack2 (out of my 4 total Aur packages)