• brucethemoose@lemmy.world
    link
    fedilink
    arrow-up
    8
    ·
    14 hours ago

    Yeah, they’re gonna have to change some policy. The 2-week ownership change for orphaned packages is just an obvious exploit now, but I’m sure more exist.

    • Ricaz@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      27
      ·
      2 days ago

      It’s a USER repository, where you literally download install files from unverified strangers.

      There’s a reason all the AUR helpers prompt you to verify all the files before they will build or install anything.

      • brucethemoose@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        14 hours ago

        It’s still hosted on archlinux.org.

        However “YMMV” the scripts are intended to be, they can’t host throngs of malware on their domain.

        …Well, I guess they could if they want to become the next npm, but it still seems like a legal liability.

        I’m not saying it should be taken down, but the status quo is definitely no longer acceptable.

      • fruitcantfly@programming.dev
        link
        fedilink
        arrow-up
        11
        ·
        2 days ago

        I wonder percentage of Arch users are actually capable of verifying that an AUR package is safe to install. I doubt that the number is very high, especially with the growing popularity of the distro

        • Ricaz@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          5
          ·
          1 day ago

          These days it’s very small. Most people just wanna use Arch because it’s cool.

          While I do wholeheartedly think it’s by far the best distro, I also frequently recommend Mint for newbies if they don’t enjoy learning on their own.

          • kieron115@startrek.website
            link
            fedilink
            English
            arrow-up
            1
            ·
            16 hours ago

            In my case you can unironically blame Valve. I wanted an Arch-based distro to stay as close to SteamOS as possible but I have an nvidia GPU for the foreseeable future (unless I win the lottery or something).

    • KassioAug@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      24
      arrow-down
      4
      ·
      2 days ago

      The entire philosophy of Arch is to put user in control. The PKGBUILD format is plain-text and reviewable. The documented best practice has always been to read the PKGBUILD and the .install files before building.

      I’m not saying they shouldn’t look into measures to make it less prone to such attacks, but “take it down” is a very stupid take. If people can’t deal with the existence of AUR, there’s plenty of different distros to choose already.

      • ZombieCyborgFromOuterSpace@lemmy.ca
        link
        fedilink
        arrow-up
        7
        arrow-down
        7
        ·
        2 days ago

        In control of installing malware?

        I get what you mean, but people are stupid. There needs to be guardrails to prevent these things from happening. That’s why the AUR is a bad idea and it should be shut down.

        You want your software to be available for a distro? Go through the proper channels. Submit it for review and get it approved. If you stop maintaining it, they remove it. Plain and simple.

        That’s why you don’t have this problem with other distros. Arch made it too easy to download and install unverified, untested, potentially malicious software through the AUR and now every idiot that thinks they know what they’re doing are infecting their systems.

          • fruitcantfly@programming.dev
            link
            fedilink
            arrow-up
            4
            ·
            edit-2
            14 hours ago

            AUR is not unique in being a user repository, but it seems somewhat unique in having basically zero oversight. Which is a bad idea for reasons that should be painfully obvious by now.

            For comparison, Gentoo’s GURU repository allows everyone to submit packages, but limits the ability to accept these submissions to a subset of trusted users

            • BB_C@programming.dev
              link
              fedilink
              arrow-up
              1
              ·
              14 hours ago

              All community projects are open contribution. Most non-community ones too. You know, almost the whole point of open-source!

              But that’s not the same as “user repo”, which is a wild west concept on purpose.

            • kieron115@startrek.website
              link
              fedilink
              English
              arrow-up
              1
              arrow-down
              1
              ·
              14 hours ago

              GURU bills itself as an official repository that’s user-maintained. AUR makes no claims of being official as far as I can see from their website.

                • BB_C@programming.dev
                  link
                  fedilink
                  arrow-up
                  1
                  arrow-down
                  1
                  ·
                  6 hours ago

                  It’s officially centrally hosting the non-pre-moderated non-official user contributed build-scripts, where “user” means literally anyone.

                  I’m not sure what argument you’re trying to “win”, and to what end. Or why do you think anyone would care about the manufactured confusion you’re trying to concoct.

            • Solemarc@lemmy.world
              link
              fedilink
              arrow-up
              2
              ·
              4 hours ago

              I don’t use any AUR packages, I don’t even have an AUR helper installed ATM, If it’s not in core/extra/multilib I use Flatpak. Generally I will go to Flatpak’s for userland apps, Krita and Firefox are both in extra (I think?) I still use the Flatpak’s for both. If I’m going to use the AUR I would generally prefer to just build from source.

            • moonpiedumplings@programming.dev
              link
              fedilink
              English
              arrow-up
              2
              ·
              edit-2
              3 hours ago

              Me!!

              I stopped using it a while ago, and I get all my non arch packaged packages from nixpkgs. Nixpkgs is bigger than the AUR and the Arch repos combined. It has pretty much all of the stuff I would have otherwise gotten from the AUR. But I find Nixos frustrating to use, so I stick to Arch.

              I felt extremely vindicated in my decision to avoid the AUR when the AUR malware happened.

        • KassioAug@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          5
          arrow-down
          2
          ·
          1 day ago

          There are some software that I only have because of AUR. For example, Brother printer drivers.

          AUR is a great option to have. It doesn’t mean people should use it for everything, when there’s a perfectly capable version of the same software downloadable from Arch, Flathub or even through Distrobox.

          Having options is a good thing, people just need to take care.

          In fact, downloading something from AUR without checking it is hardly more dangerous than adding PPAs in Ubuntu.

          • ZombieCyborgFromOuterSpace@lemmy.ca
            link
            fedilink
            arrow-up
            2
            arrow-down
            6
            ·
            1 day ago

            Hahahahaha they also come in Debian .deb and Fedora .rpm packages. That’s why I never got this problem with my hardware on Ubuntu or Debian.

            And no it’s not the same as PPAs.

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

              Hahahahaha they also come in Debian .deb and Fedora .rpm packages. That’s why I never got this problem with my hardware on Ubuntu or Debian.

              That is exactly why the AUR exists. To repackage that vendor’s .deb into something Arch can safely manage. This makes Arch support to 3rd party apps almost unbeatable.

              And you’re right: PPAs are not the same… in this regard they’re actually worse. AUR is at least in plain text and the documentation is clear: always check the PKGBUILD. When you add PPAs you’re blindly trusting a 3rd party repository and updating them with sudo.

              You can’t burn the whole thing down just because, in your own words, “people are stupid”. They either read the documentation and follow the security policies, or they stick with Arch and Flathub. Or, they can simply choose a different distro. It’s that simple.

              The thing is, I agree that AUR could have some sort of protection, such as a rate-limiting or a reputation system. But even as is, AUR is still an excellent feature that should definitely be maintained. And people, specially using Linux, definitely should educate themselves instead of exclusively rely on strangers for all their digital security.

              Edited for extra clarification.

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

                You completely missed the point.

                Debian or Fedora don’t need an AUR because vendors provide the packages themselves. And you know where they’re coming from. You have the largest collection of software packages available, plus the 3rd party official packages available to download.

                As for the PPAs, they’re often provided by the software distributor themselves. Like Proton, or Wine. Most of the time you know who’s providing the PPA. Ubuntu also keeps a close watch over these and will act if a malicious PPA is found. It won’t take a lot of time before the PPA is taken down to prevent the spread. So it’s relatively safer than a free for all repo where everybody is contributing and unmaintained packages get taken over. So, no. PPAs are not more dangerous than AUR.___

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

                  I didn’t.

                  Saying that Debian and Fedora don’t need an AUR because vendors provide packages, implying these distros are pratically immune to third-party malware is totally false. Fedora has COPR, openSUSE has OBS, and Ubuntu/Debian rely heavily on PPAs and random deb downloads from websites. See xz-utils: https://en.wikipedia.org/wiki/XZ_Utils_backdoor

                  Most FOSS developers do NOT have the time or infrastructure to package for every distro. They provide source code on GitHub. The AUR exists to translate that source (or a vendor’s deb) into a native Arch package. Furthermore, downloading a random deb from a vendor’s obscure website and installing it with dpkg (which runs pre-install scripts as root) is arguably less safe than a PKGBUILD that downloads the exact same binary from the vendor’s official mirror, unpacks it, and lets you read exactly what it does before you run it.

                  Your conception of PPAs is riddled of misconceptions. Absolutely anyone can create a PPA. Canonical does not verify the identity of the uploader beyond email confirmation. Launchpad is flooded with unofficial, community-maintained PPAs that are no more “official” than an AUR maintainer.

                  Also, Ubuntu does NOT proactively audit the source code or binaries inside PPAs. They takes a PPA down after it has been reported and confirmed malicious, exactly the same as the Arch maintainers do with the AUR.

                  A PKGBUILD is a plain-text shell script. You can read the exact source URL, the compilation flags, and the install commands. A PPA provides a pre-compiled binary file. You have pretty much zero idea what is inside that binary. Blindly giving sudo access to a binary PPA is objectively more dangerous than auditing a 20-line bash script that compiles source code before running.

          • ZombieCyborgFromOuterSpace@lemmy.ca
            link
            fedilink
            arrow-up
            4
            ·
            edit-2
            1 day ago

            Versatile, sure.

            But Arch is anything but simple. The proof is the number of Arch spinoffs that were made to make it easier to install and use.

            And any distro can be for competent Linux users. I mean, Linus Torvalds uses Fedora. I don’t think theres a more competent user than him.

            • abc@suppo.fi
              link
              fedilink
              arrow-up
              3
              ·
              1 day ago

              There’s conceptual simplicity and there’s UX. Arch is mostly the former.

    • 9tr6gyp3@lemmy.world
      link
      fedilink
      English
      arrow-up
      30
      ·
      2 days ago

      I respect your opinion here, but they will absolutely not shut down the AUR since its the reason anyone uses Arch. Just like how piefed.ca doesn’t shut down just because a few users upload illegal things.

    • ISO@lemmy.zip
      link
      fedilink
      arrow-up
      15
      arrow-down
      3
      ·
      2 days ago

      Yeah. The ArchLinux corporation must be losing money left and right because of this.

      Are they stupid?!

    • Lucy :3@feddit.org
      link
      fedilink
      arrow-up
      16
      arrow-down
      3
      ·
      2 days ago

      Anyone infected is at their own fault. Literally every single ressource and official statement is “read the diff of what you execute”, which would prevent 100% of the attacks.

      I’d rather not get cut off from my regular updates for some idiots who can’t read or think rules don’t apply to them. And yes, people who don’t understand the PKGBUILD format shouldn’t use the AUR on their own.

      • ZombieCyborgFromOuterSpace@lemmy.ca
        link
        fedilink
        arrow-up
        3
        arrow-down
        3
        ·
        2 days ago

        100%

        But this is the problem. It’s like if Microsoft provided Windows with Limewire as a solution to download software. There’s bound to be people who are going to exploit it for malicious reasons, and there’s bound to be idiots who are going to fall for it. Heck, there’s the possibility that even someone who knows what they’re doing might also get caught at some point.

        It’s dangerous and irresponsible.

        • black0ut@pawb.social
          link
          fedilink
          arrow-up
          3
          ·
          1 day ago

          Arch doesn’t come with the AUR “installed”. The AUR is a repository of user scripts that exists on the internet. The user chooses to download the scripts, or install an AUR helper to download them automatically. There aren’t even AUR helpers in the official Arch repos, so you need to go out of your way to install them.

          Let’s not take one out of Apple’s playbook and limit what a user can do for “their owm safety” and because most people “don’t know what’s best for them”.

          • ZombieCyborgFromOuterSpace@lemmy.ca
            link
            fedilink
            arrow-up
            2
            arrow-down
            2
            ·
            16 hours ago

            You kind of have to have guardrails though. Especially with the recent migration from Windows 11 to Linux, a lot of gamers, mostly younger and/or inexperienced users, are being recommended Arch via CatchyOS. And a lot of the advice they get involve enabling the AUR and getting their required software from there. Some of the troubleshooting documentation also provides instructions using the AUR. It may not come with Arch, but it sounds to me like it’s pretty indispensable.

            On the other hand, you have people saying that Arch isn’t for new users. That you have to be careful when using AUR and how dangerous it is. You have to know what you’re doing.

            So then why is it recommended so much? I feel like every other comment when people are asking questions on which Linux flavour to use the answer is always “just use Arch/just use X variant of Arch”. And when I talk about using another distro like Debian, people on Linux communities get really critical and ask “this distro sucks, why don’t you just use Arch/Catchy/X variant?”

            So which is it? Is it for everyone or not? Is it safe to use or not? Should anybody be using it or not?

            The comments are really conflicting with each other here.

            And honestly if we’re going to recommend Arch/Catchy/Whatever to new Linux adopters, there ought to be guardrails. Or don’t recommend Arch. And DON’T recommend using AUR. Try other workarounds instead of taking the easy AUR solution. You don’t simply give a loaded gun to someone who wants to do target practice without any precautions or anything to prevent them from hurting themselves or others. Maybe recommend an air-soft gun with some eye-protection goggles instead for target practice initially and let them learn the basics of firearm manipulation using that before moving on to the real deal.

            • black0ut@pawb.social
              link
              fedilink
              arrow-up
              2
              arrow-down
              1
              ·
              13 hours ago

              The AUR is not indispensable for Arch, and it is not recommended. The Arch Wiki itself says so, and it even recommends against AUR helpers, because it makes the AUR feel like any other official repo. Some Arch based distros do include AUR helpers by default, and that’s on them.

              Arch isn’t even that recommended, and it’s only mentioned above other distros in the gaming sphere because it usually has the freshest drivers and innovations due to being bleeding edge. It is also easy to install and easy to use, and for almost any issue you can consult the Arch Wiki or the Arch Forums.

              Either way, we should never limit user freedom in the name of making it “safer” for any user, and we shouldn’t be installing guardrails that limit what you can do with your OS. That’s the difference between Windows/Mac and Linux. Linux allows freedom, while the others limit it. The “guardrails” are already there, in the Arch Wiki, as a pretty visible warning. If a user doesn’t read the recommendations from the official wiki, that’s on them.

              As an aside, your gun analogy is not valid. A gun is a dangerous tool with which a user can hurt themselves, but also other people. Allowing freedom on a Linux distro is just a way of allowing the user to shoot themselves in the foot (like it has always been possible, one way or another, in every Linux distro). But it doesn’t allow the user to hurt others. Let’s not do these comparisons.

      • makeshift0546@lemmy.today
        link
        fedilink
        arrow-up
        9
        arrow-down
        22
        ·
        2 days ago

        Peak Linux nerd shit.

        People just want their updates to work and you’re out here screeching that users are holding it wrong and to read a bunch of diffs 🤣

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

          LOL!

          All these Arch fanboys just can’t accept ANY criticism of their favourite Linux flavour. “IT’S THE BEST OKAY? EVERYBODY SAYS SO! IT’S THE BEST BECAUSE IT’S HARD TO USE AND ALL THE SOFTWARE IS BLEEDING EDGE AND MY SYSTEM BREAKS HALF THE TIME I DO AN UPDATE BUT THAT’S NORMAL LINUX SHIT OKAY? AND I USE THE AUR BECAUSE I KNOW WHAT I’M DOING EVEN THOUGH MY SYSTEM IS INFECTED OKAY?”

        • Ooops@feddit.org
          link
          fedilink
          arrow-up
          13
          arrow-down
          1
          ·
          2 days ago

          No, it’s actual reality. There are more than a hundred thousand packages in the AUR. There are explicit warnings that these are user content and should be used with care.

          And now a miniscule percentage (~1%) of orphaned packages, so those with very little interest in, are taken over by some malicious actors to spread malware.

          And people suddenly pretend like this is a catastrophe for Linux (no one cares) and for Arch and it’s derivates (who don’t operate the AUR be definition and explicitly warn against using it without caution). If I told you that not 1, but 10% of the most obscure software packages you can download and install on Windows are pure malware, you wouldn’t even blink an eye. And yet all the morons now come crawling from their caves flooding everything with memes and bullshit of “haha, now we know you lied to us and Linux isn’t secure at all!”.

          • Lucy :3@feddit.org
            link
            fedilink
            arrow-up
            3
            ·
            2 days ago

            I think we should be proud. Linux is finally large enough to at least sort of get “hit” by a malware campaign, and it demonstrates the ease with which thousands of infected packages can be cleaned, because they are centralized to a few repositories. M$‘s only bet would be to update Defenders’ index and cross fingers that the signature doesn’t change.
            Windows malware is always way out of control of M$, while that’s also the norm of uninfected programs.
            Almost all Linux programs are by design installed from a central repo.

        • Lucy :3@feddit.org
          link
          fedilink
          arrow-up
          13
          arrow-down
          1
          ·
          edit-2
          2 days ago

          That’s like saying “i just want to bungee jump off this bridge” when the bridge is 10m above active traffic.

          This piece of infrastructure is not designed to work this way. It’s made for linux nerds. Not unknowing users. And I don’t see why the AUR should punish the former because the latter are ignorant. So either be able to understand and actively read the things you’re running or just don’t.

        • Undaunted@feddit.org
          link
          fedilink
          arrow-up
          8
          ·
          2 days ago

          There are plenty of other distros users can choose from, if they don’t want to deal with that. But picking one that is designed for advanced “nerdy” users and then ignoring those explicit warnings is just pure negligence.

            • Undaunted@feddit.org
              link
              fedilink
              arrow-up
              1
              ·
              13 hours ago

              Well, I dont. I’m fully aware of the footguns Arch based distros contain. I generally recommend Mint for Linux beginners. If the person is tech savvy and needs something for their gaming rig, then I might mention Bazzite.

        • Maddier1993@programming.dev
          link
          fedilink
          arrow-up
          3
          arrow-down
          1
          ·
          2 days ago

          Peak Linux nerd shit.

          Next thing you’re gonna tell me you eat random shit found on the road and it’s nerd bullshit to check if it’s safe or not.