Over 400 Arch Linux packages compromised to push rootkit, infostealer
More than 400 Arch User Repository (AUR) packages were compromised by a threat actor who spoofed a trusted maintainer to push infected updates. The attackers inserted preinstall scripts that download a malicious npm package, atomic-lockfile, whose Linux ELF payload functions as a credential stealer and includes an optional eBPF rootkit to hide activity. The malware targets sensitive data such as GitHub credentials, SSH artifacts, Vault tokens, browser cookies, and data from Slack, Discord, Microsoft Teams, and Telegram, with exfiltration capabilities. Investigations by IFIN and Sonatype detail the campaign, including hijacking orphaned packages and modifying PKGBUILD files to invoke npm during installation. Arch maintainers are removing malicious commits, advising users to audit affected packages, rotate credentials, and consider reinstalling Arch if compromised; a detection script is also recommended.

Over 400 Arch Linux Packages Compromised to Push Rootkit and Infostealer
Overview
- A large-scale compromise hit the Arch User Repository (AUR), affecting more than 400 packages.
- The attack involved a spoofed maintainer account pushing infected build scripts that delivered a Linux rootkit and an information-stealer.
- The malicious campaign leverages preinstall and post-install hooks to install a malicious npm package, enabling access to credentials and sensitive data on developer workstations and build environments.
Scope and Impact
- Platform: Arch Linux, with emphasis on the AUR, a community-maintained collection of build scripts (PKGBUILDs) used to assemble and install software not present in Arch’s official repositories.
- Target audience: power users, developers, and those relying on complex toolchains in development, testing, or CI environments.
- Immediate risk: compromised packages can install a rootkit component and an information-stealer, creating persistence and data exfiltration capability at the operating-system and application levels.
How the Attack Unfolded
- Spoofed maintainer identity: The attack relied on a new maintainer account that impersonated a trusted publisher within the AUR, enabling malicious packages to be accepted by the repository ecosystem.
- Package modification: Compromised packages were altered to include preinstall or post-install scripts. These scripts download and execute a malicious npm package named atomic-lockfile.
- Dual mechanism: The atomic-lockfile npm package delivered a Linux ELF binary that contained an information-stealer with optional kernel-level rootkit capabilities via eBPF, providing elevated privileges and deep hiding mechanisms.
- Alternative attack path: A second set of analyses from a separate threat intelligence group described hijacking of orphaned packages (at least 20) and embedding a post-install script to trigger npm installation of the malicious package, reinforcing the same end goal of credential theft and system compromise.
- Exfiltration design: The malware includes functionality for archiving data, handling multi-part files, and performing HTTP uploads, aligning with typical data-exfiltration capabilities.
Malware Components and Capabilities
- Atomic-lockfile: A malicious npm package downloaded by the post-install script, designed to operate on Linux systems within Arch environments.
- ELF payload (deps): A Linux executable with multiple capabilities, including:
- Credential theft targeting GitHub credentials, SSH artifacts, and Vault tokens.
- Access to browser data and messaging platforms (Slack, Discord, Microsoft Teams, Telegram).
- Extraction of local credentials and secrets stored by development tools and services.
- eBPF rootkit features: The payload can execute within the kernel using extended Berkeley Packet Filter (eBPF) mechanisms, enabling:
- Process hiding, file and network interface concealment.
- Privilege escalation and persistent presence within the system.
- Stealthy operation that can withstand typical user-space cleaning efforts.
- Data handling and exfiltration: The binary can archive collected data, manage multi-part files, and perform outbound HTTP transmissions to exfiltrate stolen data.
Targets and Data of Interest
- Credentials and secrets:
- GitHub access tokens and credentials
- SSH keys and artifacts
- Vault tokens and related secrets
- User and application data:
- Browser cookie databases and login artifacts
- Slack, Discord, and Teams data
- Telegram data
- Development environment materials:
- Shell histories and other local secrets tied to developer workflows
- Credentials and configuration relevant to build pipelines and CI environments
- Capability scope: The threat actor appears to focus on data that would enable access to developer accounts, code repositories, and cloud-enabled services, as well as credentials used in private communications and tooling.
Compromise Vectors and Observed Methods
- PKGBUILD modification: Attackers altered package build scripts to introduce a malicious post-install step that executes npm commands to install the harmful atomic-lockfile package.
- Orphaned package hijacking: Some packages with no active maintainers or low maintenance that were orphaned were repurposed to push the malicious payload through the standard Arch packaging workflow.
- Dependency chaining: By injecting malicious dependencies into the installation sequence, the threat actor creates a chain of trust disruption in the package installation process, enabling installation of software that you would not normally expect in a routine Arch Linux setup.
Response and Community Dynamics
- Community defense: Arch Linux maintainers mobilized to identify compromised commits, audit affected packages, and ban accounts associated with malicious activity.
- Independent analyses: The security landscape includes corroborating assessments from multiple sources, examining both the AUR package modifications and the separate post-install execution path via npm.
- Indicators of compromise: The reports provide signatures and behavioral clues, including references to the atomic-lockfile package, the pre/post-install scripts, and the eBPF-rootkit-capable binary.
- Operational guidance: Community communications emphasize verification against known indicators and monitoring for unexpected package behavior or anomalous post-install actions.
Context and Related Developments
- The Arch User Repository, while essential for obtaining niche or proprietary software and beta builds, is not a vetted space, which makes it a viable vector for supply chain compromises when threat actors gain footholds.
- Supply chain risk in Linux ecosystems has grown, with multiple campaigns affecting npm, PyPI, and various third-party repositories, underscoring the need for rigorous integrity checks across development environments.
- The dual-laceted approach—targeting both package metadata (PKGBUILD) and post-install hooks (npm-based installation of a malicious module)—highlights an evolving trend in malware delivery aimed at maximizing stealth and impact on developer workflows.
Indicators of Compromise (IOCs) and Forensic Notes
- Presence of a post-install script that triggers an npm installation of a suspicious module.
- An ELF binary named in a way that suggests dependency-related functionality, containing strings or behaviors consistent with credential theft and rootkit capabilities.
- References to the atomic-lockfile module as part of the compromised installation chain.
- Kernel-level concealment features via eBPF that enable hiding processes, files, or network interfaces.
- Data exfiltration behavior including packaging of stolen data and HTTP-based uploads.
Broader Implications
- Supply chain integrity in open-source ecosystems remains a critical concern, especially for distributions that depend on user-contributed repositories for essential tools and components.
- The incident demonstrates the importance of multi-layer verification, including monitoring for anomalous build scripts, scrutinizing changes to PKGBUILD files, and validating the provenance of maintainers and package updates.
- For developers and power users, this event reinforces the need to scrutinize dependencies introduced during installation and to maintain awareness of unusual or unexpected post-install behavior.
References and Context
- The incident aligns with broader patterns observed in recent supply-chain security analyses, including attention to package ecosystems, build-time scripts, and modules that can introduce kernel-level capabilities.
- Independent analyses and research reports from multiple security researchers and organizations have contributed to a more complete understanding of how these attacks operate and what data they aim to access.
Notes
- This post synthesizes and reformulates information from reports detailing a significant compromise affecting Arch Linux packages within the AUR, focusing on the mechanics, components, targets, and response dynamics without presenting prescriptive remediation steps.






