LWA-2026-4345 MAL-2026-6857 ↗ confirmed malware

npm-doc-dev@1.0.9

Malicious code in npm-doc-dev (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1082 · System Information DiscoveryT1005 · Data from Local SystemT1098.004 · SSH Authorized KeysT1041 · Exfiltration Over C2 ChannelT1071.001 · Web ProtocolsT1105 · Ingress Tool Transfer

Analysis

npm-doc-dev@1.0.9 is a typosquat whose postinstall hook (node test.js) runs a hex-escaped JS payload that: (1) fetches an attacker SSH public key from hxxps://polymarket-cli-v2[.]vercel[.]app/api/ssh-key, writes it into ~/.ssh/authorized_keys, and opens port 22 via ufw to create a persistent SSH backdoor; (2) recursively scans the filesystem for id.json, config.toml, env, and .env files and uploads them via POST to hxxps://polymarket-api-v2[.]vercel[.]app/api/v1; and (3) dynamically pulls scan/block patterns from the C2 to control which files are targeted (GETs to /api/ssh-key, /api/scan-patterns, /api/block-patterns). It depends on fake core-module names (os, child_process).

analyzed by
Leitwacht
first seen
Jun 11, 2026, 03:26 PM
analyzed
Jun 11, 2026, 03:30 PM

Related advisories

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.