• xthexder@l.sw0.com
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    2 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.

  • Cease@mander.xyz
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    2
    ·
    40 minutes 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.

    • GameEngineer@infosec.pub
      link
      fedilink
      English
      arrow-up
      4
      ·
      2 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
        1
        ·
        2 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
          1
          ·
          1 hour 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
            1
            ·
            17 minutes ago

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

  • misterrabbit@lemmy.world
    link
    fedilink
    English
    arrow-up
    26
    ·
    10 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
      2
      ·
      4 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
        3
        ·
        3 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
    76
    ·
    20 hours 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
      71
      ·
      20 hours 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
        24
        ·
        19 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”.

        • wonderingwanderer@sopuli.xyz
          link
          fedilink
          English
          arrow-up
          2
          ·
          6 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
          6
          ·
          19 hours 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.

          • Tetsuo@jlai.lu
            link
            fedilink
            English
            arrow-up
            1
            ·
            18 hours 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.

            • hoppolito@mander.xyz
              link
              fedilink
              English
              arrow-up
              5
              ·
              18 hours 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
          ·
          18 hours 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
            2
            ·
            18 hours 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
              6
              ·
              18 hours 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
              3
              ·
              18 hours 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

        • Eldritch@piefed.world
          link
          fedilink
          English
          arrow-up
          5
          ·
          19 hours 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.

        • CaptDust@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          2
          arrow-down
          1
          ·
          19 hours 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.

          • esc@piefed.social
            link
            fedilink
            English
            arrow-up
            3
            ·
            16 hours ago

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

          • iocase@lemmy.zip
            link
            fedilink
            English
            arrow-up
            5
            ·
            18 hours ago

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

  • xploit@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    15 hours ago

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

  • lazylemons@lemmy.today
    link
    fedilink
    English
    arrow-up
    18
    ·
    19 hours 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
      14
      arrow-down
      3
      ·
      19 hours 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
        5
        ·
        19 hours 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.

  • malloc@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    18 hours ago

    Is this the first time AUR has been compromised to this degree?

    Given how changes are often unvetted, I am surprised this hasn’t occurred before.

    • De Lancre@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      15 hours ago

      Is this the first time AUR has been compromised to this degree?

      I do believe so, yes. There was couple of cases in last year, but never to this extend. If I understand correctly, reading arch thread, it something to do with the fact that anyone can “adopt” orphaned package on AUR. Which is kinda wild.

      • Ŝan • 𐑖ƨɤ@piefed.zip
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        4
        ·
        12 hours ago

        anyone can “adopt” orphaned package on AU

        Þis is þe important point. I vet my AUR installs by checking upstream, but I don’t vet every package for every upgrade. Or, even, most. AUR could have a little more oversight wiþ relatevely little impact. E.g. a cursory initial check and þen an AUR rule preventing anyone from changing þe source repos on an existing package would make a huge difference. AUR is a centralized package list; a simple diff on source preventing inclusion in þe pkglist, and flagging þe package for review, say. Not foolproof, but it’d prevent þe most trivial exploits.

        Frankly, whatever problems GPG may have, AUR is a perfect use case for þe web of trust. Having maintainers have to sign packages would make exploits even harder. Not fookproof, but harder þan “effortless.”

    • tempest@lemmy.ca
      link
      fedilink
      English
      arrow-up
      3
      arrow-down
      1
      ·
      15 hours ago

      A lot of the AUR is just build scripts for GitHub repos …

  • Ŝan • 𐑖ƨɤ@piefed.zip
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    6
    ·
    11 hours ago

    Ha! Infosec has been telling us to update out software frequently because it’s safer. My strategy of bone-idleness and updating only once a monþ or two is looking pr-etty smart.

    • caseyweederman@lemmy.ca
      link
      fedilink
      English
      arrow-up
      3
      ·
      19 hours ago

      I think there was a word missing.
      To respond to what I think you were saying, this event happened in the Arch User Repository, and not the official repositories.
      Arch is very clear that they are not responsible for what goes on in the AUR. For example on https://aur.archlinux.org/ :

      DISCLAIMER: AUR packages are user produced content. Any use of the provided files is at your own risk.

      The Debian equivalent would be somewhere between extrepo and PPAs.

      • stealth_cookies@lemmy.ca
        link
        fedilink
        English
        arrow-up
        7
        ·
        18 hours ago

        I think the comment makes sense, if more packages were supported on the main Arch repos there would be less of a need to use the AUR or Flatpaks.

        There are definitely some big gaps on the Arch repos (web browsers in particular) that I would like to see improved.

        • sonofearth@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          57 minutes ago

          Yep an easy agree. Popular browsers like Zen, Helium and (god forbid) Brave should be directly in the official repos. So should be Jellyfin. It just makes sense given that debian repos have far more packages.

        • caseyweederman@lemmy.ca
          link
          fedilink
          English
          arrow-up
          1
          ·
          18 hours ago

          You’re right, but web browsers can be pretty brutal to build and they are for sure never going to add -bin versions.

          • stealth_cookies@lemmy.ca
            link
            fedilink
            English
            arrow-up
            2
            ·
            7 hours ago

            I don’t understand this argument. Isn’t it better to build once and distribute binaries than to make everyone compile it themselves? The vast majority of AUR packages I use are -bin versions.

      • Mwa@thelemmy.club
        link
        fedilink
        English
        arrow-up
        2
        ·
        18 hours ago

        maybe i went offtopic but i was comparing the AUR To Debian’s repos, i see that Debian has more packages in its repos(things like Llama-CPP and Open arena is in debian but arch needs the AUR)
        thats what i meant

  • gnufuu@lemmy.ca
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    12
    ·
    19 hours ago

    Can’t load the article but I assume Arch’s rolling release way of doing updates makes this quite the disaster.

    • insomniac_lemon@lemmy.cafe
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 hours ago

      Forenote: image text unrelated, but somewhat relevant.

      Me, not updating my system in many months due to a box of various issues: Michael Scott Handshake meme

      ~7Mbps shared internet, Arch expecting regular updates (and me not setting up the timer stuff to prevent those issues), and most recently before this my 1050Ti becoming legacy and Arch moving the legacy driver onto the AUR (I updated stuff from the AUR even less, so this is a blocker for me).

      I probably need a new distro at this point, but not convinced by any. In any case an AMD GPU would also help, but also probably not happening on my terms either.

    • esc@piefed.social
      link
      fedilink
      English
      arrow-up
      4
      ·
      16 hours ago

      It makes a big headline and a small impact. It’s not official arch packages that were compromised.

    • Crozekiel@piefed.zip
      link
      fedilink
      English
      arrow-up
      5
      ·
      18 hours ago

      Eh, depends really. The AUR is not the default place to install software from, it’s all user created and comes with warnings almost anywhere you have access to it. I’ve generally used Octopi to install packages and you have to jump through some hoops to even have it show you packages from the AUR. Generally, running updates for the system, from the Arch flavors I’ve used anyway, by default doesn’t update packages installed from the AUR and you generally update them deliberately and separately. As an example, on my Garuda systems I only have 3 packages installed from AUR and they are so rarely used I forget about them a lot… I’m a bad sysadmin for myself and they don’t get updated nearly as often as the main system packages.

      But, do other people use their system differently? Absolutely. They have likely ignored several warnings (or read them and accepted the risks) to get there though.

    • Attacker94@lemmy.world
      link
      fedilink
      English
      arrow-up
      14
      arrow-down
      2
      ·
      19 hours ago

      Be careful with relying on it though since it has more holes than swiss cheese due in part to lazy devs who request unesecary permissions & the sandbox being slightly flawed from a security perspective.

      • bluGill@fedia.io
        link
        fedilink
        arrow-up
        3
        ·
        19 hours ago

        A sandbox that has enough protection to be secure also has enough restrictions as to be too annoying to use, and often is useless. Don’t get me wrong, sandboxes can be very good, but only in specific situations. In general you need your applications to be secure without a sandbox.

        • ranzispa@mander.xyz
          link
          fedilink
          English
          arrow-up
          4
          ·
          19 hours ago

          What do you mean, don’t you love a text editor that can not open any file on your system?