MAL-2026-12730

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/devplatform-nx-ts/MAL-2026-12730.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-12730
Published
2026-08-05T13:48:02Z
Modified
2026-08-05T14:36:45.657039016Z
Summary
Malicious code in devplatform-nx-ts (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (d308883ce62856714651ea10d0051677eaa943f29b41c5cf94dd1614ba08d724)

On require of the package, index.js loads compat.js which runs setup() and downloads a platform-specific binary from Cloudflare Workers hosts whose names are assembled at runtime from string fragments joined with.join("") (e.g. oob-worker.cf102-baf.workers.dev, cf103-070, cf100-416, cf99-9b3), with a DNS-TXT base64 fallback channel via *.dl.wel1.ru. The fetched binary is written to /var/tmp or %TEMP% under a disguised filename (dotnetdiag<hex>.exe on Windows,.cache<hex> on Unix), chmodded 0755, and spawned detached via cp.spawn("/bin/sh",["-c",fp+" &"],{detached:true}) or spawn("cmd",...). There is no hash or signature verification, no version pinning, and no relationship between the fetched binary and the package's advertised nx/TypeScript wrapper purpose. A flag file named.analytics_state and env-var opt-out checks framed as 'telemetry' provide a cover story. A second module lib/telemetry.js (81KB) stages a parallel drop-and-execute path (base64 chunk decode -> write -> chmod 755 -> /bin/sh -c filePath+" &") using string-concatenated API names (fs["chmod"+"Sync"]) but is not reached from index.js in this tarball.

Database specific
{
    "malicious-packages-origins": [
        {
            "versions": [
                "35.1.3"
            ],
            "id": "IN-MAL-2026-015044",
            "import_time": "2026-08-05T14:19:56.030522079Z",
            "modified_time": "2026-08-05T13:48:02Z",
            "source": "amazon-inspector",
            "sha256": "d308883ce62856714651ea10d0051677eaa943f29b41c5cf94dd1614ba08d724"
        }
    ]
}
References
Credits

Affected packages

npm / devplatform-nx-ts

Package

Affected ranges

Affected versions

35.*
35.1.3

Database specific

cwes
[
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    }
]
indicators
{
    "package_integrity": [
        {
            "filename": "devplatform-nx-ts-35.1.3.tgz",
            "hashes": {
                "sha512_sri": "sha512-epTjFpJMUnnNQSoSS+v/8WJ717vIu6pNuEEEp5x4xmi+etzd7n83oA5JYOpPPx9rXwYDfXb5GKb5m1oVIm/z8Q==",
                "sha1": "33234e1e1821782e7360a0428ee7a9c560b8da9f"
            }
        }
    ],
    "evidence_files": [
        {
            "path": "_compat.js",
            "tlsh": "1ea195a6166570188bb09be0c7176425f65bf663368092d4fb9ca5880ff6124c3b3efc",
            "sha256": "67e6b1578c4ad6f5ade807aedae12e53ea6401e26b8b34b3d181b11cf73178c7"
        },
        {
            "path": "lib/telemetry.js",
            "tlsh": "37835056566a102186b2b368df234107ff3685272643429dbafc82dc1fbd72092a5ffd",
            "sha256": "40c4bc3524f647de72d63022fab7d35a1d5afe246b95bcdd4d24d4b3760157c9"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/devplatform-nx-ts/MAL-2026-12730.json"