MAL-2026-21130

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/demo-pkg-e2e/MAL-2026-21130.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-21130
Related
Published
2026-12-03T15:47:23Z
Modified
2026-12-04T05:45:09Z
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 ....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).

Database specific
{
    "iocs":  {
        "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 <pkg>.<user>.<host>.<dir>.<epoch>.oob[.]sl4x0[.]xyz",
                "paths":  [
                    "node_modules/demo-pkg-core/i.js"
                ],
                "source":  "DROPPED"
            },
            {
                "digests":  {
                    "sha256":  "8525aefefca6149fc53602a803e34a9eaccd915d22e5af70aa0475aade23ee57"
                },
                "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"
            }
        ],
        "ips":  [
            "38.242.146.132"
        ],
        "urls":  [
            "https://pkg.sl4x0.xyz/t/ea414b39aa1b293bd85d9ca62823a501.tgz"
        ]
    }
}
References
Credits

Affected packages

npm / demo-pkg-e2e

Package

Affected ranges

Affected versions

1.*
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"