Armando found that @things-factory/email-base v9.0.42, a Node.js email module with over 596,000 downloads, was used as a worm delivery vehicle in a coordinated npm supply chain attack. On 2025-09-15, attackers published this version with a 3.6 MB malicious bundle.js file added to the package and a new postinstall script in package.json pointing to it. The hook fires automatically on npm install, triggering a self-contained credential stealer and worm propagation engine targeting AWS, GCP, and GitHub secrets.
Key Findings
- Malicious version: v9.0.42, published 2025-09-15; v9.0.41 is clean
- Entry point:
postinstall lifecycle hook fires node bundle.js automatically on npm install
- Targets: Node.js developer environments and CI/CD systems -- steals AWS, GCP, and GitHub credentials
- Payload: 3.6 MB webpack bundle bundles AWS SDK, Octokit GitHub client, and GCP metadata client alongside custom credential-theft and worm-republication code
- Exfiltration: Stolen data sent to https://webhook.site/bb8ca5f6-4175-45d2-b042-fc9ebb8170b7 (OAST callback)
- Detection: Script-JS.Worm.SupplyChain, Text.Worm.SupplyChain, Archive-GZIP.Worm.SupplyChain, Archive-TAR.Worm.SupplyChain
Package Background
@things-factory/email-base is a Node.js module that provides SMTP-based email sending capabilities for the Things Factory platform. It has been part of the npm registry since November 2019, giving it over five years of legitimate publication history and more than 596,000 cumulative downloads. The package has five direct dependents, all within the @things-factory monorepo ecosystem.
The long publication history and scoped namespace give the package an established level of trust. Any developer or CI/CD pipeline running npm install while v9.0.42 was current would have had the malicious bundle.js executed without any further action required.
Attack Analysis