The more popular Linux becomes, the less true this will be.
Tbf most major attacks we saw recently are cross-platform thanks to npm. AUR has always been a security risk.
Avoid success at all costs - Simon Peyton Jones
Wasn’t that long ago when I was downvoted to oblivion for saying that. Glad to see the community is maturing.
Never trust an NPM library
Fuck node
… technical name for glory hole
OR
Your mom’s a fuck node
bu-but so many libraries need funding!
I never had any issues on TempleOS.
Zero remote exploits since it was released. That’s what divinely-inspired coding looks like, everyone.
Out of curiosity, is that actually true? Surely our lord and saviour must have made a tiny slip-up
Edit: Apparently TempleOS doesn’t have networking
It is networked >!to G̷̗̙͚̥͓̼̠̩͙̀̃̎̌ǫ̷̢͈̭̪̮̝͚̟̹̭̤͇͕̪̍̅̈́͊̌̀̐͌̽d̷̡̮͕͉̥̂̽̔̾̓̋̚͘͠!<
Better than OpenBSD
My OS is a temple. 🧘
Same on Secureblue.
Linux Users: haha those silly windows users, always searching the web for their software and getting viruses.
Linux Users: oh no I got malware by searching the AUR!Don’t worry, I found a package on npm to help!
The AUR is still safer. One, it is at least minimally moderated. If a malicious package is detected, it can be reported and removed. Two, the installer is usually not just a black box executable. Three, most of the build and runtime dependencies are from the official Arch repos, which provides some protection against supply chain attacks. For Windows installers, you have to trust the distributor to bundle clean DLLs (for that matter, the same applies to AppImages).
But if it starts downloading anything from NPM… ^C and run.
The most unsafe factor of the AUR is aur helpers and their goal to dumb everything down and streamline the process as if the AUR where an official repo
Ye my reaction to this was basically uninstalling yay to force me to do it manually
I’m not entirely sure I agree, I think the issue is with default settings.
Like you could use both yay and paru to diff the PKGBUILD of the most recent updat and then read it, and then approve each. And I think that’s pretty helpful. But you could also just blindly accept the update with the right config or flag and that is not a good practice.
Yeah, use and promote
aurtoinstead. They require you to trust the maintainer and would remove the package from the local repo if the maintainer is changedI’m not sure if loosing the maintainer is to only thing we should be going off of here, but I like the name.

