News for hackers. Stuff that matters.
Re:Firefox-patch-bin, librewolf-fix-bin AUR packages contain... by jchoksi on Friday July 18, 2025 @03:27PM (#44608833)
AUR packages are user-produced content i.e. packages built on their own machines.

They have to be installed via "pacman -U package_file"

Arch developers can code "pacman -U" such that it performs a VirusTotal scan before installation for each package.

VirusTotal's API is free.

- https://docs.virustotal.com/docs/api-scripts-and-client-libr... - https://docs.virustotal.com/docs/please-give-me-an-api-key - https://docs.virustotal.com/docs/consumption-quotas-handled

Since it is end users who are doing the upload and virus scan check, there won't be a consumption quota issue with VirusToal.

Lastly, "pacman -U" should flag failed VirusTotal scans to Arch Security.

Arch's pacman and Flathub's flatpak package managers should be the last line of defence when installing untrusted packages by end users.

Re:Firefox-patch-bin, librewolf-fix-bin AUR packages contain... by Tharre on Friday July 18, 2025 @03:42PM (#44608969)
First of all, this is incorrect, the checking would have to happen _before_ even building the package since malware is already being executed at that point.

But more importantly this is a terrible idea in regards to privacy/infosec. I do not want packages I build and install myself to be uploaded to a 3rd party website.

And for what benefit? 99% of new malware won't be detected anyway, and once it is known it is way more effective to just remove the offending package from the AUR.

Re:Firefox-patch-bin, librewolf-fix-bin AUR packages contain... by jchoksi on Friday July 18, 2025 @03:55PM (#44609090)
> malware is already being executed at that point

To ensure reproducible / clean builds, I thought makepkg would always be run in a sandbox/chroot environment. The damage done would be localised to that sandbox.

> this is a terrible idea in regards to privacy/infosec.

Ok. Devs could setup an option to pacman -U which allows it to bypass VT for privacy sensitive people. This just puts the onus on you to not ensure you aren't installing malware. The default Arch user should still be protected while allowing for your privacy needs.

> 99% of new malware won't be detected anyway, and once it is known it is way more effective to just remove the offending package from the AUR

Its too late then. People are already affected.

Re:Firefox-patch-bin, librewolf-fix-bin AUR packages contain... by akerl_ on Friday July 18, 2025 @04:12PM (#44609280)
It seems like you may not be familiar with Arch?

No, makepkg doesn’t run in a sandbox. The system tries to stop you from running it as root, but otherwise all validation of the trustworthiness of the pkgbuild and any sandboxing of the build process are left up to the user. This is part of why pacman, the 1st party package manager, does not fetch from the AUR.

Likewise, it would be generally against the Arch ethos to have the default behavior of the package manager interact with a 3rd party service. If a user wants that action, they’d need to perform it themselves.

Re:Firefox-patch-bin, librewolf-fix-bin AUR packages contain... by Tharre on Friday July 18, 2025 @04:23PM (#44609390)
> To ensure reproducible / clean builds, I thought makepkg would always be run in a sandbox/chroot environment. The damage done would be localised to that sandbox.

makepkg runs in a fakeroot environment, but this is not a security barrier. There is also support for building inside systemd containers, offering at least limited security, but most AUR helpers don't use that yet.

> Ok. Devs could setup an option to pacman -U which allows it to bypass VT for privacy sensitive people. This just puts the onus on you to not ensure you aren't installing malware. The default Arch user should still be protected while allowing for your privacy needs.

You mistake the target group of Arch Linux. Users are expected to read the documentation and to know what they're doing. Protecting users from themselves at the expense of those who know what they're doing is not what Arch is about.

> Its too late then. People are already affected.

That doesn't make sense, it's too late for people if new malware isn't detected by VirusTotal as well.

Re:Firefox-patch-bin, librewolf-fix-bin AUR packages contain... by tojumpship on Friday July 18, 2025 @04:36PM (#44609548)
> Devs could setup an option to pacman -U which allows it to bypass VT

Goes against the very nature of the distro. I very rarely see assumed defaults in Arch, and they are almost always opt-in. Mind you, you need community provided helpers to automate AUR building, its that barebones and I'm sure there are people who manually build / use custom scripts to build every package.

Re:Firefox-patch-bin, librewolf-fix-bin AUR packages contain... by akerl_ on Friday July 18, 2025 @03:38PM (#44608926)
Is this accurate? My understanding is that the AUR does not host binary packages. It hosts pkgbuild files, which contain config and scripts that a user has to build on their own machine in order to install. The malicious code here is fetched as part of those scripts.
Re:Firefox-patch-bin, librewolf-fix-bin AUR packages contain... by johnisgood on Friday July 18, 2025 @03:57PM (#44609105)
No, it is NOT accurate.

Pacman cannot be used to download, compile, or install AUR packages. You need the PKGBUILD file and use "makepkg -si" at the very least. If you want AUR packages, you'd install a package manager (in this context referred to as AUR helper) like "yay" that supports both official and unofficial (i.e. AUR) packages.

TL;DR: Pacman does not download, compile, or install packages from the AUR, nor does it resolve their dependencies. "makepkg -si" builds and installs a package based on the PKGBUILD file, or use an AUR helper that overcomes the limitations of "makepkg". AUR helpers make it easy to install AUR (i.e. unofficial) packages.

Re:Firefox-patch-bin, librewolf-fix-bin AUR packages contain... by akerl_ on Friday July 18, 2025 @04:09PM (#44609237)
And even with 3rd party package managers like yay, the package manager is pulling the pkgbuild definition locally, running makepkg for you, and then installing that.
Re:Firefox-patch-bin, librewolf-fix-bin AUR packages contain... by johnisgood on Friday July 18, 2025 @04:14PM (#44609293)
Yeah, it is called an "AUR helper" officially because it just automates these processes for you.
Re:Firefox-patch-bin, librewolf-fix-bin AUR packages contain... by BearOso on Friday July 18, 2025 @06:15PM (#44610360)
And yay warns you before anything happens and prompts you to review the PKGBUILD files and any patches for this very reason. So there are at least two "are you sure?" confirmations needed before even building anything.

This is a situation where you have to go out of your way and be naive to be affected. You simply can't protect the user from everything.

Re:Firefox-patch-bin, librewolf-fix-bin AUR packages contain... by diggan on Friday July 18, 2025 @03:49PM (#44609045)
> Arch developers can code "pacman -U" such that it performs a VirusTotal scan before installation for each package.

AFAIK, VirusTotal only flags known malware/viruses, any new/"looks-to-be-new" stuff wouldn't be flagged until they've picked it up, and once someone would have picked it up, it should be removed from the AUR anyways. So you'd have at least one user (most likely more) getting infected first, and once detected more users wouldn't be able to install it regardless.

Re:Firefox-patch-bin, librewolf-fix-bin AUR packages contain... by jchoksi on Friday July 18, 2025 @03:58PM (#44609119)
> So you'd have at least one user (most likely more) getting infected first, and once detected more users wouldn't be able to install it regardless.

This is where your and my intentions differ. I don't want the average Arch user to be infected when it can be prevented because the malware is known about.

Re:Firefox-patch-bin, librewolf-fix-bin AUR packages contain... by diggan on Friday July 18, 2025 @04:01PM (#44609150)
> I don't want the average Arch user to be infected when it can be prevented because the malware is known about.

Me neither, my argument would be that VirusTotal won't stop the initial users from getting infected, so not good enough in my mind.

Re:Firefox-patch-bin, librewolf-fix-bin AUR packages contain... by icar on Friday July 18, 2025 @03:47PM (#44609020)
Just create a pacman hook before install that uploads the package there and aborts installation if necessary. Probably skipping repo packages is a good idea otherwise you're gonna spam the API each update.
Re:Firefox-patch-bin, librewolf-fix-bin AUR packages contain... by OsrsNeedsf2P on Friday July 18, 2025 @03:39PM (#44608945)
Between false positives, high QPS, and the fact malware devs would then test against Virus Total, is this useful?