ChainDrop: Inside a Self-Propagating npm Worm
ChainDrop is a self-propagating npm worm that compromised 400+ packages with hundreds of millions of weekly downloads. The worm injects a preinstall hook in package.json that downloads Bun runtime and executes a 727KB obfuscated payload, which harvests cloud IAM credentials, npm/GitHub tokens, SSH keys, developer tool secrets, and temporary GitHub Actions runner credentials. The attacker then uses stolen npm tokens to republish infected versions of legitimate packages while maintaining functionality. The worm employs blockchain-based (Ethereum) C2 resolution and can reconfigure its entire infrastructure via a single Ethereum transaction without requiring malware updates. Unit 42 detected 453 compromised repositories and identified persistence mechanisms targeting developer tools and AI coding assistants.