MAL-2026-12785Malicious code in devplatform-spa-tokens (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | devplatform-spa-tokens | * |
| npm | devplatform-spa-tokens | 35.3.1 |
{"schema_version":"1.7.4","id":"MAL-2026-12785","published":"2026-08-05T13:41:07Z","modified":"2026-08-25T15:32:14.390910171Z","aliases":["GHSA-67wj-rrpv-vxwq"],"summary":"Malicious code in devplatform-spa-tokens (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (6127d0c2ccf2b21fdd6f22244b040c905b2296c86c47cc3c4eb012b61a4c455a)\nOn require(), index.js loads _support.js, which assembles Cloudflare Workers hostnames (oob-worker.cf*.workers.dev) and fallback domain sdk.dl.wel1.ru at runtime from split string arrays joined via.join(\"\"), downloads a platform-specific binary from those hosts (with a DNS TXT chunked fallback via c.<domain>/i.<domain> records when HTTPS is blocked), writes the payload to a temp path with a disguised name (e.g. dotnet_diag_<rand>.exe,.cache_<rand>), chmods 0755 on POSIX, and spawns it detached via spawn(\"/bin/sh\") or spawn(\"cmd\"). Execution is gated by DISABLE_TELEMETRY / ANALYTICS_OPT_OUT / DO_NOT_TRACK env vars and a /tmp/.analytics_state cache, framing the dropper as analytics. The advertised TokenManager API is a decoy — no relation to the download-and-execute behavior. Destination hosts are anonymous workers.dev / lookalike infrastructure, not the package's stated purpose or publisher.\n\n## Source: ghsa-malware (0b2287b5f70bc9779abda2839f7d2e2227ec977e332d78d5ae5da19b84a0a143)\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-tokens","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["35.3.1"],"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":"_support.js","sha256":"726f50e85b94054d9c86050ddc4a236c1aa4ab1740e2f30e88eb321c7d24d62f","tlsh":"44b1a55a016a70184bb0e7e4c61b882af55bf6633781c2d4f76c65985fb212483b2efc"}],"package_integrity":[{"filename":"devplatform-spa-tokens-35.3.1.tgz","hashes":{"sha1":"21f358d295d200ab4c0f89d2c0cf5604b4ff7afb","sha512_sri":"sha512-oBqxnZow2N/aj6lhYbciqdVMCzlFcg65VHCm3M6ASwmrJtKgk6GtQ487FEtOMguJuPNayostVy2VPf57itzLXA=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/devplatform-spa-tokens/v/35.3.1"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-67wj-rrpv-vxwq"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-014996","import_time":"2026-08-05T14:19:50.700320338Z","modified_time":"2026-08-05T13:41:07Z","sha256":"6127d0c2ccf2b21fdd6f22244b040c905b2296c86c47cc3c4eb012b61a4c455a","source":"amazon-inspector","versions":["35.3.1"]},{"id":"GHSA-67wj-rrpv-vxwq","import_time":"2026-08-25T15:30:22.778180309Z","modified_time":"2026-08-25T14:57:18Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"0b2287b5f70bc9779abda2839f7d2e2227ec977e332d78d5ae5da19b84a0a143","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0