MAL-2026-12784Malicious code in devplatform-spa-testing (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | devplatform-spa-testing | * |
| npm | devplatform-spa-testing | 35.8.6 |
{"schema_version":"1.7.4","id":"MAL-2026-12784","published":"2026-08-05T13:40:32Z","modified":"2026-08-20T01:09:03.510980956Z","aliases":["GHSA-w476-3rpv-vw8r"],"summary":"Malicious code in devplatform-spa-testing (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (d43b8f8982db0f563db0d728dbc9ecdd9907e29dd45f2d9bf42e0c8416fc80fa)\nOn `require('devplatform-spa-testing')`, index.js loads _platform.js which selects a platform-specific endpoint, retrieves a payload over HTTPS from string-concatenated `oob-worker.cf*.workers.dev` hostnames (with a DNS-TXT-chunked base64 fallback via `sdk.dl.wel1.ru`), writes it to /tmp or %TEMP% under a disguised name (`.cache_<rand>` on POSIX or `dotnet_diag_<rand>.exe` on Windows), chmods 0755, and spawns it detached via `/bin/sh -c` or `cmd`. The C2 hostnames are assembled by joining fragments (e.g. `['oob-w','orker.cf102-','baf.worke','rs.d','ev'].join('')`) to defeat plain string scanning, and the dropper filenames plus cover-story comments about telemetry opt-out mask the behavior. The fetched bytes are attacker-controlled and executed on the installer's machine at import time.\n\n## Source: ghsa-malware (94d0aab60461539f1d9e4e5025f28d7fa38653699dd1bc05009d46bae9a90a4c)\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-spa-testing","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["35.8.6"],"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":"_platform.js","sha256":"4a42deb4bf1ca439d9606e4eed8b71d839d51e526e3bf5aeceb9b05f06f33323","tlsh":"3cb1969a16aa700c4bb0ebe4c61b4826f55bf6633781d194fb9c69984f7342483b1dfc"}],"package_integrity":[{"filename":"devplatform-spa-testing-35.8.6.tgz","hashes":{"sha1":"d910ea3fb388b03f3747dd0b2b95cc3def343945","sha512_sri":"sha512-MvE2nH/RnvuvEJ01pzaHL2V32l2sKstXafvJk0TkUqvYn3/7WUkymnWrIIgiyIkszpr8XxvRJjVooKaeAjcaVQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/devplatform-spa-testing/v/35.8.6"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-w476-3rpv-vw8r"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-014992","import_time":"2026-08-05T14:19:50.29474657Z","modified_time":"2026-08-05T13:40:32Z","sha256":"d43b8f8982db0f563db0d728dbc9ecdd9907e29dd45f2d9bf42e0c8416fc80fa","source":"amazon-inspector","versions":["35.8.6"]},{"id":"GHSA-w476-3rpv-vw8r","import_time":"2026-08-20T01:06:54.127949662Z","modified_time":"2026-08-19T15:00:15Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"94d0aab60461539f1d9e4e5025f28d7fa38653699dd1bc05009d46bae9a90a4c","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0