New 'Atomic Arch' Campaign Abuses Arch User Repository (AUR) to Distribute Malware

'Atomic Arch' Supply Chain Attack Hijacks Orphaned Linux Packages to Target Developers

HIGH
June 13, 2026
5m read
Supply Chain AttackMalwareThreat Actor

Related Entities

Products & Tech

Arch User Repository (AUR)npm LinuxRusteBPF

Other

Atomic ArchSonatype

Full Report

Executive Summary

A new and insidious supply chain attack, named 'Atomic Arch,' has been identified targeting developers using the Arch Linux ecosystem. First reported around June 11, 2026, the campaign involves threat actors taking control of legitimate, trusted software packages in the Arch User Repository (AUR) that have been abandoned by their original maintainers. The attackers then modify the package's build instructions (PKGBUILD file) to add a malicious post-install script. This script covertly downloads and executes a malicious package from the public npm registry, which in turn deploys credential-stealing malware. The attack is dangerous because it abuses the inherent trust users have in established AUR packages. Security firm Sonatype has been tracking the campaign, which has already compromised dozens of packages and appears to be ongoing.

Threat Overview

  • Campaign Name: Atomic Arch
  • Target: Developers using Arch Linux and the Arch User Repository (AUR).
  • Attack Vector: Supply chain attack via hijacking of orphaned AUR packages.
  • Methodology:
    1. Attacker identifies a trusted but orphaned AUR package.
    2. Attacker requests and is granted ownership of the package.
    3. Attacker modifies the PKGBUILD file, adding a malicious post-install command.
    4. A user installs or updates the trusted package, unknowingly executing the malicious command.
    5. The command fetches and installs a malicious npm package (e.g., atomic-lockfile).
    6. The npm package deploys the final payload: an infostealer and a rootkit.
  • Payload: A Rust-based infostealer and an eBPF rootkit designed to harvest developer credentials (SSH keys, API tokens, etc.).

Technical Analysis

This attack cleverly subverts the community-driven trust model of the AUR. Unlike typosquatting, where an attacker creates a new, similarly named package, this method inherits the reputation and userbase of a previously legitimate project.

The core of the attack lies in modifying the PKGBUILD file. A typical malicious addition might look like this in the post_install() function:

# Malicious command added by attacker
/usr/bin/npm install -g atomic-lockfile

When an unsuspecting user runs makepkg -si or uses an AUR helper to install/update the compromised package, this command is executed with their user privileges. The atomic-lockfile npm package, tracked by Sonatype as Sonatype-2026-003775, contains the final payload. Analysis shows it includes:

  • A Rust-based Infostealer: This component is designed to search for and exfiltrate sensitive developer-related information, such as .ssh keys, .aws credentials, .kube configs, and browser data.
  • An eBPF Rootkit: This provides stealth and persistence capabilities, allowing the malware to hide its processes and network connections from the system administrator.

The campaign has evolved, with a second wave on June 12 using the Bun runtime as an alternative to npm for installation, demonstrating the attacker's adaptability.

MITRE ATT&CK TTPs

Impact Assessment

The impact on developers is potentially devastating. The theft of SSH keys, API tokens, and other credentials can lead to:

  • Compromise of Corporate Networks: A developer's stolen SSH key could grant an attacker direct access to production servers or code repositories.
  • Further Supply Chain Attacks: Stolen credentials for package registries (like npm or PyPI) could allow the attacker to inject malware into even more widely used software.
  • Financial Theft: Stolen cryptocurrency wallet keys or credentials for cloud providers (like AWS) can lead to direct financial loss.
  • Loss of Intellectual Property: Attackers could gain access to and steal proprietary source code.

Detection & Response

  1. Audit AUR Packages: Developers using AUR should be extremely cautious. Before installing or updating any package, especially one that was recently orphaned and adopted, carefully inspect the PKGBUILD file for any suspicious commands. Look for unexpected network calls, curl | bash patterns, or installation of packages from other ecosystems like npm or pip. (D3-DA: Dynamic Analysis)
  2. Network Monitoring: Monitor for unexpected outbound network connections from build processes or package installation scripts. An install script should generally not be making arbitrary network connections.
  3. Check for Malicious Packages: Search your system for the presence of known malicious npm packages like atomic-lockfile.
    npm list -g | grep atomic-lockfile
    

