ChainDrop worm spreads via npm packages, steals credentials, and uses Ethereum for C2
The ChainDrop worm has infected hundreds of npm packages, steals a wide range of developer credentials, and uses an Ethereum smart contract for command-and-control.
Security & privacy Unit 42 6 Aug 2026 Attack Real-world evidence
Published as “ChainDrop: Inside a Self-Propagating npm Worm”
Why it matters
ChainDrop shows that a compromised npm package can silently steal a wide range of credentials and propagate across the software supply chain, highlighting the need for stronger package vetting and runtime protections.
Summary
Unit 42 discovered a self-propagating npm worm called ChainDrop that has compromised over 400 packages, many of which are downloaded hundreds of millions of times weekly. The worm harvests cloud, GitHub, npm, SSH, and other developer credentials, even reading GitHub Actions runner memory for temporary tokens. It uses a preinstall hook to drop a Bun-based payload, establishes persistence via VS Code and Claude configuration files, and contacts a C2 server whose address is resolved from an Ethereum smart contract that can be rotated on-chain without updating the malware. Real-world observations include 453 malicious GitHub repositories across five accounts and execution in ten distinct environments.
What they found 3
- ChainDrop infected over 400 npm packages that are collectively downloaded hundreds of millions of times each week.
“A self-propagating npm worm nicknamed ChainDrop infected over 400 packages that are collectively downloaded hundreds of millions of times each week.”
- The worm obtains C2 domains by calling an Ethereum smart contract.
“The worm doesn't contain a hard-coded C2 domain. Instead, it calls an Ethereum smart contract to ask where to send stolen data.”
- The worm can extract temporary credentials from GitHub Actions runner memory.
“It can also extract temporary credentials from GitHub Actions runner memory and use stolen npm publishing tokens to infect and republish additional packages while preserving their legitimate functionality.”
Caveats 4
- We did not observe this path execute, and it cannot execute anywhere except in release-drafter.yml inside the opensearch-project/opensearch-js workflow.
- The installer was decrypted but never invoked. The routine that pipes it to bash has no call site, so treat OS-level persistence as latent capability, not observed behavior.
- The 453 repository counts might be only a starting point for possible compromises.
- The sample embeds an installer for these artifacts, but we did not identify a call site on its main execution path.
What’s new here 4
- First observed npm supply-chain worm that uses an Ethereum smart contract for domain resolution and on-chain C2 rotation.
- Capability to scrape live memory of GitHub Actions runners for OIDC and other short-lived credentials.
- Typosquatting propagation that leverages sigstore provenance, making valid signatures appear on malicious releases.
- Cross-linked persistence through VS Code tasks and Claude Code settings, turning developer tools into execution vectors.