Armando found that @operato/help v9.0.48, a Web Component help system with 685,860 total downloads and 28 direct dependents, was injected with a self-propagating worm that fires automatically on npm install and harvests credentials for AWS, GCP, and GitHub, then exfiltrates them to a hardcoded webhook.site endpoint. The malicious version was published on 2025-09-16. Version 9.0.47 is clean.
Key Findings
- Malicious version: v9.0.48, published 2025-09-16; v9.0.47 is clean
- Entry point: postinstall lifecycle hook fires bundle.js automatically on npm install
- Targets: Node.js developer environments, CI/CD pipelines -- steals AWS credentials (environment variables, IMDS), GCP credentials (metadata server), GitHub tokens, and crypto wallet seeds (Truffle)
- Propagation: worm re-publishes to npm registry to spread across versions
- Evasion: payload bundled inside a 3.6 MB webpack bundle that embeds the AWS SDK as cover
- Detection: Script-JS.Worm.SupplyChain (bundle.js), Text.Worm.SupplyChain (package.json)
Package Background
@operato/help is a Web Component help widget published on npm since January 30, 2022. It is maintained under the npm account eh and has accumulated 685,860 total downloads with 28 direct dependents. The package provides help dialog functionality following open-wc recommendations and is used in operato-based application frameworks. Its age and dependents made it an effective supply chain target -- any CI/CD pipeline installing the package during the attack window executed the worm payload without any additional user interaction.
Attack Analysis
Between v9.0.47 and v9.0.48, 1 file changed: bundle.js was updated as the worm re-published the package with the same payload. The postinstall hook in package.json references bundle.js, guaranteeing that every machine running npm install @operato/help executed the worm payload immediately upon install.
The bundle itself is a compressed webpack module collection. Armando's analysis identified six attacker-authored modules inside it: _modules_github, _modules_aws, _modules_gcp, , and . Each module targets a distinct credential store. The aws module queries both AWS environment variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN) and the AWS Instance Metadata Service at 169.254.169.254 and 169.254.170.2, capturing credentials from EC2 instances and ECS tasks. The gcp module queries the GCP metadata server at metadata.google.internal for service account tokens. The github module harvests GitHub authentication tokens. The truffle module accesses locally stored cryptocurrency wallet seeds.