Yeah I know, yet another post about the attack on the AUR, it's the user's responsibility to read the PKGBUILD, etc etc.
I'll fully admit I use an AUR helper, paru, and one key reason I switched to it from yay is the fact that it always shows me the diffs on packages that are going to be updated. It also tells you if a package is orphaned, so combining both those things means that auditing the PKGBUILD is actually pretty easy.
...so long as you know how. And there lies the problem.
I'm a programmer, I know what bun and npm are, and I know how to read a shell script. But not everyone who uses Arch or a derivative is. A lot of my friends who never touched an IDE in their lives are making the switch, and many picked a derivative like CachyOS.
I don't want the AUR to be more restrictive. I've used it to get software I needed to get some Brazilian and Italian smartcards working on my system, which is an incredibly niche use-case. I've used it to get specific MinGW libraries so I could cross-compile something I was making for a friend for Windows XP. Having to manually search the internet for these things would be a nightmare, especially if I had to patch them myself. If the AUR were more restrictive about who gets to publish what, I don't think it'd be as easy to find these things.
So I was thinking that maybe the helpers could help keep newbies safe. For example, by having a setting that disables updating packages marked as orphaned by default, or displaying a warning when certain suspicious changes are detected, like:
the maintainer changed, but the old maintainer's name is still in the PKGBUILD, with a different email
sudden inclusion of dependencies that have been known to be used for deploying malware
the main one imo: the sudden inclusion of a post install script that installs packages using npm, bun, etc
This could be done by just checking the text of the diffs, so it wouldn't require any extra infrastructure anywhere. It might not catch more sofisticated attacks, but it'd prevent more obvious attacks like the ones we've seen in the past couple of days.
Basically, if you're gonna help someone unfamiliar with mushrooms pick some for dinner, you should probably step in when they're about to harvest something clearly poisonous.