node-core-libs@1.0.0
Malicious code in node-core-libs (npm)
Analysis
node-core-libs@1.0.0 is a combosquat package impersonating Node.js core utilities. On Windows systems, the postinstall script XOR-decodes a C2 host (node22[.]lunes[.]host) and port (3258), then HTTP GETs /nl from the C2 to download a second-stage JavaScript payload. The payload is written to %TEMP%/ms_<random>.js. A VBS launcher script is written to %TEMP%/mv_<random>.vbs, which uses WScript.Shell to spawn node.exe silently in a hidden window, then deletes itself. The postinstall hook cleans its tracks by removing the postinstall entry from its own package.json and any node-fetch-utils/package.json, writes a marker file to the temp directory, and deletes itself.
- analyzed by
- Leitwacht
- first seen
- Jun 22, 2026, 05:27 PM
- analyzed
- Jun 22, 2026, 05:28 PM
Related advisories
- ordered-btree@3.2.2
- @caspianph/storyteller@1.1.13
- vite-plugin-vue-extend@1.0.9
- vfat-tools@2.0.0
- sickle-wrapper@0.2.0
- mailconfirmer@3.3.12
- redeem-onchain-sdk@1.0.1
- period-newline@0.1.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.