@ngp-ui dependency-confusion malware: npm packages exfiltrate hostnames via DNS on install
Severity: critical · Patch status: no-fix-needed · Since 2026-11-30
On 2026-11-27 the npm account jr0ch17-bb published three dependency-confusion packages in the @ngp-ui scope — auth-client, api-client and context-providers, all at version 99.0.0 — within a minute of each other. The version number is high enough to outrank same-named internal packages on private registries, so any organisation with an internal @ngp-ui package that resolves public npm would pull the malicious version. Each package has no functional code; its preinstall script runs node preinstall.js, which reads the installing machine's hostname and resolves <hostname.<package.oob.jr0ch17[.]com, beaconing the hostname to an attacker-controlled DNS server. GitHub advisories GHSA-4gv6-7m9h-x7m2, GHSA-3m8m-wj7p-9r57 and GHSA-vjp3-2cfc-w899 (CWE-506, critical) were published 2026-11-30 with no patched versions; the packages should be treated as malware and removed.
What to do
- Check npm logs and lockfiles for @ngp-ui/auth-client, @ngp-ui/api-client or @ngp-ui/context-providers@99.0.0 and remove them from all projects and caches
- Query DNS logs for lookups to *.oob.jr0ch17[.]com to identify machines that installed the packages
- Block the domain jr0ch17[.]com and its subdomains at egress DNS/proxies
- If installed, treat affected machines as beaconing; investigate for further compromise and rotate credentials used on them
- Scope private registries to the @ngp-ui namespace and enable npm dependency-confusion protections (registry scoping, allowlists, --ignore-scripts in CI)
Sources
All live incidents on Threat Watch