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

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

    • tomkatt@lemmy.world
      link
      fedilink
      English
      arrow-up
      39
      ·
      edit-2
      9 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
      ·
      8 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
        ·
        7 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
          ·
          7 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)

    • Overspark@feddit.nl
      link
      fedilink
      arrow-up
      4
      ·
      9 days ago

      Yeah, paru makes it pretty easy to do, and can also build packages in a chroot, adding some extra security.

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

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

      • elucubra@sopuli.xyz
        link
        fedilink
        arrow-up
        1
        ·
        8 days ago

        I don’t know if it’s being done, but since AI is here to stay, and these sort of tasks seem to fit with their capabilities, maybe a group could carry out testing.

  • DonutsRMeh@lemmy.world
    link
    fedilink
    arrow-up
    44
    ·
    9 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
      73
      ·
      9 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
        60
        arrow-down
        2
        ·
        edit-2
        9 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
        6
        ·
        9 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
      37
      arrow-down
      1
      ·
      9 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.

      • bryndos@fedia.io
        link
        fedilink
        arrow-up
        3
        arrow-down
        3
        ·
        9 days ago

        yeah, you get choice, and its better than a random closed exe in windows.

        Some people have really odd expectations of “free” and “open”.

        Is there a choosingbeggars community to repost this to?

        Just make sure the aur wears a condom when it’s going to fuck you, like your mother told you.

    • Shareni@programming.dev
      link
      fedilink
      arrow-up
      17
      ·
      9 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.

      • Allero@lemmy.today
        link
        fedilink
        arrow-up
        7
        ·
        edit-2
        8 days ago

        Separately, through flatpak update.

        Or together with everything through other tools. I go with pamac, it can be used both in CLI and GUI and update and install everything at once - repos, AUR and Flatpak.

      • rozodru@lemmy.world
        link
        fedilink
        arrow-up
        3
        arrow-down
        2
        ·
        8 days ago

        generally when you want to install a flatpak it’s going to upgrade/update whatever other flatpaks you have installed before downloading and installing the new one.

        • Shareni@programming.dev
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          8 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
            ·
            7 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

  • pedz@lemmy.ca
    link
    fedilink
    arrow-up
    18
    ·
    9 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.

  • Maragato@lemmy.world
    link
    fedilink
    arrow-up
    11
    ·
    edit-2
    8 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.

    • yardratianSoma@lemmy.ca
      link
      fedilink
      arrow-up
      3
      ·
      8 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
    9
    ·
    9 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
    ·
    7 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
    ·
    9 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