Linux malware made headlines in 2026 for a reason that should worry every Linux user: nobody had to break into anything. In June, attackers took over hundreds of abandoned packages in the Arch User Repository (AUR), the community collection of build scripts that Arch Linux users install from every day. Each poisoned package quietly installed a credential stealer. By the time the list was compiled, around 1,579 packages had been named, and a second wave in July led Arch to stop all package adoptions.
This guide explains how the attack worked, shows you how to check your own system with a few commands, and sets out seven lessons that apply far beyond Arch. If you use Ubuntu, Fedora or Mint, the same mistakes can catch you through PPAs and unofficial packages. Copied install scripts carry the same risk.

The short version
- In June 2026, attackers adopted orphaned AUR packages and edited their build scripts to install a Rust credential stealer.
- The malware went after developer secrets: browser sessions, SSH keys and access tokens.
- If it ran with root rights, it could load an eBPF rootkit to hide itself, and a reinstall is the only safe fix.
- A second wave began on 29 July 2026, and Arch disabled package adoption on 31 July.
- Arch’s official repositories were never affected; only community-maintained AUR packages were.
- Read build scripts before installing, and protect your developer secrets.
- Prefer official packages whenever they exist.
What happened in the AUR attacks
The Arch User Repository is not a software store. It holds build recipes, called PKGBUILDs, written by volunteers. When you install from the AUR, a helper tool such as yay or paru downloads the recipe and runs it on your machine to build the package. That design gives Arch users access to almost any software, and it also means a recipe can run any command its author wants.
Wave one: June 2026
Researchers at Sonatype named the campaign “Atomic Arch”. According to The Hacker News, it worked like this:
- The attackers adopted orphaned AUR packages, ones whose maintainers had left. Adoption is a normal AUR feature that lets someone take over an abandoned package.
- They faked the git commit details so the changes looked like they came from the original, long-standing maintainers. Arch later confirmed those maintainers’ accounts were never compromised.
- They edited each PKGBUILD or
.installfile to runnpm install atomic-lockfileduring the build, next to a couple of genuine npm packages as cover. - The
atomic-lockfilepackage had an install hook that ran a hidden Linux program calleddeps. - That program was a credential stealer written in Rust, which uploaded what it found and kept itself running with a systemd service.

The first public report counted about 20 packages. Community trackers soon found over 400, and The Next Web reported that a tracking list reached 1,579, which Arch described as “many, but not all” of those affected (The Next Web). Arch froze new AUR account registrations while it cleaned up.
Wave two: July 2026
On 29 July, a similar campaign began, starting with a package called openconnect-sso. BleepingComputer reported that this version used a two-stage loader that checked for virtual machines and debuggers, downloaded a Tor client disguised as dbus-daemon, and then fetched a Rust infostealer that could also spread to other machines using stolen SSH keys (BleepingComputer). On 31 July, Arch disabled package adoption entirely.

