Malicious code in @ngp-ui/script-test-cleanup (npm)
- GHSA-c9rj-m9rc-6jff
Description
The package declares a `preinstall` lifecycle script that reads the installing machine's hostname with `os.hostname()` and embeds it in a DNS lookup for a subdomain of `oob.jr0ch17.com` (`<hostname>.ngp-ui.script-test-cleanup.oob.jr0ch17.com`), an out-of-band collector not associated with the installer. The lookup fires automatically on `npm install`, before any code is invoked by the user, with no disclosure or opt-in. The package ships no functional implementation; its only install-time effect is the outbound DNS callback. The scope-prefixed name combined with the implausibly high version `99.0.0` matches the dependency-confusion shape, in which an internal-looking name and winning version are published publicly so that resolution inside private build systems is signalled to the collector. Data leaving the installer is limited to the host identifier; no credentials, environment contents, or files are read, and no code is fetched or executed. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/78d0ba20d615fbedd73fd1d3140928492091c0df/osv/malicious/npm/@ngp-ui/script-test-cleanup/MAL-2026-21015.json))
Text from the GitHub Advisory record.
Recommendation
Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.
Affected
@ngp-ui/script-test-cleanupnpm
No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.