Skip to content
MediumNews

Shai-Hulud-style NPM worm hits CI pipelines and AI coding tools

Published
Record updated
View JSON

Summary

Socket researchers uncovered an active npm supply chain campaign they named SANDWORM_MODE, a Shai-Hulud-style worm that spreads through at least 19 typosquatted packages impersonating developer utilities and AI tools, including three that impersonate Claude Code and one that targets OpenClaw. The malware harvests npm and GitHub tokens, environment secrets and cloud keys, then uses them to push malicious changes into other repositories. It also deploys a malicious MCP server into AI assistant configurations, where prompt injection can trick the assistant into sending local SSH keys or cloud credentials to the attacker.

Mitigation

The source states that npm has hardened the registry against Shai-Hulud-class worms, with short-lived, scoped tokens, mandatory two-factor authentication for publishing, and identity-bound "trusted publishing" from CI. It says these controls are designed to contain the blast radius from stolen secrets, but their effectiveness depends on how quickly maintainers adopt them.