Skip to main content
root@rebel:~$ cd /news/threats/npm-supply-chain-attack-ironworm-and-miasma-malware-analysis_
[TIMESTAMP: 2026-06-05 20:40 UTC] [AUTHOR: Runtime Rebel Intel] [SEVERITY: HIGH]

npm Supply Chain Attack: IronWorm and Miasma Malware Analysis

HIGH Supply Chain #npm#IronWorm#Miasma
AI-Assisted Analysis
READ_TIME: 3 min read
// executive briefing tl;dr
  • [01] Threat actors targeted the npm registry with over 50 malicious packages to distribute the IronWorm information stealer and Miasma worm.
  • [02] Affected systems include developer environments and build servers utilizing poisoned npm packages that deploy eBPF kernel rootkits for persistence.
  • [03] Organizations must audit npm dependencies immediately and implement software bill of materials scanning to identify and remove malicious packages.

A sophisticated Supply Chain Attack has been identified within the npm registry, targeting the developer community through more than 50 compromised or malicious packages. According to The Hacker News, security researchers at JFrog have uncovered a campaign utilizing two primary malware strains: a Rust-based information stealer dubbed IronWorm and a self-propagating worm variant known as Miasma. These threats represent a significant escalation in the technical complexity of repository-based attacks, particularly through the implementation of kernel-level persistence mechanisms.

IronWorm Rust-Based Info Stealer Analysis

The IronWorm component is a highly specialized piece of malware designed to target the local environments of software engineers. In this IronWorm Rust-based info stealer analysis, researchers found that the binary is engineered to scrape every secret available on the host machine. This includes environmental variables, SSH keys, AWS credentials, and configuration files associated with various cloud providers and development tools.

What differentiates IronWorm from standard malware is its use of an eBPF (Extended Berkeley Packet Filter) kernel rootkit. By operating at the kernel level, the malware can hide its presence from standard user-mode monitoring tools and EDR solutions. This technique allows the attacker to intercept system calls and manipulate network traffic without alerting the user. The stolen data is then exfiltrated to a remote C2 server, providing the APT or threat actor group with the necessary credentials to facilitate Lateral Movement within a corporate network. To ensure long-term access, the malware employs sophisticated persistence scripts that trigger upon system reboot or shell initiation.

The Miasma Self-Spreading Worm

While IronWorm focuses on data theft, the Miasma variant is designed for propagation. Miasma functions as a self-spreading worm that automatically attempts to infect other legitimate npm packages found on the local filesystem. When a developer unknowingly installs a poisoned package, Miasma scans for other package.json files and injects itself as a dependency. This creates a cascading effect where a single infected developer environment can potentially lead to dozens of malicious packages being uploaded back to the npm registry or internal mirrors. This mechanism essentially automates the TTP of poisoning the supply chain, making the outbreak difficult to contain manually.

How to Detect IronWorm npm Malware

For security teams and SOC analysts, determining how to detect IronWorm npm malware requires moving beyond simple file hash matching. Because the malware uses eBPF for stealth, defenders should monitor for unauthorized loading of eBPF programs using tools like bpftool. Additionally, anomalous network connections originating from build processes or developer workstations toward unrecognized IP addresses should be flagged in the SIEM. Reviewing the integrity of the node_modules directory and looking for unexpected modifications in the dependency tree is a necessary step for identifying the Miasma worm’s presence.

To address this threat, organizations must adopt a Zero Trust approach to third-party code. Implementing npm supply chain attack mitigation starts with the use of lockfiles (package-lock.json) and mandatory code reviews for any new dependency additions. Furthermore, developers should use npm audit and commercial SCA (Software Composition Analysis) tools to identify known malicious IoC patterns.

Given the kernel-level nature of the IronWorm rootkit, infected machines should be treated as fully compromised. Simple removal of the malicious npm package may not be sufficient if the eBPF rootkit has already achieved persistence. The recommended response is to wipe the affected workstation, rotate all secrets (including cloud tokens and SSH keys), and conduct a thorough audit of any code pushed from that machine during the window of infection.

Advertisement