What the malware stole
| Target | Examples |
|---|---|
| Browser data | cookies and saved sessions from Chromium-based browsers |
| Chat apps | Slack and Discord sessions, plus Microsoft Teams |
| Developer tokens | GitHub, npm, HashiCorp Vault, OpenAI keys |
| Remote access | SSH private keys, known_hosts, shell history |
| Containers and VPNs | Docker and Podman logins, VPN profiles |
| Wallets (wave two) | cryptocurrency wallets and password manager data |
This is Linux malware aimed squarely at developers. A stolen GitHub or npm token lets attackers publish poisoned code under a trusted name, which turns one infected laptop into the start of the next supply-chain attack.
How Arch responded
Arch’s volunteers moved quickly, given that the AUR is run by a small team:
- Malicious commits were reset and the accounts behind them banned.
- New AUR account registrations were frozen during the June clean-up.
- Package adoption was switched off on 31 July 2026, with Arch contributor Robin Candau writing that it was disabled “while we are handling the situation”.
- Users were asked to report suspicious adoptions or commits on the mailing list.
Sonatype tracks the June campaign as Sonatype-2026-003775 with a CVSS score of 8.7; no CVE was assigned, because no software vulnerability was involved. Arch promised a follow-up once a longer-term fix for adoptions is in place. Until then, the safest assumption is that any recently changed AUR package needs a manual review before you build it.
Is Linux safe? Putting this Linux malware in context
Linux is still one of the safest desktop systems, and this attack does not change that. The official Arch repositories were never touched, and neither were Ubuntu’s, Fedora’s or Mint’s. Everyone affected had chosen to run a community build script.
That is the real lesson. Most Linux malware does not exploit a flaw in Linux. It exploits trust: a package that looks familiar, a command copied from a forum, or an install script piped straight into a shell. The 2024 XZ Utils backdoor, caught just before it reached stable distributions, worked the same way through a trusted maintainer role.
| Source | Who reviews it | Risk level |
|---|---|---|
| Official distro repositories (Ubuntu main, Fedora, Arch core/extra) | distro maintainers | low |
| Flathub verified apps, Snap Store verified publishers | the app’s own developer, store checks | low to medium |
| PPAs, COPR, the AUR | individual volunteers | medium to high |
curl ... \| sh install scripts | whoever controls the website | depends entirely on the source |
Random .deb, .rpm or AppImage downloads | no one | high |
7 lessons from the AUR attacks
1. Community repositories are not official repositories
The first lesson of this Linux malware wave is about where software comes from.
The AUR is convenient, as are Ubuntu PPAs and Fedora COPR, and most of what is in them is fine. But nobody at Arch, Canonical or Fedora checks those packages. Treat them like downloading a program from a stranger’s website: sometimes necessary, never automatic.
Before you reach for a community package, check whether the software is available in your distro’s official repositories or as a verified Flatpak. More often than not, it is.
2. Read the build script before you build
Every AUR helper can show you the PKGBUILD and any changes since you last installed it. Most people skip this step. In 2026, reading the diff was the single thing that would have stopped this Linux malware.

What to look for:
- Commands that download extra code during the build, such as
npm install,pip install,curlorwget, when the software does not obviously need them. - New
.installfiles or hooks that run commands after installation. - Long encoded strings, or URLs that point anywhere other than the project’s official site.
- Changes that have nothing to do with a version bump.
In paru, the review screen appears by default. In yay, answer the “Diffs to show?” prompt with A (all) rather than N (none).
3. Be suspicious of sudden activity on old packages
Every package in this campaign had the same profile. It sat abandoned for months or years, then was adopted and updated within days. That pattern is easy to check before you install.

Run yay -Si package-name or paru -Si package-name, or open the package page on the AUR website. Look at the maintainer, the “First Submitted” date and the “Last Modified” date. A package first submitted in 2019 that changed maintainer and received an update this week deserves a careful read of its comments and its PKGBUILD. Linux malware campaigns rely on people not looking.
4. Never build or run unknown code as root
makepkg refuses to run as root for exactly this reason, and AUR helpers build as your normal user. But the build runs with all of your user’s permissions, which is enough to read your SSH keys and browser data. And if anything in the chain ran as root, the malware could load its eBPF rootkit, which hides its processes from tools like ps and top.
Two habits reduce the damage any Linux malware can do:
- Build AUR packages in a clean, separate environment. Tools such as
aurutilswith a clean chroot, or a disposable container, keep the build away from your home folder. - Type your password for
sudoonly when you know why it is being asked for.
5. Your developer secrets are the real target
This Linux malware did not care about your photos. It wanted the keys that unlock everything else, such as SSH keys and API tokens. Logged-in browser sessions were just as valuable. Make those harder to use:
| Secret | Safer practice |
|---|---|
| SSH keys | protect them with a passphrase, or keep them on a hardware key such as a YubiKey |
| GitHub and npm tokens | use short-lived, fine-grained tokens with only the permissions you need |
| Cloud credentials | use single sign-on or temporary credentials instead of long-lived keys in files |
| Browser sessions | sign out of critical sites when you are done; turn on security keys for login |
| Passwords | keep them in a password manager with its own master password |
A passphrase on your SSH key means a stolen key file is useless on its own. That one step would have blunted much of the damage in 2026.
6. Know where persistence hides
Most Linux malware wants to survive a reboot, and on a modern desktop that usually means a systemd service or a cron job. The AUR stealer installed a service set to restart forever: under /etc/systemd/system/ when it had root, or under ~/.config/systemd/user/ when it did not.

