MAL-2026-12730Malicious code in devplatform-nx-ts (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | devplatform-nx-ts | * |
| npm | devplatform-nx-ts | 35.1.3 |
{"schema_version":"1.7.4","id":"MAL-2026-12730","published":"2026-08-05T13:48:02Z","modified":"2026-08-24T16:28:13.199372994Z","aliases":["GHSA-p6mf-hpv9-53jc"],"summary":"Malicious code in devplatform-nx-ts (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (d308883ce62856714651ea10d0051677eaa943f29b41c5cf94dd1614ba08d724)\nOn 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_<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.\n\n## Source: ghsa-malware (618e5622e6a4468db0df2570d517093cc0b6e53b368344a695880c3df9633bb5)\nAny 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.\n","affected":[{"package":{"name":"devplatform-nx-ts","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["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=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/devplatform-nx-ts/v/35.1.3"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-p6mf-hpv9-53jc"}],"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"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0