Mitigation

  1. Scrutinize Build Scripts: Never blindly trust build scripts, even from a known package. Always review the PKGBUILD (or Makefile, setup.py, etc.) before building and installing software from community sources. Treat AUR helpers with caution, as they can automate away this crucial review step.
  2. Build in Isolated Environments: Consider building and packaging software in ephemeral, isolated environments like containers or VMs. This can limit the malware's ability to access sensitive files on your host machine. (D3-DE: Decoy Environment)
  3. Principle of Least Privilege: Do not run build or install commands as root unless absolutely necessary. Run makepkg as a regular user.
  4. Use Hardware Tokens: Store high-value SSH and GPG keys on a hardware token (like a YubiKey). This makes it impossible for malware to simply copy and exfiltrate the key file.

Timeline of Events

1
June 11, 2026
The 'Atomic Arch' campaign is first discovered and reported by security researchers.
2
June 12, 2026
A second wave of the attack is observed, utilizing the Bun runtime as an alternative to npm.
3
June 13, 2026
This article was published

MITRE ATT&CK Mitigations

While AUR packages are not typically signed by a central authority, developers should sign their own git commits and tags, and users should verify them. This helps ensure the code has not been tampered with by a malicious actor who has taken over an account.

Building and installing software in a containerized or sandboxed environment can prevent a malicious build script from accessing sensitive files on the host system.

Carefully reviewing build scripts before execution is a manual form of execution prevention. Automated tools can also be used to scan scripts for suspicious commands.

D3FEND Defensive Countermeasures

The core defense against attacks like Atomic Arch is manual and automated analysis of build scripts before execution. Developers must treat every PKGBUILD file from the AUR as untrusted code. Before running makepkg, a developer should manually open the file and read its contents. Look for any lines that are not directly related to downloading source code, applying patches, and compiling. Specifically, any commands that use curl, wget, npm, pip, or any other package manager to fetch external resources during the build or install phase are massive red flags. This manual review is the most critical step. For organizations, this can be supplemented by automated tooling that scans build scripts for these suspicious patterns and flags them for review, preventing a developer from accidentally installing a compromised package.

To mitigate the impact of a successful compromise, developers should store their most sensitive credentials, like SSH keys for production access and code signing keys, on a hardware security token (e.g., a YubiKey). The infostealer payload in the Atomic Arch campaign works by finding and copying key files from the filesystem (e.g., from ~/.ssh/). If the private key physically exists only on the hardware token, it cannot be copied by malware. The malware might steal the public key, but that is not sensitive. Any attempt to use the key (e.g., to SSH into a server) would require physical interaction with the token (a button press). This effectively renders the stolen credentials useless to the attacker and provides a powerful defense against credential theft malware.

Timeline of Events

1
June 11, 2026

The 'Atomic Arch' campaign is first discovered and reported by security researchers.

2
June 12, 2026

A second wave of the attack is observed, utilizing the Bun runtime as an alternative to npm.

Article Author

Jason Gomes

Jason Gomes

• Cybersecurity Practitioner

Cybersecurity professional with over 10 years of specialized experience in security operations, threat intelligence, incident response, and security automation. Expertise spans SOAR/XSOAR orchestration, threat intelligence platforms, SIEM/UEBA analytics, and building cyber fusion centers. Background includes technical enablement, solution architecture for enterprise and government clients, and implementing security automation workflows across IR, TIP, and SOC use cases.

Threat Intelligence & AnalysisSecurity Orchestration (SOAR/XSOAR)Incident Response & Digital ForensicsSecurity Operations Center (SOC)SIEM & Security AnalyticsCyber Fusion & Threat SharingSecurity Automation & IntegrationManaged Detection & Response (MDR)

Tags

Atomic ArchSupply Chain AttackAURArch LinuxnpmMalwareInfostealerRootkitDeveloper Security

📢 Share This Article

Help others stay informed about cybersecurity threats

🎯 MITRE ATT&CK Mapped

Every tactic, technique, and sub-technique used in this threat has been identified and mapped to the MITRE ATT&CK framework for consistent, actionable threat language.

🧠 Enriched & Analyzed

Observables and indicators of compromise (IOCs) have been extracted and cataloged. Risk has been assessed and correlated with known threat actors and historical campaigns.

🛡️ Actionable Guidance

Detection rules, incident response steps, and D3FEND-aligned mitigation strategies are included so your team can act on this intelligence immediately.

🔗 STIX Visualizer

Structured threat data is packaged as a STIX 2.1 bundle and can be visualized as an interactive graph — relationships between actors, malware, techniques, and indicators.

Sigma Generator

Sigma detection rules are derived from the threat techniques in this article and can be converted for deployment across any major SIEM or EDR platform.