Brifing

ChainDrop Worm Infiltrates npm Supply Chain

Next-gen malware bypasses standard defenses with novel propagation techniques.

1Evolution of Shai-Hulud

Discovered by Microsoft in August 2025, ChainDrop represents a new variant of the Shai-Hulud worm first observed in September 2025. Named after the giant sandworms from Frank Herbert's Dune series, this malware self-replicates through npm packages while evading traditional defenses. The attack compromised 444 packages with a combined monthly download volume of 2 billion, specifically targeting critical infrastructure dependencies like keyv and flat-cache.

2Stealth Propagation Method

ChainDrop spreads without leaving traces in source repositories. Instead of conventional npm install methods, it manipulates tarball archive files. According to ActiveState CEO Abby Kearns, the attack's uniqueness lies in bypassing open source repository defenses through unconventional means. Simply opening an infected Git branch in VS Code or Claude Code can trigger propagation, while code reviews fail to reveal tampering evidence.

3Dual Attack Mechanism

When executed, the worm scans user workspaces for npm tokens with write privileges and cloud credentials. It examines shell configurations, environment variables, and even live memory. Stolen data gets encrypted and transmitted to attacker-controlled servers. Upon finding npm tokens, it downloads all accessible package tarballs. Unlike source code manipulation, tarball reconstruction makes detection significantly harder.

4GitHub Integration Threat

ChainDrop actively hunts GitHub credentials. When found, it queries GitHub API to list accessible repositories and branches, then injects malicious configuration code directly. When other developers open these repositories in VS Code, background tasks harvest credentials, perpetuating the infection cycle. This automated propagation method poses particular risks for collaborative development environments.

5CI/CD Pipeline Risks

The attack's severity stems from npm's deep integration into automated CI/CD processes. Automatic dependency updates during rebuilds provide pathways for worm infiltration into fresh builds. ActiveState's Medium post advises checking for unexpected files like .claude/settings.json and .vscode/tasks.json across all branches - not just main. These could indicate compromise even without direct package installation.

6Compromised Packages Cleanup

All infected packages were swiftly removed from npm. Open source security firm SafeDep published a complete list of affected packages with version numbers for developer reference. Beyond cleanup, security teams must reevaluate defense strategies considering ChainDrop's novel attack vectors. The incident highlights how traditional dependency scanning might miss emerging threats.

7Reconfiguring Security Mindsets

Abby Kearns emphasizes treating repository configurations as executable content. Trusted publishing tools like GitHub Actions require reassessment. This campaign exploited an execution path that dependency scanners weren't configured to monitor - within tools rapidly adopted by engineering teams over the past two years. The gap existed precisely where security assumptions were strongest.

8Future Threat Landscape

Experts warn ChainDrop represents just the beginning. While being the first campaign to weaponize this particular gap at scale, it certainly won't be the last. The incident necessitates fundamental reevaluation of open source security approaches. Implementing additional controls in automated publishing workflows becomes critical to prevent similar supply chain attacks that target overlooked execution paths.

Original article: www.theregister.com - Articles — ChainDrop Solucanı npm Tedarik Zincirine Sızdı