Well, it is just like a distro maintainer account anyway. If the maintainer account is compromised then gg for the whole distro. That’s what happens with other supply chain attacks as well and yes, I do think we need a way to fix that without compromising on ease of usability
We arnt talking about a distro maintainer, but an aur package maintainer, which can be anyone.
But Windows has a flourishing antimalware ecosystem. That’s missing in Linux imo
appimages are kinda like portable app versions.
By misusing the AUR and ignoring every warning telling you to read and understand the pkgbuild or don’t do it.
AUR naur! for all my Australians out there.
btw, I use malware
Microslop is nervous now that Linux is popular enough to attack.
Linux has always been the bigger target. Even microslop uses linux for its severs.
I’m gonna assume that their servers are not installing stuff from AUR though
I would hope so too
They also have been developing a Linux distribution for 6 years. https://en.wikipedia.org/wiki/Azure_Linux
I don’t use Arch, BTW. So the biggest NPM threat vector on my machine is still VSCode.
I was anti GUI for years. Having learnt to program on a tiny green and black 40x24 CRT on my old MSX back in the 80s. I remember being made fun of by fellow students and co workers alike for doing almost everything in the terminal. This included huge projects with complex file trees and lots of files.
But as time went on, I started to appreciate the GUI more and more. And these days I’m all for using a GUI for a lot of things.
Especially in IDEs that can do a lot of things with short keyboard shortcuts. I now have multiple monitors, including a large 32" primary. I always have stacks upon stacks of windows open and manage them efficiently. There’s always at least a couple of terminals hanging out and of course most IDEs also have terminal windows baked in. But all of the extra visual tools help me out a lot.
Almost the exact opposite for me. Used to hog GUIs and hated keyboard shortcuts with a passion, but then I came across Niri, fell in love with the idea, and the whole scrolling window manager thing made my productivity explode. I can’t use traditional desktop environments anymore. Tried to go back and literally can’t.
Tmux wasn’t that far behind.
and the whole scrolling window manager thing…tmux wasn’t that far behnd
I remember one time reflecting on how many layers I have at which one can expand workspace.
-
Linux virtual terminals. By default, Debian runs 7 login sessions on seven virtual terminals and sticks the GUI (Wayland/Xorg) on the eighth. So Control-Alt-F1 through Control-Alt-F7 will get me a Linux terminal. I can stick more programs on more virtual terminals with
openvt. That’s the first layer. -
Okay, so on virtual terminal 8, I’ve got Wayland running. On that, I’m running Sway. That has an infinite number of workspaces that can be created. Currently, I only have bindings set up for 10 (and I use nonstandard bindings for them, Super-q N to switch to the Nth workspace) because I didn’t find myself actually using named workspaces. This is the second layer.
-
Within a workspace, I can have Wayland windows. Say I can have two or three windows reasonably visible. This can be expanded whenever opening a window; for example, Super-t to open a new virtual terminal emulator window. This is the third layer.
-
One of the most common windows I use is a virtual terminal emulator,
foot. That can run a program. I typically have it running tmux, which can have its own list of concurrently-running terminal programs (I use Control-O as the tmux meta key). This is the fourth layer. -
I often use emacs. Emacs has multiple “frames”; one can “clone” the current frame with
C-x 5 c. When run in a terminal, this basically acts like another tmux-like layer where one shows one frame at a time. This is the fifth layer. -
Inside an emacs frame, one can have multiple emacs windows (analogous to what is typically called “panes” in other software) showing various things at the same time. One can open a new window with
C-x 2orC-x 3, cycle withC-x o. This is the sixth layer. -
Emacs has a list of buffers, any one of which can be shown in a given emacs window. A “buffer” is vaguely analogous to “an open file” in some other programs, but could also be showing a terminal emulator or similar. One can switch with
C-x b. This is the seventh layer. -
Say I’m running a terminal emulator in one running
bash(M-x term RET RET).bashhas its own job control; one can suspend a running program and bring bash to the fore with Control-Z, list running jobs withjobs, then resume a suspended job in the background withbg %1to background the first or bring a job to the foreground withfg %1. This isn’t quite the same thing as the other layers, since the screen state isn’t maintained for separate programs and restored, but it can reasonably allow one to run simultaneous things and follow each. This is the eighth layer.
Noping the heck outta that. All I want is better top-level organisation, you just described what I’d call an anti-pattern in my book.
I wouldn’t nest things that deep through so many different tools/framework/layers that can’t talk to one another. That’s just asking for trouble. You’d waste one of two things: time searching or focus for memorising and recall, you lose something either way. And in the case of the latter you’re bound to forget and start wasting time to search over time anyway.
-
I’m a longtime vim user and I use nvim+lazyvim for all my personal stuff these days, but I have to use enterprise managed VS or VSCode for work.
I’m trying out Zed
ClamAV users, how’s it going?
Did clamav work with AUR affected packages? Sorry if the question is idiotic, cause im ignorant when it comes to security
To be honest I’m not really sure, my comment was meant as a question to potential clamav users, I’m not really one of them.
I am really curious about this. If someone had ClamAV and updated any of these packages from the AUR during the attack, would ClamAV have “solved” that problem? I would love to know the effectiveness of that.
To be honest I’m not really sure, my comment was meant as a question to potential clamav users, I’m wondering the same thing as you.
AFAIK ClamAV is mostly for looking for windows targeted malware so I doubt it
clamav gang!
Anyone catch that hilarious LLM exchange on aur-general mailing list over the weekend?
E: found it
Well that’s fun. Odd someone named Campbell asking was for a tomato soup recipe, you’d think that would just be built into their bloodline or something.
While I’m glad no JS package managers were hurt to make the soup, I do wish the recipe didn’t waste so much water.
Just keep sending requests and use as many tokens as possible. My wife spent 30 minutes on the phone with a bot the other day, just getting it to dump huge sets of instructions to waste tokens.
And you believe that makes you safe?
Shit like this is a blemish on the Linux community.
deleted by creator
Inverted security by obscurity
Obscurity by security?
Sescurity by Obcurity
Obituary by Sorcery
It was certainly a weekend.
I avoid
orphanedunmaintained packages and I wait a few days before I typeyayYou’re no fun
Is there a flag to prevent orphaned packages from installing?
Good question, I guess I might be using the wrong word when i say “orphan” because I see the arch wiki uses that term differently
Orphans are packages that were installed as a dependency and are no longer required by any package.
You can remove these manually or if using an aur helper like yay there are flags/settings you can use to delete them after the desired package was installed.
However what I was talking about aur packages that are unmaintained or do not have a maintainer anymore.
I’m researching more at the moment.
shit, I had 150 orphaned packages
pacman -Qdtq | pacman -Rns -I made an alias for this, but IMO this cleanup should be automatic. The user didn’t install it themselves after all.
This can be prevented by uninstalling with -Rs
Just removing them without user intervention could cause unexpected behavior.
deleted by creator
I don’t trust that everything that outputs from
pacman -Qdtqshould be deleted. Like I want to keepvlc.I think if you do pacman -S vlc it won’t be orphan anymore though. I removed everything, if I miss something I’ll install it again.
A simple install kept it orphaned. Instead I needed to run
sudo pacman -D --asexplicit vlc
Waiting for updating doesn’t make any difference. The packages could be infected at any point.
The packages could be infected at any point.
I guess the same could be said for literally any open source or freely distributed project.
The difference is that this was a supply chain attack and, to my knowledge, required the package to be listed as
orphanedunmaintained first so that the PKGBUILD could be modified to install malicious NPM packages.The community caught it quickly because it is possible to read both the PKGBUILD and the output of the update and, I think, it is fully resolved as of now.
Basically, if one were to delete or replace orphaned packages then they wouldn’t have been infected.
It is also possible to add a CVE scanner for AUR packages if reading the PKGBUILD is too much, I’m looking into how to do that now.
All this is to say that you should check if you had an infected package but I personally don’t think using the aur is more risky than using a flatpak.
Waiting for updating doesn’t make any difference.
Are linux users allowed to juat lie like that? I thought if you do that you need to use Windows.
C’mon, man, at least pour one out for the homies who waited to update and landed in the period where it was live and undisclosed.
What?
They also wait until they get off the rollercoaster and back on solid ground before yelling
yay!
So what are good antivirus options for Linux? is it still pretty much just ClamAV?
Our company uses eset https://www.eset.com/us/home/antivirus/
But afaik it costs money to really work.
But your brain should be the best antivirus you have.
But your brain should be the best antivirus you have.
Is there an AUR package for it? seems not in the official repo
But your brain should be the best antivirus you have.
It’s useful to use brain, but any security layer has holes which is why it’s useful to have several layers. Some attacks might be way beyond user’s understanding or come from trusted sources.
But your brain should be the best antivirus you have.
True of virtually every OS.
But “only stupid people get viruses” is exactly the kind of trap that catches folks.
oh no, but I am stupid D:
I have eset home but now I’ve gone completely linux, and they don’t do it for home - only business
Which sucks, as I have a year left on my subscription I can no longer use :/
one thread I found from 2 years ago where someone asked for the same thing, a lot of the replies are just “you don’t need antivirus on Linux” lmao
There is no malware on Linux and there is no war in Ba Sing Se
a lot of the replies are just “you don’t need antivirus on Linux”
Which is completely true when using distros like Debian, Fedora, RHEL, OpenSuse, etc.
Arch (and its derivatives) are designed to be on the bleeding edge with ALL the paper cuts that come with it. It is absolutely not focused on stability or security. If you want those things then stick to Debian or Fedora Silverblue.
And the second you introduce npm to your system you can throw any semblance of security out the window, regardless of what your operating system is, and no antivirus is going to save you.
That being said, the fundamental security models between Linux and Windows are very different. And on Linux the overall impact will likely be far less damaging (technologically, not financially) than on Windows. Windows “security” is just a corporate marketing campaign.
If you use snap, or flatpaks, or npm, or anything like that you run the same risks.
npm, yes. Snap and flatpak? No. I’m not saying it’s impossible to get malware. The difference is that snapd and flatpak have various levels of process isolation that largely mitigates any potential issues.
The argument isn’t “Linux doesn’t have malware”, the argument is “you don’t need to run antivirus on Linux”. Those are two very different things.
Not even the best antivirus will protect you completely, at that point you need good computer hygiene.
Eh. Flatpak has the option for process isolation, but it kinda works similarly to how android apps have default permissions set and the packager can just go “nah, this gets FULL permissions” and unless you go look and change it yourself, the program isn’t restricted at all. I don’t use ubuntu/snapd so can’t speak to that.
There are more protections on flathub than the AUR for sure - the AUR is closer to just downloading random shit off the internet than a true repository. That said, it’s crazy to assign the vulnerabilities of the AUR to Arch as a whole… The Arch repos proper (and even Chaotic AUR) didn’t have problems during any of this.
Flatpak has the option for process isolation, but it kinda works similarly to how android apps have default permissions set and the packager can just go “nah, this gets FULL permissions” and unless you go look and change it yourself, the program isn’t restricted at all.
You’re not wrong, but even with the AUR it’s (last I checked/heard) a problem with orphaned packages being picked up by random users, and then a “new” PKGBUILD with the malicious bits getting uploaded.
The reality is that even if everyone just blindly updated through yay this whole time, very few people would be affected because the number of orphaned packages installed is very low. The package managers tend to bug you about orphaned packages.
The difference with Flatpaks and the Snap Store is that you can’t just take ownership over an abandoned project. You’d have to create your own. And since Canonical is in charge of the Snap Store, they’re quick to react to any sort of security issue.
the AUR is closer to just downloading random shit off the internet than a true repository
Ultimately that is what it is. Because some packages are grabbing files from just about anywhere.
The Arch repos proper (and even Chaotic AUR) didn’t have problems during any of this.
And that’s really the key. The AUR is bleeding edge with “here be dragons” philosophy. Like I said in my previous comment, if you can’t accept those dangerous (work computer, sensitive data, etc) then simply don’t use Arch.
























