Skip to main content
MalwarePublished Updated

@ngp-ui/api-client (npm) · Malicious Code

Affects @ngp-ui/api-clientSource GCVE Database

0

Malicious package : remove @ngp-ui/api-client and rotate any secrets on hosts that installed it.

Data as of 3 Dec 2026, 08:16 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-20770

What to do

Remove @ngp-ui/api-client from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.

Affected software

ProductAffectedFixed in
npm@ngp-ui/api-clientAffected
  • =99.0.0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

@ngp-ui/api-client@99.0.0 is a dependency-confusion package with no functional code: it takes a name in the @ngp-ui scope at version 99.0.0, high enough to outrank a same-named package on a private registry. Its preinstall script runs `node preinstall.js` on npm install, which reads the machine's hostname and resolves `<hostname>.ngp-ui.api-client.oob.jr0ch17[.]com`, sending the hostname of every installing machine to a DNS server controlled by the publisher. The npm account jr0ch17-bb published @ngp-ui/api-client and 2 sibling @ngp-ui packages with the same script within a minute on 2026-11-27. --- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (cc94b33f0c72ddf6ced5d0a6a681d026cf1f932b9a28f4417ca17d55e9867da5) The package declares a `preinstall` lifecycle script that reads the installing machine's hostname via `os.hostname()` and embeds it as a subdomain label in a DNS resolution request against `*.ngp-ui.api-client.oob.jr0ch17.com`, an out-of-band callback domain operated by a third party. This fires automatically on `npm install` with no user action and transmits a host identifier off the installer's machine over DNS, a channel that bypasses typical HTTP egress controls. Aside from the beacon, the package ships an empty module export and provides no functional API. It is published under the `@ngp-ui` scope at version 99.0.0 with a description identifying it as a dependency-confusion proof of concept; the implausibly high version is consistent with an attempt to win resolution against an internal package of the same name, so installers that resolve this package receive a non-functional stub plus the install-time beacon.

References

Community reviews

Loading reviews…