# 400+ Arch Linux AUR Packages Compromised in Major Supply Chain Attack Delivering Rootkit and Credential Stealer


Critical campaign targets developer workstations with kernel-level malware; AUR maintainers mobilize to contain breach


A coordinated attack has compromised over 400 packages in the Arch User Repository (AUR), distributing a sophisticated Linux rootkit and credential-stealing malware designed to harvest sensitive tokens and secrets from developer machines. The campaign, first documented by the Independent Federated Intelligence Network (IFIN) and later analyzed by supply-chain security firm Sonatype, represents one of the largest known package repository poisonings targeting the open-source development community.


According to security researchers Michael Taggart (IFIN), Whanos, and Sonatype's investigation team, threat actors modified legitimate Arch Linux packages to include a malicious npm package called atomic-lockfile. The payload installs a credential stealer capable of operating at kernel privilege level using eBPF (extended Berkeley Packet Filter) technology, allowing the malware to hide processes, files, and network activity from system administrators.


## The Threat


The attack involves two primary infection vectors:


Method 1: Package Maintainer Impersonation

Attackers created new package maintainers that spoofed trusted publishers on the AUR platform, then pushed infected packages to the repository without detection.


Method 2: Orphaned Package Hijacking

Threat actors took control of at least 20 abandoned AUR packages and modified their build scripts (PKGBUILD files) to download and execute the malicious npm package during installation.


In both cases, the infection chain followed a similar pattern: users installing or updating compromised packages unknowingly triggered a post-install script that invoked npm to retrieve atomic-lockfile—which contained the actual malware payload. The approach exploited AUR's community-driven, decentralized trust model, where thousands of volunteer maintainers contribute packages with minimal centralized vetting.


## Background and Context


### Understanding the Arch User Repository


The Arch Linux distribution has cultivated a strong following among power users, developers, and system administrators due to its rolling-release philosophy and extensive customization options. At the center of Arch's ecosystem sits the AUR—a community-maintained repository containing thousands of package build scripts for software not included in Arch's official package repositories.


