• Technus@lemmy.zip
    link
    fedilink
    arrow-up
    49
    arrow-down
    1
    ·
    29 days ago

    Does anyone else manually review PKGBUILDs before installing or upgrading anything from the AUR?

    • tomkatt@lemmy.world
      link
      fedilink
      English
      arrow-up
      28
      ·
      edit-2
      29 days ago

      I do, but not as closely or as often as I should. Recent malware is a reminder to be careful, I think I was starting to take the AUR for granted as a repo when really it’s still the Wild West.

    • JackbyDev@programming.dev
      link
      fedilink
      English
      arrow-up
      6
      ·
      28 days ago

      Sort of, but I don’t know what I’m looking for. It would be nice if folks explained what a bad one looks like.

      • boomzilla@programming.dev
        link
        fedilink
        arrow-up
        0
        ·
        27 days ago

        I determine within the PKGBUILD (which I view from octopi) the URLs where code or binaries are downloaded from and then if those URLs seem trustworthy, e.g. how many stars or maintainers the github repo has. When the repo is small and doesn’t qualify for the latter criterias, I do a git clone and skim over the sources on the lookout for malicious URLs or strange code (never found anything in that regard). Also search for the package on https://aur.archlinux.org/ and look if other users have anything to say and how many votes it has.

        • JackbyDev@programming.dev
          link
          fedilink
          English
          arrow-up
          1
          ·
          26 days ago

          Is the PKGBUILD file the main source of truth? Like does every other file and URL it accesses get mentioned somewhere explicitly in there? (perhaps transitively)

    • 0xD@infosec.pub
      link
      fedilink
      arrow-up
      2
      ·
      28 days ago

      Also with paru. I mainly check that the download shows the correct URL and does standard stuff with it.

  • DonutsRMeh@lemmy.world
    link
    fedilink
    arrow-up
    33
    ·
    29 days ago

    I smell something fishy going on. I’ve been using the AUR for a long time and I’m now just hearing of malware?

    • Zikeji@programming.dev
      link
      fedilink
      English
      arrow-up
      57
      ·
      29 days ago

      There’s been malware in the past, not only that - AUR is user submitted. It’s in the name. They warn you to double check what you’re installing. It is functionally similar to running a random installer you found on GitHub.

      It seems like these instances are being intentionally blown out of proportion, but I don’t see what there is to gain by doing that.

      • kadu@lemmy.world
        link
        fedilink
        arrow-up
        40
        arrow-down
        1
        ·
        edit-2
        28 days ago

        It is functionally similar to running a random installer you found

        So basically how Windows users have been acquiring their software for the last 30 years.

      • DonutsRMeh@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        29 days ago

        I don’t want to say stupid things, but I have so many theories. I check the shit out of a package before installing it. I even go to the GitHub page and make sure of things.

    • Possibly linux@lemmy.zip
      link
      fedilink
      English
      arrow-up
      27
      arrow-down
      1
      ·
      28 days ago

      The AUR is made up of user packages

      It isn’t crazy that malware made it in. It is very much a “user at your own risk.” Packages are reviewed but sometimes things slip in.

    • Shareni@programming.dev
      link
      fedilink
      arrow-up
      18
      ·
      28 days ago

      It’s an obvious vector for malware, arch by default doesn’t come with it, and users have been warned the entire time to check pkgbuild. There’s nothing fishy, it’s just that arch has enough users to be worth it to hit it.

    • storm@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      2
      ·
      28 days ago

      I expect that with SteamOS being based on Arch there will be a bigger target on Arch for malware just from increased attention on the platform

  • pedz@lemmy.ca
    link
    fedilink
    arrow-up
    16
    ·
    28 days ago

    I’ve been using Debian for years and prefer deb based systems, but recently I messed a bit around with Manjaro, and the amount of packages only available from the AUR is, erm, remarkable.

    • prole@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      4
      ·
      28 days ago

      At risk of repeating myself from another comment here: you can access the AUR from other distros by making an Arch distrobox. It’s actually super easy.

      • pedz@lemmy.ca
        link
        fedilink
        arrow-up
        6
        ·
        28 days ago

        So, you can install malware on other distros from the AUR?

        Usually if the software I want is not on debian’s repos, I’ll try to get the source and compile it, or last resort, use an appimage. I’m not really fond of mixing different installation methods coming from different distros, but… it’s good to know.

        • Shareni@programming.dev
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          27 days ago

          Most maintainers are volunteers, but not all volunteers are maintainers…

          Besides the obvious non-package work, if you make a single pr for some random package and never again, you’re not a maintainer.

          The Nix ecosystem is developed by many volunteers and a few paid developers, maintaining one of the largest open source software distributions in the world.

          demanding work that we cannot expect to be done by volunteers indefinitely.

          https://nix.dev/contributing/how-to-contribute.html

          • iopq@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            26 days ago

            If you add yourself to the maintainer list in your PR you’re a maintainer, even if it’s a maintainer of a single package

  • Maragato@lemmy.world
    link
    fedilink
    arrow-up
    8
    ·
    edit-2
    28 days ago

    Aur is probably the main reason why many people use Arch and derivatives. However, many users are unaware that aur is not an official Arch repository and that, as you say, you are the one who has to monitor the pkgbuilds of each installed aur package. Normally the most used aur packages tend to generate more confidence but that does not prevent that package to include malicious software in a version change and having root access to the system can take control of certain system services. That’s why I always recommend not using Aur and that’s why I’ve always found Manjaro to be a great distribution, as it retains packages for a few days to check them and discourages the use of aur. Any security measure is too little and that’s why any security tool you can configure is advisable. In a rolling distribution where new code is constantly entering the system, it is essential to have selinux and secureboot enabled.

    • prole@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      28 days ago

      Aur is probably the main reason why many people use Arch and derivatives.

      FYI, non-Arch distros can use AUR with an Arch distrobox. So people shouldn’t be using Arch just for AUR.

      Being in a distrobox may or may not protect your system from potential malware, that I cannot say.

    • yardratianSoma@lemmy.ca
      link
      fedilink
      arrow-up
      1
      ·
      28 days ago

      It used to be my reason too, but after breaking my system by my own hand many times, I realized the aur isn’t worth the effort, for me at least.

      I’d rather build from source, for software that isn’t maintained in the repos.

  • Kalcifer@sh.itjust.works
    link
    fedilink
    arrow-up
    6
    ·
    28 days ago

    Is this post intended to be a sort of outcry around the idea that there’s a risk of malware being in the AUR?

  • dil@lemmy.zip
    link
    fedilink
    arrow-up
    2
    ·
    27 days ago

    Idk I love the aur, just check comments and dont grab whatever the fk you see, I also have flatpak support tho (uninstalled snap, felt like I wanted all options but it was mostly useless, id pick an appimage over snap for the one or two things not on flathub/aur) Nothing popular like rexuiz was on the snap store but also had an appimage.

  • odama626@lemmy.world
    link
    fedilink
    arrow-up
    4
    arrow-down
    3
    ·
    28 days ago

    Was there for 2 days before it was caught and they would of had to be manually installed?

    I think that’s much safer than any other platform I’ve heard of