← Back to context

Comment by spystath

7 days ago

Obviously installing anything from AUR must be done cautiously and there have always been sketchy (as in improperly built/packaged) packages in the past but seeing actively malicious injections is concerning. I think there are two main problems with AUR: 1. it is a remnant of a slightly more egalitarian era in the open source history when you could generally trust 3rd party code and 2. orphaned packages can be adopted by anyone with their full history and vetting intact.

I think we are well past (1) but (2) could be mitigated by tighter controls on AUR accounts and potentially additional safeguards from AUR helpers. Maybe show a big scary warning if the package has changed owners recently. I know there will still be people that will "y" their way forward but it's better than nothing.

Or just avoid AUR helpers altogether and inspect/build the packages you need yourself from their PKGBUILDs directly.

There was never an era in which #2 was a reasonable policy.

  • The canonical answer to any concerns with the AUR is always “just read the PKGBUILDs bro”

    • For every single update, for all your AUR packages, all the time.

      You know that thing where if you make a security review feature obnoxious, after some time people will just accept everything without even looking? Yeah...

      11 replies →

> Or just avoid AUR helpers altogether and inspect/build the packages you need yourself from their PKGBUILDs directly.

The AUR helpers actually make it easier to integrate the review step into your workflow IMO; they actively prompt to review and let you know when a change is present since you last accepted the risk.

But "AUR considered harmful" is not a novel take. Everybody using it should understand the risk here, it's really just one step removed from curl/bash'ing something you found on StackOverflow.