{"id":"MAL-2026-21130","summary":"Malicious code in demo-pkg-e2e (npm)","details":"demo-pkg-e2e 1.0.0 contains only a stub index.js, but declares its single dependency, demo-pkg-core, as a tarball URL on a host controlled by the publisher (hxxps://pkg[.]sl4x0[.]xyz/t/ea414b39aa1b293bd85d9ca62823a501.tgz) instead of a registry version. The dependency's code is therefore not hosted on npm and can be changed at any time. During `npm install`, npm downloads that tarball (demo-pkg-core 1.0.0, last modified 2026-12-03 15:10 UTC) and runs its postinstall script (`node i.js`), which calls dns.resolve4 and sends a DNS query to a subdomain of oob[.]sl4x0[.]xyz encoding the installing machine's user name, host name, working directory name and a timestamp (for example \u003cuser\u003e.\u003chost\u003e.\u003cdir\u003e.\u003ctimestamp\u003e.oob[.]sl4x0[.]xyz under a demopkg prefix). This confirms to the operator that code ran on that machine and identifies the host. The publisher's email domain sl4x0[.]xyz was used by earlier dependency-confusion packages such as ftapi-core (MAL-2026-2414), oc-navbar-module-client (MAL-2026-2417) and tombac-chronos (MAL-2026-2418).","modified":"2026-12-04T05:45:09.664803730Z","published":"2026-12-03T15:47:23Z","related":["MAL-2026-2414","MAL-2026-2417","MAL-2026-2418"],"database_specific":{"iocs":{"urls":["https://pkg.sl4x0.xyz/t/ea414b39aa1b293bd85d9ca62823a501.tgz"],"domains":["sl4x0.xyz","pkg.sl4x0.xyz","oob.sl4x0.xyz"],"files":[{"digests":{"sha256":"a9025d86dddb84932d098dcc121439c028ef109d046e405d3ce804b5c1dfb20f"},"note":"demo-pkg-e2e@1.0.0: declares dependency demo-pkg-core as a remote tarball URL on pkg[.]sl4x0[.]xyz","paths":["package.json"],"source":"PACKAGE_ARCHIVE"},{"digests":{"sha256":"8d76644d9c17812a4dbbb8380dd7236f21233ea251deb236ea8a33eb213d805f"},"note":"postinstall script of demo-pkg-core, downloaded at install time from hxxps://pkg[.]sl4x0[.]xyz/t/ea414b39aa1b293bd85d9ca62823a501.tgz (tarball sha256 f8ecab7c9c907fad018c7e1b0c81da47368fd6d99ea7635e3f5ba90c05caf876); DNS beacon to \u003cpkg\u003e.\u003cuser\u003e.\u003chost\u003e.\u003cdir\u003e.\u003cepoch\u003e.oob[.]sl4x0[.]xyz","paths":["node_modules/demo-pkg-core/i.js"],"source":"DROPPED"},{"note":"demo-pkg-core 1.0.0 manifest from the remote tarball; declares postinstall: node i.js","paths":["node_modules/demo-pkg-core/package.json"],"source":"DROPPED","digests":{"sha256":"8525aefefca6149fc53602a803e34a9eaccd915d22e5af70aa0475aade23ee57"}}],"ips":["38.242.146.132"]}},"references":[{"type":"REPORT","url":"https://protet.io/intel/npm/demo-pkg-e2e"}],"affected":[{"package":{"name":"demo-pkg-e2e","ecosystem":"npm","purl":"pkg:npm/demo-pkg-e2e"},"versions":["1.0.0"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/demo-pkg-e2e/MAL-2026-21130.json"}}],"schema_version":"1.9.2","credits":[{"name":"Robin Frehner, Protet","contact":["https://protet.io","mailto:hello@protet.io"],"type":"FINDER"}]}