Skip to content
30 November 2026 An independent technology publication
Guide

Linux malware in 2027: 7 hard lessons from the AUR attacks

Linux malware hit over 1,500 Arch AUR packages in 2026. Learn how the attack worked, how to check your system with simple commands, and 7 lessons to stay safe.

Linux malware in 2027: 7 hard lessons from the AUR attacks, DevQuarry featured image

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.

Linux malware in 2027: 7 hard lessons from the AUR attacks, DevQuarry featured image

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:

  1. 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.
  2. 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.
  3. They edited each PKGBUILD or .install file to run npm install atomic-lockfile during the build, next to a couple of genuine npm packages as cover.
  4. The atomic-lockfile package had an install hook that ran a hidden Linux program called deps.
  5. That program was a credential stealer written in Rust, which uploaded what it found and kept itself running with a systemd service.
Linux malware attack chain: orphaned AUR package adopted, build script edited, npm hook runs the stealer, data sent over Tor

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.

Linux malware timeline: AUR attack waves from June to July 2026 and Arch's responses

What the malware stole

TargetExamples
Browser datacookies and saved sessions from Chromium-based browsers
Chat appsSlack and Discord sessions, plus Microsoft Teams
Developer tokensGitHub, npm, HashiCorp Vault, OpenAI keys
Remote accessSSH private keys, known_hosts, shell history
Containers and VPNsDocker 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.

SourceWho reviews itRisk level
Official distro repositories (Ubuntu main, Fedora, Arch core/extra)distro maintainerslow
Flathub verified apps, Snap Store verified publishersthe app’s own developer, store checkslow to medium
PPAs, COPR, the AURindividual volunteersmedium to high
curl ... \| sh install scriptswhoever controls the websitedepends entirely on the source
Random .deb, .rpm or AppImage downloadsno onehigh

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.

Linux malware in a PKGBUILD diff: the added npm install atomic-lockfile line highlighted in an AUR helper review

What to look for:

  • Commands that download extra code during the build, such as npm install, pip install, curl or wget, when the software does not obviously need them.
  • New .install files 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.

Linux malware warning signs in package info: a recently changed maintainer and a fresh update on an old package annotated

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 aurutils with a clean chroot, or a disposable container, keep the build away from your home folder.
  • Type your password for sudo only 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:

SecretSafer practice
SSH keysprotect them with a passphrase, or keep them on a hardware key such as a YubiKey
GitHub and npm tokensuse short-lived, fine-grained tokens with only the permissions you need
Cloud credentialsuse single sign-on or temporary credentials instead of long-lived keys in files
Browser sessionssign out of critical sites when you are done; turn on security keys for login
Passwordskeep 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.

Linux malware persistence check: systemd user units and the user services folder in the terminal, with a suspicious service annotated

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:

  1. Disconnect the machine from the network.
  2. 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.
  3. If the package ran as root at any point, assume the rootkit is present and reinstall from trusted media.
  4. If it only ran as your user, remove the systemd user service and its program, then watch closely for anything returning.
  5. 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.

Linux malware check on Arch: listing AUR packages and searching build caches for the malicious npm packages, annotated
CheckCommandWhat a problem looks like
List your AUR packagespacman -Qmpackages you do not remember installing, or that were updated in June or July 2026
Search build caches for the loadersgrep -rlE "atomic-lockfile\|js-digest" ~/.cache/yay ~/.cache/paru 2>/dev/nullany file path printed
Look for the payload hookfind ~/.cache -path "*src/hooks/deps" 2>/dev/nullany result
User servicessystemctl --user list-unit-files --state=enabledunknown services set to start automatically
eBPF mapssudo ls /sys/fs/bpf/maps named hidden_pids, hidden_names or hidden_inodes
Network connectionsss -tpnunexplained 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:

RouteHow it worksHow to avoid it
Poisoned community packagesa trusted-looking package runs extra code at build or install timeread build scripts, prefer official repos
Copied commandsa forum post or web page tells you to paste a command that downloads a scriptread every part of a command before running it
Fake appsan AppImage or .deb from an unofficial site bundles a miner or stealerdownload only from the developer’s site or a verified store
Developer dependenciesa malicious npm, PyPI or crate package runs code on installpin versions, review new dependencies, use lockfiles
Exposed servicesSSH with weak passwords or an outdated web app on a serveruse 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 ps or top show 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:

ToolWhat it is good for
ClamAVscanning files you share with Windows users, or mail servers
rkhunter and chkrootkitbasic checks for known rootkits on servers
Lynisa security audit of your system’s configuration
Firewall (ufw or firewalld)blocking incoming connections you did not ask for
OpenSnitchshowing 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.

About the author Aradhya Chaudhary

Data Scientist | Freelancer | Speaker & Writer skilled in programming, development and building AI/ML backed systems.

More from Aradhya
Keep reading

More in Operating Systems

All of Operating Systems →