For Arch users, the AUR is essential infrastructure. It houses:

  • Proprietary applications unavailable elsewhere
  • Beta and nightly builds of popular open-source projects
  • Niche utilities and specialized tools
  • Legacy software versions that have been removed from official repositories

  • Unlike official repositories, which undergo vetting and security review, the AUR is explicitly community-driven. Any user can contribute packages, and maintainers can change without formal approval processes. This model prioritizes rapid software access over centralized security controls—a design decision that makes the AUR both powerful and vulnerable.


    ### Why Developers Use Arch and AUR


    Arch's popularity in the developer and DevOps communities stems from its commitment to staying current. Rather than waiting for stable release cycles (as with Ubuntu or Fedora), Arch pushes the latest software versions continuously. For developers building cutting-edge applications or researchers experimenting with new tools, this means access to freshly released code weeks or months before other distributions offer it.


    The AUR extends this philosophy, allowing developers to package tools the moment they're released. This made the AUR an attractive target for attackers seeking to reach active, technically sophisticated users.


    ## Technical Details


    ### The Malware Payload


    The compromised packages delivered a Linux ELF executable called deps—a sophisticated infostealer with optional kernel-level rootkit capabilities. According to Whanos's analysis, the malware targets an extensive range of developer credentials and sensitive materials:


    | Target Category | Specific Data Harvested |

    |---|---|

    | Authentication & Tokens | GitHub credentials, npm authentication tokens, HashiCorp Vault secrets |

    | Communication Platforms | Slack workspace tokens, Microsoft Teams credentials, Discord tokens, Telegram data |

    | Infrastructure Access | SSH key material, Docker/Podman credentials, VPN configuration and certificates |

    | Browser & Applications | Cookie databases, Electron app data, shell command histories |

    | System Information | Local process information, network interface details, file system metadata |


    ### eBPF Rootkit Capabilities


    The most dangerous component of the deps payload is its use of eBPF—a kernel technology that allows safe execution of sandboxed programs inside the Linux kernel. In this case, the rootkit abuses eBPF to:


  • Hide running processes from normal system monitoring tools like ps and top
  • Conceal files and directories from file listing commands
  • Mask network connections to prevent detection of exfiltration activity
  • Operate with kernel privileges without requiring traditional privilege escalation

  • This eBPF component is particularly concerning because it allows the malware to maintain persistence and hide its activities even from system administrators running security scans.


    ### Data Exfiltration Mechanism


    Analysis revealed that the deps binary includes full exfiltration functionality:

  • Multi-part file handling for chunking large datasets
  • Archive creation capabilities for bundling secrets
  • HTTP upload mechanisms to send stolen data to attacker infrastructure

  • The combination suggests the malware is production-ready, not an incomplete proof-of-concept.


    ## Implications


    ### Who's At Risk


    The primary targets are developer workstations and build environments. This makes the attack particularly dangerous because:


    1. Access to production systems: Compromised developer machines can lead to source code theft, CI/CD pipeline manipulation, and deployment of backdoored applications to production environments.


    2. Credential cascade: A single developer workstation often contains credentials for multiple services (GitHub, npm, Docker registries, cloud platforms). Stealing these creates a multi-stage attack chain.


    3. Supply chain amplification: A compromised developer's credentials could be used to push malicious code to thousands of downstream projects.


    4. Build environment poisoning: Build servers using Arch Linux (common in CI/CD pipelines) could become persistence points for infrastructure-wide compromise.


    ### Attack Surface


    The attack exposed a fundamental vulnerability in AUR's trust model: there is no practical way for users to distinguish between legitimate packages and trojanized versions without deep technical inspection. Many users likely never reviewed the PKGBUILD source before installing, trusting the package name and repository appearance.


    ## Response and Remediation


    ### Repository Cleanup


    AUR maintainers have begun identifying and removing all malicious commits. Arch Linux maintainer Jonathan Grotelüschen issued a community advisory urging users to:

  • Review the list of affected packages from the Whanos report
  • Check for indicators of compromise (IOCs) provided by security researchers
  • Immediately remove any suspicious packages
  • Audit system processes and network connections for signs of compromise

  • ### Detection Guidance


    Whanos and Sonatype both provided scripts and IOCs to help users identify compromised installations. The recommended approach includes:

  • Checking package installation timestamps against the attack timeline
  • Scanning for the deps binary or atomic-lockfile npm package
  • Reviewing system logs for suspicious npm invocations during package installation
  • Using Whanos's provided detection script to scan installed systems

  • ## Recommendations


    For Arch Linux Users:

    1. Immediately review all recently installed AUR packages against the vulnerability list

    2. Audit SSH keys, credentials, and tokens stored on affected systems

    3. Rotate all sensitive credentials (GitHub, npm, cloud API keys)

    4. Enable multi-factor authentication (MFA) on critical accounts

    5. Monitor account activity for unauthorized access


    For Organization Security Teams:

    1. Audit development environments and build servers for Arch Linux usage

    2. Implement stricter package sourcing policies (prefer official repositories)

    3. Require code review of PKGBUILD scripts before installation

    4. Deploy container-based build environments to limit host system exposure

    5. Implement network monitoring to detect credential exfiltration attempts


    For Open-Source Maintainers:

    1. Use cryptographic package signing verification

    2. Implement automated scanning of contributed packages before acceptance

    3. Require two-factor authentication for maintainer accounts

    4. Monitor for account takeovers or unusual maintenance activity


    ---


    ## HackWire Analysis


    This attack exposes a critical blind spot in the open-source development supply chain: trust is transitive, but verification is not. Arch users trusted the AUR as a source of legitimate software packages because the distribution has a strong security reputation. Yet that reputation applied only to official repositories—the AUR was always explicitly untrusted by design. Developers made a calculated risk that the AUR's community-driven model provided sufficient informal vetting. This incident proves that calculation was wrong.


    What makes this campaign particularly significant is its sophistication and scale. This isn't amateur malware; the deps payload demonstrates professional-grade development, with eBPF rootkit capabilities typically found in state-sponsored or well-resourced criminal operations. The attacker invested effort in maintaining multiple infection vectors, creating credible package maintainer personas, and ensuring the malware could survive detection. That investment suggests the target is high-value—developer credentials and build environment access are worth significant effort to an attacker.


    The broader pattern is troubling: supply-chain attacks have become routine. PyPI, npm, RubyGems, and now AUR have all experienced waves of poisoned packages in the past year. Each time, we see the same cycle: initial discovery, scrambling to identify victims, cleanup efforts, and eventual lessons-learned documents that don't prevent the next incident. The root cause is structural: open-source repositories optimize for accessibility over security, and that's unlikely to change without fundamentally restructuring how developers consume code.


    The actionable lesson: treat every package source as potentially hostile, even trusted ones. Implement package verification (cryptographic signatures, reproducible builds, hash verification), inspect PKGBUILD scripts before installation, and isolate build environments from production systems and sensitive credentials. If you're running Arch on development or build servers, this attack should be a wake-up call to reconsider that choice—or implement substantially tighter controls.


    — HackWire Editorial


    ---


    ## Related Coverage


  • Read more in our [Tools](https://www.hackwire.news/category/tools) coverage
  • Cross-reference with [Breaches](https://www.hackwire.news/category/breaches) and [Vulnerabilities](https://www.hackwire.news/category/vulnerabilities)
  • Stay current via the [HackWire homepage](https://www.hackwire.news/)