Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Malicious package

node-core-libsnpm

Malicious code in node-core-libs (npm) Remove it immediately and rotate any exposed credentials.

MAL-2026-6276
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall node-core-libs

What this malware does

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.

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.

Malicious versions

2 flagged
1.0.01.1.0

Indicators of compromise (SHA-256)

80f8f93301656d6b3d3ed01546e0a32ffed7cce09b6e61442c1b31fe88b25dad
23bed919b75fd759cc0672f81d31d551d42fe06c5a000de422643fde32149e0c
d33f74e3f73fd5580ecf994b7db0349ee540754d65d4467b8b04b8c79e3d257b

Detection & response playbook

Backdoor / remote access
  1. Find it

    Scan your lockfiles (package-lock.json, pnpm-lock.yaml, yarn.lock, requirements.txt, poetry.lock, etc.) and build artifacts for node-core-libs (2 malicious versions). O3 Security's supply-chain scanner checks every dependency against known-malicious package intelligence at install time and in CI, flagging node-core-libs across your stack and pipelines.

  2. If you installed it — respond

    node-core-libs establishes remote access, so treat any host that installed it as fully compromised. Isolate the machine, remove the package, rotate all credentials it could reach, and rebuild from a trusted image rather than cleaning in place — a backdoor may have planted additional persistence.

  3. Did it already run?

    If node-core-libs was ever installed, its post-install/runtime payload may have already executed. O3's L7 egress monitoring and runtime eBPF sensors detect the credential exfiltration or command-and-control callback after install and block the malicious outbound channel, so you catch and contain the actual compromise — not just the presence of the package.

  4. How O3 protects you

    O3 blocks node-core-libs before install through its supply-chain scanner, and if it has already run, detects and severs the exfiltration or C2 callback at runtime through L7 egress monitoring and eBPF.

Frequently asked questions

No. node-core-libs on npm has been identified as a malicious package (versions 1.0.0, 1.1.0 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

GHSA-6vr2-5hpq-589cIN-MAL-2026-007410IN-MAL-2026-007409

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks node-core-libs-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the C2 callback and severs the channel.