node-core-libs
This report shows the evidence for node-core-libs@1.1.0. 2 of 2 known versions are blocked or flagged. See all versions.
OpenSSF/OSV Malicious Advisory
imported 4mo ago · by OpenSSF/OSVOpenSSF/OSV advisory MAL-2026-6276 confirms this npm version as malicious.
Advisory
MAL-2026-6276
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in node-core-libs (npm)
Details
scripts/postinstall.js runs automatically on `npm install` (Windows only) and behaves as a classic install-time dropper. It XOR-decodes (key 0x5A) a hardcoded host and port to produce `node22.lunes.host:3258`, performs an HTTP GET to `http://node22.lunes.host:3258/nl`, writes the response bytes to `%TEMP%/ms_<rand>.js`, and launches them via a generated `wscript.exe //B //nologo <vbs>` shim with `detached:true` and `windowsHide`. The destination is plain HTTP with no version pin, no hash verification, and no integrity check — any bytes the operator of node22.lunes.host returns are executed on the installer's machine. After dropping the payload the script self-cleans: a `_tidy()` routine rewrites the package's own package.json to remove `scripts.postinstall` and `scripts.install`, then unlinks the postinstall script itself, frustrating post-incident review. The script also writes `%TEMP%/.nfc_root` as a coordination marker and probes for a sibling package `node-fetch-utils` (a likely typosquat of `node-fetch`) referencing a `node_launcher.js` that patches lockfiles, indicating a multi-package campaign with persistence beyond this tarball. The XOR obfuscation of the C2 host, port, and a `changeme-spectre` key is deliberate concealment of the destination from registry scanners. Installer impact: running `npm install node-core-libs` on Windows results in arbitrary attacker-controlled code execution under the installing user's account.
## Source: ghsa-malware (80f8f93301656d6b3d3ed01546e0a32ffed7cce09b6e61442c1b31fe88b25dad) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Source & flagged code
0 flagged · loading sourceNo flagged code excerpts are attached to this scan.
Findings
1 High
HighOsv Malicious Advisory
Affected versions and remediation
This report applies to node-core-libs@1.1.0.
The same advisory and Firewall decision cover 2 recorded versions
1.0.0, 1.1.0
The versions list below shows the verdict for each recorded version.
- Avoid installing node-core-libs@1.1.0. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Source advisory published: .
This report uses published external intelligence. The advisory does not provide a separate source-code analysis for each listed version.
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.