New Shai-Hulud Variants Hit More Than 100 npm and PyPI Packages

· Original article ↗

Summary

New Shai-Hulud variants targeted more than 100 npm and PyPI packages. The Miasma and Hades variants harvest credentials and spread through accessible packages; researchers identified 471 malicious artifacts.

Key points

  • Researchers identified 471 malicious artifacts across affected npm and PyPI packages.
  • Miasma runs during npm installation, scans local systems and connected cloud services for credentials and secrets, then uses them to infect packages the victim can access.
  • Some malicious npm packages used a weaponized binding.gyp file designed to bypass postinstall execution logic while behaving similarly.
  • The Hades PyPI variant used a *-setup.pth file to run at Python startup, fetch the Bun JavaScript runtime, and execute JavaScript code.
  • Hades shares Miasma's credential-harvesting and self-spreading behavior, and uses a Shai-Hulud mechanism that publishes collected information to new GitHub repositories.
  • A June 8 Hades wave included phantom PyPI releases and a changed execution chain that split the loader from the payload to evade detection.

Article Details

Event Type
Software supply-chain malware attacks targeting NPM and PyPI packages
Impact
The attacks affected more than 100 packages across NPM and PyPI, with 471 malicious artifacts identified. The Miasma and Hades variants harvested credentials, API keys, tokens, and other secrets, spread by infecting packages accessible to victims, and used GitHub repositories to publish collected information. A Red Hat Hybrid Cloud Console JavaScript ecosystem incident involved 32 infected packages.

MITRE ATT&CK

Threat Actors

Malware

Vendors

Products

Related Articles