{"id":"MAL-2026-21015","summary":"Malicious code in @ngp-ui/script-test-cleanup (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (bdd3d41a5083a52a45e94372863e70ebed55d4fc278bcba0a0ffaf45c112f83a)\nThe 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` (`\u003chostname\u003e.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.\n","modified":"2026-12-03T06:30:06.918320891Z","published":"2026-12-03T06:00:20Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-12-03T06:26:17.605085213Z","modified_time":"2026-12-03T06:00:20Z","sha256":"bdd3d41a5083a52a45e94372863e70ebed55d4fc278bcba0a0ffaf45c112f83a","source":"amazon-inspector","versions":["99.0.0"],"id":"IN-MAL-2026-023184"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ngp-ui/script-test-cleanup/v/99.0.0"}],"affected":[{"package":{"name":"@ngp-ui/script-test-cleanup","ecosystem":"npm","purl":"pkg:npm/%40ngp-ui/script-test-cleanup"},"versions":["99.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@ngp-ui/script-test-cleanup/MAL-2026-21015.json","cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"indicators":{"evidence_files":[{"path":"preinstall.js","sha256":"df907afa77cf104e6d89a3978b38faa0c0f7cb1d42121862e85eed2a8c152b98","tlsh":"5ed012e866eef5b83472bdc5e4bd82111873eb803246c1c1644885e146a39f55f66e68"}],"package_integrity":[{"filename":"script-test-cleanup-99.0.0.tgz","hashes":{"sha1":"5dbac34f8be70d66d5c654fe7b7949d93ddec3f8","sha512_sri":"sha512-LB3pla9ggCQpTgk4S558LLK+YixDthngtKivbgT1nkR1HEVZRkYTZpqqhAvX7NBgH3E43z8JdT1s9X1EpszYyg=="}}]}}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}