@ngp-ui/script-test-cleanupnpm
Advisory published Updated
@ngp-ui/script-test-cleanup is a confirmed malicious npm package (MAL-2026-21015) that steals credentials and exfiltrates sensitive data (malicious version 99.0.0). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in @ngp-ui/script-test-cleanup (npm)
What this malware does
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.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Credential / info stealerFind it
Search your lockfiles and build artifacts for @ngp-ui/script-test-cleanup (version 99.0.0).
If you installed it — respond
@ngp-ui/script-test-cleanup is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.
Did it already run?
If @ngp-ui/script-test-cleanup was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks @ngp-ui/script-test-cleanup-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.