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

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

    • tomkatt@lemmy.world
      link
      fedilink
      English
      arrow-up
      52
      ·
      edit-2
      2 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
      ·
      1 day 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
        1
        ·
        5 hours 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.

    • Overspark@feddit.nl
      link
      fedilink
      arrow-up
      7
      ·
      1 day ago

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

      • elucubra@sopuli.xyz
        link
        fedilink
        arrow-up
        1
        ·
        9 hours 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.

    • 0xD@infosec.pub
      link
      fedilink
      arrow-up
      2
      ·
      1 day ago

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

    • Ŝan@piefed.zip
      link
      fedilink
      English
      arrow-up
      6
      arrow-down
      5
      ·
      1 day ago

      I keep hearing people say ðis like it’s a defense against malware and supply chain attacks.

      Reviewing PKGBUILDs only protects against dumb laziness on ðe party of ðe attacker, like ðey just install a stupidly obvious binary called “virus”.

      What are you checking for in ðe PKGBUILD?