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.
PKGBUILD file, adding a malicious post-install command.atomic-lockfile).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:
.ssh keys, .aws credentials, .kube configs, and browser data.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.
T1195.001 - Compromise Software Dependencies and Development Tools: This is the core technique, compromising a trusted software repository.T1059.004 - Unix Shell: The PKGBUILD file uses shell commands to execute the malicious installation.T1105 - Ingress Tool Transfer: The npm install command transfers the malicious payload from the npm registry to the victim's machine.T1552.004 - Private Keys: The infostealer payload is specifically designed to steal SSH and other private keys.T1014 - Rootkit: The use of an eBPF rootkit for stealth and persistence.The impact on developers is potentially devastating. The theft of SSH keys, API tokens, and other credentials can lead to:
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)install script should generally not be making arbitrary network connections.atomic-lockfile.npm list -g | grep atomic-lockfile
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.makepkg as a regular user.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.
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.
The 'Atomic Arch' campaign is first discovered and reported by security researchers.
A second wave of the attack is observed, utilizing the Bun runtime as an alternative to npm.

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.
Help others stay informed about cybersecurity threats
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.
Observables and indicators of compromise (IOCs) have been extracted and cataloged. Risk has been assessed and correlated with known threat actors and historical campaigns.
Detection rules, incident response steps, and D3FEND-aligned mitigation strategies are included so your team can act on this intelligence immediately.
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 detection rules are derived from the threat techniques in this article and can be converted for deployment across any major SIEM or EDR platform.