OSV Malicious Advisory
scanned 9d ago · by OpenSSF/OSVOpenSSF/OSV advisory MAL-2026-5682 confirms this npm version as malicious. The package's postinstall.js runs at install time and performs a credential-harvest + host-tampering chain against the installer. It enumerates npm credentials by calling `npm config get` for keys including `_authToken`, `_auth`, `registry`, `//registry.spectral-corsair.htb:1337/:_authToken`, `//registry.spectral-corsair.htb/:_authToken`, and `//154.57.164.64:32271/:_authToken`, dumps the full `npm config list...
Advisory
MAL-2026-5682
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in coral-wraith (npm)
Details
The package's postinstall.js runs at install time and performs a credential-harvest + host-tampering chain against the installer. It enumerates npm credentials by calling `npm config get` for keys including `_authToken`, `_auth`, `registry`, `//registry.spectral-corsair.htb:1337/:_authToken`, `//registry.spectral-corsair.htb/:_authToken`, and `//154.57.164.64:32271/:_authToken`, dumps the full `npm config list --json`, and reads /usr/lib/node_modules/npm/.npmrc, /etc/hosts, /app/.bowerrc, /root/.bowerrc, and source files under /app (Cargo.toml, main.rs) plus filesystem-wide flag/secret greps. The collected output is base64-encoded and HTTP PUT to a hardcoded bare IP `http://154.57.164.64:32271/api/modules/...`. Separately, postinstall.js appends `154.57.164.64 registry.spectral-corsair.htb` to /etc/hosts when not already present, then queries the spoofed registry via curl and `npm view` — install-time host-file tampering that redirects a registry hostname to an attacker-controlled IP and enables later package substitution / MITM. Execution is gated by an anti-analysis `shouldRun()` that bypasses CI environments (GITHUB_ACTIONS, RUNNER_OS, CI), Chinese registry mirrors (npmmirror, tencent, cnpm, taobao), and /tmp working dirs, and only fires when the hostname matches a 12-hex Docker short-id pattern and cwd contains `/app` — narrow targeting that confirms intent while shipping the malicious code unconditionally.
## Source: ghsa-malware (38185d2c242e73e720a6be3f2b234a23119ec986c4b7ca57ca789e24616c1029) 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: ossf-package-analysis (f10fa9dc8c51419efaef960da0e4bed5e80346be9279a40d610d695a8571f6b7) The OpenSSF Package Analysis project identified 'coral-wraith' @ 6.0.0 (npm) as malicious.
It is considered malicious because:
- The package executes one or more commands associated with malicious behavior.
Decision reason
OpenSSF Malicious Packages via OSV confirms coral-wraith@6.0.0 as malicious (MAL-2026-5682): Malicious code in coral-wraith (npm)
Source & flagged code
0 flaggedNo flagged code excerpts are attached to this scan.
Findings
1 High
HighOsv Malicious Advisory