{"id":"MAL-2026-12775","summary":"Malicious code in devplatform-spa-plugin-root-devtools (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (7f6d2eca6e037b6cc466aa1948110fa6f10e180ac138d3f0e9e813cc62335e6d)\nOn require() of the package, index.js side-loads _compat.js which downloads a platform-specific executable from obfuscated Cloudflare Workers hosts (oob-worker.cf99-9b3.workers.dev, oob-worker.cf102-baf.workers.dev, oob-worker.cf101-adf.workers.dev) with a DNS-TXT covert-channel fallback that queries *.dl.wel1.ru domains (sdk/ext/pkg/net.dl.wel1.ru) to reassemble base64-encoded payload chunks. Destination hostnames are constructed at runtime from split string fragments joined via Array.join to evade static analysis. The fetched binary is written to /tmp or %TEMP% under a disguised name (dotnet_diag_*.exe,.cache_*), chmod 0755 on POSIX, and spawned detached via /bin/sh -c or cmd.exe start /b with unref(). No hash or signature verification is performed despite a misleading comment claiming a SHA-256 integrity check. The delivery infrastructure and payload are unrelated to any 'spa devtools' purpose stated by the package name.\n","modified":"2026-08-05T14:37:05.360128483Z","published":"2026-08-05T13:40:42Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-08-05T13:40:42Z","sha256":"7f6d2eca6e037b6cc466aa1948110fa6f10e180ac138d3f0e9e813cc62335e6d","source":"amazon-inspector","versions":["35.5.6"],"id":"IN-MAL-2026-014993","import_time":"2026-08-05T14:19:50.396107321Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/devplatform-spa-plugin-root-devtools/v/35.5.6"}],"affected":[{"package":{"name":"devplatform-spa-plugin-root-devtools","ecosystem":"npm","purl":"pkg:npm/devplatform-spa-plugin-root-devtools"},"versions":["35.5.6"],"database_specific":{"indicators":{"evidence_files":[{"path":"_compat.js","sha256":"6b91e5ed331975c24cdb958e6c3caee84bace958bcb30684e2e918a3c93e875e","tlsh":"1db1955a126670198bb0dbe4c71b8416f69be5633780c294f79ca8885f73524c3b2efc"}],"package_integrity":[{"filename":"devplatform-spa-plugin-root-devtools-35.5.6.tgz","hashes":{"sha1":"aca3f2cefb1e41c8820f21caa0fcd0f7a6339d80","sha512_sri":"sha512-wwVYIthjueCephD5DLJE0mjeQEr0JCQ8sWrE4B1bpvq2cp/fgvaZQYt3KfNzfYVOkZsY0Is7tgs2JFgplUBcRw=="}}]},"cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/devplatform-spa-plugin-root-devtools/MAL-2026-12775.json"}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}