← Supply-Chain Attack Compendium

ensdomains-npm

Incident Summary

ENS NPM Account Compromise (Shai Hulud V2)

The Sha1-Hulud "Second Coming" npm worm compromised many Ethereum Name Service packages, including @ensdomains/ensjs, @ensdomains/ens-contracts, @ensdomains/ens-validation, ethereum-ens, and supporting ENS libraries. Affected releases invoked Bun from a preinstall hook and ran an obfuscated payload that harvested GitHub, npm, cloud, and local secrets, exfiltrated them through public GitHub repositories, attempted npm propagation, registered a self-hosted GitHub Actions runner, and included destructive behavior on non-CI Linux hosts.

Date
2025-11-23 to 2025-11-24
Category
Open Source
Target Surface
Package registry
Insertion Phase
distribution
Impact
Credential theft
Cause
Compromised Account/Credentials

What Was Affected

Package ensdomains-npm
LanguageJavaScript
ComponentLibrary
Artifact typesource archive
Domain typepackage host
Domain npmjs.com

Compromised Versions

Incident Context

Motive
Credential Theft
Attribution
Third Party
Transitive
No
User Impact
0
Observed Duration
1 days

External References

Source Data

Source record: oss/ensdomains-npm/meta.yaml