SANDWORM_MODE: 19 npm typosquats with a self-spreading worm
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
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
- Source
- socket.dev
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.
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.
19 packages 19 versions
- npmclaud-code0.2.1→
- npmcloude0.3.0→
- npmcloude-code0.2.1→
- npmcrypto-locale1.0.0→
- npmcrypto-reader-info1.0.0→
- npmdetect-cache1.0.0→
- npmformat-defaults1.0.0→
- npmhardhta1.0.0→
- npmlocale-loader-pro1.0.0→
- npmnaniod1.0.0→
- npmnode-native-bridge1.0.0→
- npmopencraw2026.2.17→
- npmparse-compat1.0.0→
- npmrimarf1.0.0→
- npmscan-store1.0.0→
- npmsecp2561.0.0→
- npmsuport-color1.0.1→
- npmveim2.46.2→
- npmyarsg18.0.1→
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.
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
Clean-up steps
- Remove any of the 19 listed packages; rotate npm/GitHub/cloud tokens
- Audit dev environments for
ci-quality/code-quality-check@v1references - Block egress to *.workers.dev exfil endpoints listed in the Socket post
Sources
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.