These commands list what starts automatically:
systemctl --user list-unit-files --state=enabled
ls -la ~/.config/systemd/user/
systemctl list-unit-files --state=enabled --type=service
crontab -l
Anything you do not recognise, especially with a name that imitates a system component, is worth a search. Look at its file with systemctl --user cat name.service to see which program it runs.
7. Have a recovery plan before you need one
If a poisoned package ran on your machine, removing the package is not enough. The guidance from researchers was clear:
- Disconnect the machine from the network.
- From another device that you trust, revoke and replace every credential the stealer could reach. Start with SSH keys and GitHub or npm tokens, then cloud keys and Docker logins. Finish with VPN profiles and chat or browser sessions.
- If the package ran as root at any point, assume the rootkit is present and reinstall from trusted media.
- If it only ran as your user, remove the systemd user service and its program, then watch closely for anything returning.
- Check your GitHub and npm accounts for new tokens, deploy keys or packages you did not publish.
Doing this calmly is much easier if your files are already backed up and your important accounts already use a password manager and two-factor authentication. Write the steps down now, while nothing is wrong, and keep a list of the accounts and tokens you would need to rotate.
How to check your system for the AUR malware
These checks take about five minutes on any Arch-based system that uses the AUR, CachyOS and EndeavourOS included.

| Check | Command | What a problem looks like |
|---|---|---|
| List your AUR packages | pacman -Qm | packages you do not remember installing, or that were updated in June or July 2026 |
| Search build caches for the loaders | grep -rlE "atomic-lockfile\|js-digest" ~/.cache/yay ~/.cache/paru 2>/dev/null | any file path printed |
| Look for the payload hook | find ~/.cache -path "*src/hooks/deps" 2>/dev/null | any result |
| User services | systemctl --user list-unit-files --state=enabled | unknown services set to start automatically |
| eBPF maps | sudo ls /sys/fs/bpf/ | maps named hidden_pids, hidden_names or hidden_inodes |
| Network connections | ss -tpn | unexplained connections to Tor or file-upload services |
Compare your list of AUR packages with the community lists linked from the Arch mailing list thread. If any match and you installed or updated them after 11 June 2026, follow the recovery plan above. For anyone on Ubuntu, Fedora or Mint who never used the AUR, these specific checks do not apply, but the persistence checks in lesson 6 are worth knowing.
Other ways Linux malware reaches desktops
The AUR attacks were unusual in scale, but the method is common. Linux malware on desktops and developer machines tends to arrive in one of these ways:
| Route | How it works | How to avoid it |
|---|---|---|
| Poisoned community packages | a trusted-looking package runs extra code at build or install time | read build scripts, prefer official repos |
| Copied commands | a forum post or web page tells you to paste a command that downloads a script | read every part of a command before running it |
| Fake apps | an AppImage or .deb from an unofficial site bundles a miner or stealer | download only from the developer’s site or a verified store |
| Developer dependencies | a malicious npm, PyPI or crate package runs code on install | pin versions, review new dependencies, use lockfiles |
| Exposed services | SSH with weak passwords or an outdated web app on a server | use SSH keys, keep software updated, close unused ports |
Notice that the AUR attack combined two of these routes: a community package that pulled in a malicious npm dependency. Linux malware authors increasingly chain trusted systems together this way, so that no single reviewer sees the whole picture.
Signs your Linux system may be infected
Good Linux malware is quiet, so absence of symptoms proves little. Still, these signs justify a closer look:
- A service you do not recognise appears in
systemctl --user list-units. - Fans spin up while the machine is idle, which can point to a cryptominer.
- Unknown outbound connections show up in
ss -tpn, especially to Tor or file-sharing sites. - GitHub, npm or cloud accounts show logins, tokens or published packages you did not create.
- Commands such as
psortopshow fewer processes than system monitors like Resources, which can indicate a rootkit hiding processes.
If you see any of these, run through the checks above and, when in doubt, follow the recovery plan. Rotating credentials costs an afternoon; leaving a stealer running costs far more.
Does Linux need antivirus?
For most desktop users, a traditional antivirus adds little against Linux malware. It rarely spreads like Windows viruses do; it arrives through software you choose to install. The protection that matters is choosing that software carefully.
Some tools are still useful in specific cases:
| Tool | What it is good for |
|---|---|
| ClamAV | scanning files you share with Windows users, or mail servers |
| rkhunter and chkrootkit | basic checks for known rootkits on servers |
| Lynis | a security audit of your system’s configuration |
| Firewall (ufw or firewalld) | blocking incoming connections you did not ask for |
| OpenSnitch | showing which apps make outgoing connections, and blocking them |
None of these would reliably have caught the AUR stealer on the day it appeared. Reading the build script would have, which is why habits beat tools against new Linux malware.
A Linux malware checklist for everyday users
You do not need to be a security expert to stay safe. These habits cover nearly every real-world case:
- Install software from your distro’s official repositories or verified Flatpaks first.
- Use community repositories only when you need to, and read what they run.
- Never paste a command from a website or forum unless you understand each part.
- Keep the system updated; most distros make this a single click.
- Protect SSH keys with passphrases and use two-factor authentication everywhere it is offered.
- Back up your home folder regularly, so a reinstall is an inconvenience rather than a disaster.
The same caution applies on every system. Mac users faced a wave of fake “fix your computer” Terminal commands in 2026, which we covered in our Mac malware guide. If you are just starting with Linux, our pick of the best Linux distro for beginners favours distros with large official repositories, which keeps you away from risky sources from day one.
FAQ
Is Linux malware common?
Linux malware is far less common on desktops than on Windows. It does exist, though, and it is growing on developer machines and servers. The 2026 AUR attacks were one of the largest Linux malware campaigns aimed at desktop users so far.
Can Linux malware steal passwords from my browser?
Yes. The AUR stealer copied cookies and saved sessions from Chromium-based browsers, which can let attackers log in as you without a password. Signing out of sessions and turning on security keys limits the damage.
Was Arch Linux hacked?
No. Arch’s official repositories and infrastructure were not compromised. Attackers abused the AUR’s adoption feature to take over abandoned community packages.
Am I affected if I use Ubuntu, Fedora or Mint?
Not by this campaign, unless you installed AUR packages through an Arch-based system or container. The same technique could be used against PPAs or other community repositories, though.
How do I know if an AUR package is safe?
Check the maintainer history and the last update date on its AUR page. Then read the PKGBUILD and any .install file before building. Be wary of packages that were recently adopted after a long period of inactivity.
Do Flatpak and Snap protect against Linux malware?
Partly. Both run apps in a sandbox with limited access to your files, and verified publishers add a layer of trust. They do not help with build scripts or command-line tools installed outside the sandbox, which is where the AUR attacks happened.
Should I stop using the AUR?
Not necessarily. It remains one of Arch’s most useful features. Use it for software you cannot get elsewhere and review every change. If you install a lot from it, build in a clean environment.
What should I do if I installed an affected package?
Disconnect, rotate every credential from a clean device, and reinstall the system if the package ran as root. Removing the package alone does not remove the malware.
What this Linux malware wave changes
The AUR attacks did not reveal a weakness in Linux itself, and Linux malware is still rare compared with Windows. They showed how much of Linux security rests on trust in volunteers, and how quickly that trust can be borrowed by someone else. Treat every build script and install command as code you are about to run, because that is exactly what it is.


