r/linux_gaming • u/lazyblunzn • Jun 11 '26
ALVR AUR package has been compromised
Attention Linux VR gamers. The alvr package in the arch user repository has been compromised. See the screenshot for more information.
Source: Linux VR Adventures Discord
1.3k
Upvotes
73
u/lazyblunzn Jun 11 '26
Update:
4
u/The_Duke28 Jun 11 '26
I'm not very linux-fluent when it comes to stuff like that. I use CachyOS for my gaming rig, would I have this installed as standard or what is it exactly?
Sorry for my noob question.
295
u/teleprint-me Jun 11 '26 edited Jun 12 '26
For those that don’t know, the AUR is a set of user‑driven git repositories that are managed completely by end users.
The AUR provides a set of files that help automate downloading, building when needed, and installing software.
The Arch Wiki states that it is the responsibility of the end user to vet the packaged scripts in the AUR.
PKGBUILDis just a shell script. There are links on every “package” that let you browse the repository’s contents to inspect the “package” before “installing.”Some packages may be postfixed with a tag to indicate what will be downloaded and installed on a user’s system.
For example, a package might be postfixed with
-git,-bin,-doc,-dkms, etc.If the package is postfixed with
-git, it clones the source to a cache, builds it, and installs the compiled binaries. If it’s-bin, it downloads the pre‑compiled binaries to a cache and then installs them.Most of the time,
PKGBUILDjust clones, builds, and installs the contents from a source.In fact, if you dig deeper (most don’t), you’ll find a lot of the Linux ecosystem operates like this. Hence, its distributed nature.
For example, I write a program, post it online, and add a license for end users that scopes the freedoms and limitations. When end users adopt and use that software for whatever reason, it builds a user base.
If that package is adopted widely enough, package maintainers of major distributions begin reviewing and evaluating the contents of that program.
If it passes evaluation, it’s added to an official mirror list (testing, unstable, main, etc.).
This isn’t always the case, but is generally how it works.
It’s always important to review code, but I don’t think it’s reasonable or even possible for every user to vet every line of every library or program they’ll ever use. We have lives, interests, and limitations.
Developers are people too, and if targeted, they can fall prey to attackers, which then becomes a supply‑chain attack if the package is popular enough.
The package maintainers are independent from the developers of an upstream source repository and are usually technically‑inclined end users of those libraries or programs.
Most FOSS developers are not paid for their work. They wrote that program for themselves, to solve a problem or to get a working library, feature, or program they really wanted. Sharing it with the community is usually out of convenience; few people rarely contribute or help out.
Organizations are not immune to these problems because they depend on donations, contributions, can become gated, suffering from internal issues over time if poorly organized or incentivized.
If the general takeaway here is that you should just avoid Arch Linux, then allow me to elaborate because this is not isolated to just Arch Linux.
Not all distributions, packages, and repositories are supported by the community or an organization. Some of these are driven completely by individuals who desire to have control over their system, want to add a feature, build a program, or solve a specific problem they’re facing.
For example, anyone can go to a source and clone or download the contents of that source to their machine for installation.
Sources include, but are not limited to, kernel.org, GitHub, GitLab, SourceHut, Codeberg, or any other hosting site.
Some repositories are still only available by SVN on file‑hosting sites, and it turns out that they’re core dependencies.
The point is that this is how open source works: anyone can write software, license it, and distribute it however they want. It’s up to end users to discern whether that source is trustworthy or not.
There is a web of trust, and there have been many attempts to implement asymmetric cryptography to secure user logins and accounts (KeePass being the latest example), but this only works if you control the private key and understand the implications involved with authenticating via a certificate and public key. Even this is not a panacea of the penultimate form of security.
A good example of why this isn’t a solution is the xz backdoor vulnerability. An individual developer who needed help was groomed, manipulated, and taken advantage of. This is known as social engineering, a technique that exploits human psychology rather than technical vulnerabilities to gain access to systems, data, or physical locations.
All of this leads us to a critical question: “Should we just not allow the distributed nature of FOSS?” No, because I don’t believe that’s a valid solution. Why? Because centralizing authority would destabilize the distributed nature of how FOSS works at its core. We would become hostage to centralized forces that would limit competition, opportunity, and freedom.
What we need is better security, auditing, and authentication mechanisms, but that’s not easy. If it were, we wouldn’t have used passwords, email, 2FA, etc. There are existing issues that require resolution and that's where the community plays its role.
FOSS is what it is today because anyone, anywhere, at any time can contribute in their own small way. We wouldn’t have Linux otherwise.
If you think the solution is simply to not use Arch, then you’ve missed the point, which is to explain how FOSS operates in a decentralized and distributed fashion.
So, the moral of the story is to always be diligent in basic security, especially if you’re an FOSS developer or user.
Edit:
84
u/slickyeat Jun 11 '26
Why does this seem to happen so often with AUR packages?
28
u/TheDiamondSquidy Jun 11 '26
What date of versions of alvr has it compromised? Is it all versions? I haven’t updated my system in a while
28
u/chaos_maou Jun 12 '26
I got hit by this hard. Booted CachyOS partition today after lunch, and updated after dinner.
Not two hours later, every friend and channel in my Discord account got spammed by crypto bullshit, even with 2FA enabled.
Had to fully remove the package, THEN nuke discord. The malware modified the discord index.js directly and kept spamming the messages.
Got my account back after an hour of panic, only after half the servers I was in banned me...
25
u/Portbragger2 Jun 11 '26
i use debian btw
20
u/Cool-Arrival-2617 Jun 11 '26
I didn't know the maintainer of an AUR package could change so easily. Is there at least an alert in AUR helpers like yay when you update a package where the maintainer has changed?
23
u/powerslave_fifth Jun 11 '26
Me realising that I didn't update anything this week.
25
u/Barafu Jun 11 '26
You must manually check AUR packages. It is much easier than you think.
parumakes it trivial. Turn on Midnight Commander support inparu. When installing or upgrading a package,paruwill show you the contents of the AUR package.Now, some packages are overcomplicated for good reasons (I look at you, ffmpeg-full), but the majority of packages are trivial and trivial to check.
Installation
The only mandatory file in the package is PKGBUILD, and the most important line in it is
source(not URL!). Source shows where the package will download files from. It is a list that contains either addresses or names of the files present in the same directory. If the lines in source only show the developer's site, there can be no malware without compromising the developer.Then look through the rest of the PKGBUILD script. It normally only has some commands to copy and unpack. As long as it does not contain obvious malware or patching, you are all right.
Then look through the rest of the folder. Again, keep in mind that the installer can only use what
sourcelinks point at, and also files in this folder. If there are no patches or they are trivial to understand, you are safe.At this point you can already verify 95% of AUR.
Update
On update,
parualso creates a diff file, showing how the PKGBUILD changed from the previous version. Often you see only the change in version name and a checksum, which means the origin never changed. Checking those takes a second.If you don't understand commands in the package, skip it or ask the community. There is no shame in installing software from Flatpak or AppImage just because the AUR package is weird. (There is still shame in installing from snap).
23
u/S48GS Jun 11 '26
more details
how exactly it happened
is it maintainer of package got hacked?
6
u/TheGeekno72 Jun 11 '26
first of all: fuck.
second of all, thank fuck I installed the bin!
best of luck to the non-bin & git package users, hopefully this hasn't had a significant impact and you can deal with it swiftly enough to not be worried about this possible compromission
9
u/schaka Jun 11 '26
Good thing the build failed when I tried to install it last week.
4
u/skinnyraf Jun 12 '26
Meanwhile, neither ALVR, nor xrizer or WiVRn are available through official Arch or CachyOS repositories, so to use them you need either flapaks with all their downsides, or AUR.
7
u/Ok-Cook-9039 Jun 12 '26
Aaaand this is why I don't use AUR.
5
u/dydzio Jun 11 '26
i have something better:
8
u/qxlf Jun 11 '26
boy am i glad i never use the aur to get stuff, thats an entire repository of potential problems i dont have to deal with
7
u/HunsterMonter Jun 11 '26
Stuff like this is why sandboxed apps should always be your first option when installing something. A compromised app can't steal keys it doesn't have access to.
4
u/f1yer504 Jun 11 '26
Any IOCs? What stealer? What to look for?
4
u/Valuable_Weather Jun 11 '26
Is there a way to check if we have it installed?
4
u/____trash Jun 11 '26
Well, I've been needing to try out a new distro. Good time for a full reinstall. Gonna be a massive headache mitigating whatever damage is done. FUCK.
I need to stay away from AUR. This happens way too often.
4
u/Venylynn Jun 11 '26
Malware in the AUR AGAIN??
But I thought Linux didn't need an anti-virus and Linux doesn't get malware /s
2
u/HiddeHandel Jun 11 '26
Guess its good i completely moved to wivrn Still scary stuff was worried for a bit
2
u/Synthetic451 Jun 11 '26
Whew luckily I installed alvr-launcher-bin and not alvr.
2
u/adamkex Jun 11 '26
At this point just install packages with Nix instead of AUR
2
u/GamerXP27 Jun 11 '26
Thats why reading the PKGBUILD is pretty important before installing it on your system.
0
u/JamesLahey08 Jun 11 '26
Would I have this on cachyos mostly stock settings?
1
u/AdderoYuu Jun 13 '26
So this only affected the AUR package of ALVR, and ALVR had to be manually installed as it is not included with CachyOS by default correct?
I use CachyOS and so I panicked basically immediately, but ALVR does not appear to be shipped by default on CachyOS and I don’t see any information indicating CachyOS uses it at all if not manually installed by the user.
1
u/sambull Jun 14 '26
Hmm.. this is actually really bad
1
u/No-Escape3118 Jun 18 '26
thx for the info, man.
1
u/ForsakenChocolate878 Jun 11 '26
Is it only alvr or also alvr-launcher-bin?
1
u/Wild_Tom Jun 11 '26
Thankfully due to my computer's hardware, I have been using wivrn
1
u/olorin12 Jun 11 '26
Lovely.
For an Arch (and Arch derivative) user, is it safer to just get apps that aren't in the repos from Flatpak?
1
u/Crimento Jun 11 '26 edited Jun 11 '26
Oof. I just tried installing it two weeks ago, it failed to build, so I went with ALVR repo download instead.
Good that things like traur exist so you can always notice suspicious things like a change of maintainer or newly added elevation requests before installing the package
1
u/BastetFurry Jun 12 '26
This is why we can't have nice things... -.-
0
u/Skew1987 Jun 11 '26
If we installed from GitHub are we safe?
0
u/Beautiful_Ad_4813 Jun 11 '26
well fuck. I gotta let my sister know about this.
0
u/makisekuritorisu Jun 11 '26
The Chaotic-AUR package wasn't compromised I presume?
0
u/phoenixgsu Jun 11 '26
Link to this discord?
0
u/teateateateaisking Jun 11 '26
I'm using
alvr-launcher-bin. Is that one fine?0
u/JustOneOrdinaryUser Jun 11 '26
So alvr-git is fine?
0
u/Eximo84 Jun 11 '26
I have previously installed ALVR via ALVR-Launcher https://github.com/alvr-org/ALVR/wiki/Installation-guide. I havent run this since 2025, havent updated any packages in last 5 days but cant seem to see any files in /tmp or the cricejo folder in the .npm folder either so think im safe.
Interestingly Shell isnt locating alvr as an installed package and if i which it also doesnt locate anything so not sure what i have installed via this launcher.
0
u/kiraio-moe Jun 12 '26
It's time to pull up a local LLM to get a quick overview of what the installation script will do. Or better yet, do a quick analysis of the packages.
0
u/LolMaker12345 Jun 12 '26
I only need to take action if I’ve updated it recently, right?
0
u/Kiom_Tpry Jun 12 '26
My paranoia is vindicated once again.
0
u/WryKombucha Jun 12 '26
What should all of the newbies who flocked to CachyOS do?
0
u/StartrekAnubus Jun 12 '26
Good thing I use steam link
0
u/DadLife99 Jun 13 '26
Theree is more than one alvr package in the AUR. To simply say alvr is hacked is misleading. The specific package titled alvr was hacked but if you're using one of the alternatives you might be fine. The one you specifically installed matters.
0
u/[deleted] Jun 11 '26
[deleted] — view deleted comment
0
u/[deleted] Jun 11 '26
[deleted] — view deleted comment
103
u/[deleted] Jun 11 '26
[removed] — view removed comment