SANDWORM_MODE: 19 npm typosquats with a self-spreading worm

CriticalTyposquatnpm

Socket disclosed a Shai-Hulud-style self-propagating worm spread across at least 19 typosquatted npm packages from accounts official334 and javaorg. It harvests CI secrets and crypto keys, propagates via stolen npm/GitHub tokens, and injects prompt-injection logic into MCP servers used by AI coding assistants.

Published 20 Feb 2026

At a glancenpm-2026-02-20-sandworm-mode
19
Packages tracked19 malicious versions

Every version named by the advisory is in the scanner, so a lockfile check finds it directly.

Severity
Critical
Type
Typosquat
Published
20 Feb 2026
Ecosystems
npm
Detected by
Socket
Also known as
SANDWORM_MODE, Shai-Hulud variant

Typosquat. A package that never had a legitimate version, named to be mistaken for a real one - a misspelling, a lookalike scope, or an impersonated vendor SDK.

What happened

The full picture

Socket called this campaign SANDWORM_MODE after a marker string embedded in the worm payload. It is a Shai-Hulud-style self-propagating attack - same shape as the September 2025 original - refined to target the AI-developer-tools surface specifically.

Nineteen typosquatted packages were published from two npm accounts: official334 and javaorg. The package names cluster around AI coding tools and their adjacent typo space (claud-code, cloude-code, cloude, opencraw). On install, the payload harvests CI secrets, npm and GitHub tokens, and any crypto keys it can find; then it uses the stolen tokens to publish further malicious versions of any package the maintainer can reach.

The novel piece is the MCP-server injection: the worm modifies mcp.json and equivalent config files on disk to attach prompt-injection logic that targets downstream AI coding assistants. The intent is to weaponise the assistant's own context - when a developer asks Claude Code, Cursor, or similar to "look at the issue and fix it," the poisoned MCP server returns content engineered to make the assistant produce malicious follow-on actions.

Defenders should audit dev environments for any reference to ci-quality/code-quality-check@v1 (a planted GitHub Actions workflow used for propagation) and block egress to the *.workers.dev exfil endpoints listed in the Socket post.

wormtyposquatcredential-theftprompt-injectionci-cd-compromise
Affected packages

19 packages 19 versions

These are usually pulled in as transitive dependencies rather than installed directly. Check your whole tree at once. It runs in your browser and nothing is uploaded.

Impact

What it does if you installed it

  • CI/CD secrets, npm tokens, GitHub tokens and crypto keys exfiltrated
  • AI coding tools (Claude Code and OpenClaw impersonations) targeted for downstream developer compromise
  • Worm propagation through stolen publish credentials
What to do

Clean-up steps

  1. Remove any of the 19 listed packages; rotate npm/GitHub/cloud tokens
  2. Audit dev environments for ci-quality/code-quality-check@v1 references
  3. Block egress to *.workers.dev exfil endpoints listed in the Socket post
References

Sources

npm-2026-02-20-sandworm-modeBack to incidentsSubmit a correction
Am I affected?

Check your lockfile against this and every other incident.

Paste a lockfile and it is matched on your own device against every compromised version we track. Nothing is uploaded and there is no account.