IronWorm and New Miasma Variant Target npm in Supply-Chain Attacks

· Original article ↗

Summary

Researchers report npm campaigns distributing IronWorm and a new Miasma variant across dozens of packages. The malware steals developer and CI/CD secrets and spreads through package publishing and GitHub; attribution for the latest Miasma activity remains unclear.

Key points

  • JFrog traced IronWorm distribution to a compromised npm account, asteroiddao, which published trojanized packages containing a Rust payload executed through a preinstall hook.
  • IronWorm targets developer secrets, spreads through GitHub commits and npm publishing, and uses an eBPF rootkit to hide processes; its hiding techniques fail when kernel lockdown is enabled.
  • Endor Labs and StepSecurity reported that a Miasma variant affected 57 npm packages across more than 286 malicious versions.
  • The campaign used a 157-byte binding.gyp file, dubbed “Phantom Gyp,” to trigger code execution during npm install and bypass many checks focused on install scripts.
  • Miasma downloads the Bun runtime to harvest credentials across developer and CI/CD environments; it can also plant files that execute when a project is opened in an AI-assisted IDE.
  • Researchers reported stolen data being sent to GitHub accounts or public repositories. The latest attacks’ attribution remains unclear, and Red Hat said a compromised GitHub account was a likely cause of its incident.
  • Developers who installed an affected version were advised to rotate credentials, disable install scripts and native rebuilds by default, and pin packages with integrity hashes.

Article Details

Event Type
Software supply-chain attacks against npm packages distributing the IronWorm stealer and a new Miasma worm variant.
Impact
The attacks compromised npm packages and developer or CI/CD environments to steal credentials and other secrets, modify repositories, and republish poisoned packages for further propagation. Miasma was reported in 57 packages across more than 286 malicious versions; IronWorm also used stolen credentials to push malicious commits across repositories.

MITRE ATT&CK

People

Threat Actors

Malware

Vendors

Products

Related Articles