On the 16th of July, at around 8pm UTC+2, a malicious AUR package was uploaded to the AUR. Two other malicious packages were uploaded by the same user a few hours later. These packages were installing a script coming from the same GitHub repository that was identified as a Remote Access Trojan (RAT).

The affected malicious packages are:

  • librewolf-fix-bin
  • firefox-patch-bin
  • zen-browser-patched-bin

The Arch Linux team addressed the issue as soon as they became aware of the situation. As of today, 18th of July, at around 6pm UTC+2, the offending packages have been deleted from the AUR.

We strongly encourage users that may have installed one of these packages to remove them from their system and to take the necessary measures in order to ensure they were not compromised.

Follow up

There are more packages with this malware found.

  • minecraft-cracked
  • ttf-ms-fonts-all
  • vesktop-bin-patched
  • ttf-all-ms-fonts

What to do

If you installed any of these packages, check your running processes for one named systemd-initd (this is the RAT).

The suspicious packages have a patch from this now-inaccessible Codeberg repo: https://codeberg.org/arch_lover3/browser-patch

The Arch maintainers have been informed of all this already and are investigating.

    • DirkMcCallahan@lemmy.world
      link
      fedilink
      arrow-up
      30
      arrow-down
      5
      ·
      19 hours ago

      This is why I felt uncomfortable when I first switched to Linux and kept reading that I didn’t need to worry about viruses as long as I didn’t click on dodgy links and only installed from trusted sources. I’m sure I’m betraying my lack of security knowledge here, but that always seemed a bit too easy.

        • caseyweederman@lemmy.ca
          link
          fedilink
          arrow-up
          16
          arrow-down
          1
          ·
          13 hours ago

          Half the posts on the Internet are people replying to requests for help with the message “read the wiki, the aur isn’t a trusted source, dummy”

        • copygirl@lemmy.blahaj.zone
          link
          fedilink
          English
          arrow-up
          92
          arrow-down
          2
          ·
          edit-2
          19 hours ago

          most of the the Arch cult forget to mention that

          The “Arch cult’s” holy book, the ArchWiki, states the following pretty clearly:

          Warning: AUR packages are user-produced content. These PKGBUILDs are completely unofficial and have not been thoroughly vetted. Any use of the provided files is at your own risk.

          Mention of one’s use of the AUR for their needs doesn’t need to come with a disclaimer.
          People who don’t read or don’t use their brain are going to keep not doing so, regardless.

        • slackness@lemmy.ml
          link
          fedilink
          arrow-up
          8
          arrow-down
          17
          ·
          19 hours ago

          At the very least aur must verify you are associated with the domain name of the project, same as flathub.

          • cole@lemdro.id
            link
            fedilink
            English
            arrow-up
            25
            arrow-down
            1
            ·
            16 hours ago

            that would literally defeat the entire purpose of the AUR

            • slackness@lemmy.ml
              link
              fedilink
              arrow-up
              1
              arrow-down
              8
              ·
              13 hours ago

              flathub still allows unverified submissions which is what I proposed. So, no, it wouldn’t.

              • aksdb@lemmy.world
                link
                fedilink
                arrow-up
                11
                arrow-down
                1
                ·
                12 hours ago

                AUR is the place for unverified submissions. The verified stuff typically ends up in the main repos.

                  • juipeltje@lemmy.world
                    link
                    fedilink
                    arrow-up
                    5
                    ·
                    edit-2
                    9 hours ago

                    It is. Aur isn’t even officially supported by arch. You use it at your own risk, with the advantage being that pretty much everything is in it.

      • Fecundpossum@lemmy.world
        link
        fedilink
        English
        arrow-up
        46
        arrow-down
        1
        ·
        19 hours ago

        The AUR, key words “user repository” is a specific weak point. It doesn’t have the same level of oversight that the main arch repo has. Stick to main repos and verified flatpaks and it’s very unlikely that you’d ever be compromised.

        Linux isn’t perfect, but it’s certainly better than windows where you just download executables willy nilly to install your software.

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

          BTW python’s package index has roughly the same problem - but a far less technical, experienced and critical user base. NPM has this problem since years.

          Expect these problems to rise with every percent more of new Linux users which never learned the difference between opening / viewing untrusted data, and running untrusted code, because Windows basically ignores this essential concept and Android tries to solve that with sandboxing each app.

      • Nibodhika@lemmy.world
        link
        fedilink
        arrow-up
        17
        ·
        19 hours ago

        That is sound advice, the AUR is most definitely not a trusted source though. For the normal arch repos the people who put the stuff there are known, they work for the project, you’re as likely to get malware from one of those as you are to read an article bashing gamespot in gamespot, the people in charge of putting the packages there are the ones with more vested interest in things working so they won’t knowingly introduce malicious code (plus it’s a handful of people who know each other by first name).

        The AUR is a different story, because anyone can put stuff there it’s very easy to have malicious code end up there. It doesn’t happen that often because most of the time it’s fairly obvious and it gets flagged straight away, plus if people start doing that people will migrate away from the AUR, so it’s a high risk low reward situation. But as more and more people start to use Arch derivatives that come with the AUR enabled without understanding any of this it becomes a more rewarding thing to exploit.

        • Dudewitbow@lemmy.zip
          link
          fedilink
          arrow-up
          9
          ·
          18 hours ago

          like git repositories, AUR in its name itself says what it is, a User repository. its trust like repositories is fully based on how much you trust the user who uploaded it

      • NuXCOM_90Percent@lemmy.zip
        link
        fedilink
        arrow-up
        11
        arrow-down
        1
        ·
        19 hours ago

        Yeah. The I’m A Mac crowd had the same problem… god damn it, two or three decades ago.

        As market share increases, platforms become a much bigger target for malware. And a lot of the “I don’t need to run virus scans” crowds learn the hard way.

        Its the same with open source. Obviously NOBODY around here would parrot this bullshit, but there is the idea that because something is FOSS it is safe. Code is only as safe as code review and there have been a few high profile cases of social engineering to get malicious code past even fairly rigorous review. Let alone “Well, that script is FOSS so somebody probably reviewed it” that we see so often.

    • bacon_pdp@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      16 hours ago

      Only for distributions which don’t do reproducible builds and require full and complete corresponding source code under an FSF approved license.

      If you choose to download binary blobs, good fucking luck.