{"id":"MAL-2026-12784","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_\u003crand\u003e` on POSIX or `dotnet_diag_\u003crand\u003e.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","modified":"2026-08-05T14:37:09.488290779Z","published":"2026-08-05T13:40:32Z","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"]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/devplatform-spa-testing/v/35.8.6"}],"affected":[{"package":{"name":"devplatform-spa-testing","ecosystem":"npm","purl":"pkg:npm/devplatform-spa-testing"},"versions":["35.8.6"],"database_specific":{"cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"evidence_files":[{"sha256":"4a42deb4bf1ca439d9606e4eed8b71d839d51e526e3bf5aeceb9b05f06f33323","tlsh":"3cb1969a16aa700c4bb0ebe4c61b4826f55bf6633781d194fb9c69984f7342483b1dfc","path":"_platform.js"}],"package_integrity":[{"filename":"devplatform-spa-testing-35.8.6.tgz","hashes":{"sha1":"d910ea3fb388b03f3747dd0b2b95cc3def343945","sha512_sri":"sha512-MvE2nH/RnvuvEJ01pzaHL2V32l2sKstXafvJk0TkUqvYn3/7WUkymnWrIIgiyIkszpr8XxvRJjVooKaeAjcaVQ=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/devplatform-spa-testing/MAL-2026-12784.json"}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}