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
Aliases
  • GHSA-p6mf-hpv9-53jc
Published
2026-08-05T13:48:02Z
Modified
2026-08-24T16:46:04Z
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 (dotnet_diag.exe on Windows,.cache_ 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.

Source: ghsa-malware (618e5622e6a4468db0df2570d517093cc0b6e53b368344a695880c3df9633bb5)

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-015044",
            "import_time": "2026-08-05T14:19:56.030522079Z",
            "modified_time": "2026-08-05T13:48:02Z",
            "sha256": "d308883ce62856714651ea10d0051677eaa943f29b41c5cf94dd1614ba08d724",
            "source": "amazon-inspector",
            "versions": [
                "35.1.3"
            ]
        },
        {
            "id": "GHSA-p6mf-hpv9-53jc",
            "import_time": "2026-08-24T16:26:16.75023283Z",
            "modified_time": "2026-08-24T16:11:34Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "618e5622e6a4468db0df2570d517093cc0b6e53b368344a695880c3df9633bb5",
            "source": "ghsa-malware"
        }
    ]
}
References
Credits

Affected packages

npm / devplatform-nx-ts

Package

Name
devplatform-nx-ts
View open source insights on deps.dev
Purl
pkg:npm/devplatform-nx-ts

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

35.*
35.1.3

Database specific

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