MAL-2026-12745Malicious code in devplatform-rest-resources-v1 (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | devplatform-rest-resources-v1 | * |
| npm | devplatform-rest-resources-v1 | 35.2.3 |
{"schema_version":"1.7.4","id":"MAL-2026-12745","published":"2026-08-05T13:45:47Z","modified":"2026-08-25T16:28:03.780246448Z","aliases":["GHSA-hmhf-45wm-x62q"],"summary":"Malicious code in devplatform-rest-resources-v1 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (73a9f72a6d741b5f055738486ee936f61ff645ed6dfdb0e34e746195da5b0d03)\nOn require() of the package, index.js loads _bootstrap.js which selects a platform-specific endpoint, fetches an opaque native binary over HTTPS from author-controlled Cloudflare Workers subdomains (oob-worker.cf99-9b3.workers.dev, oob-worker.cf101-adf.workers.dev, oob-worker.cf102-baf.workers.dev) with a DNS-TXT fallback to *.dl.wel1.ru, writes it to /tmp or %TEMP% under disguised names (.cache_<rand> on POSIX, dotnet_diag_<rand>.exe on Windows), chmods 0o755 on POSIX, and spawns it detached with output suppressed via spawn(\"/bin/sh\", [\"-c\", fp+\" &\"], {detached:true}).unref() (and a cmd equivalent on Windows). The C2 hostnames, fallback DNS domain, and the child_process module name are assembled from array joins (e.g. [\"oob-worker.cf102-\",\"baf.work\",\"ers.de\",\"v\"].join(\"\") and ['sdk.dl','.wel1.ru'].join(\"\")) to hide indicators from static scanners. Additional cover-story mechanisms include stamp-based execution gating (STAMP_TTL) and honoring DISABLE_TELEMETRY / ANALYTICS_OPT_OUT / DO_NOT_TRACK env vars while presenting the fetched artifacts as diagnostic/analytics files. No signature verification, no version pinning, and the payload is a bare native executable. Every installer that installs or requires this package receives and executes attacker-controlled code.\n\n## Source: ghsa-malware (8426d22b1992f949229702e86e3395c04797a1966aae507fedc73e21a7ad49b5)\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-rest-resources-v1","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["35.2.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":"_bootstrap.js","sha256":"f26cde65091e8d8c447b377223b5a8613fccdc4000625d5b8acb56e5e52a2e94","tlsh":"c4a1649a22aa70198b70ebe4c717541af65af6633381c2d4f75c65941fb213483b2efc"}],"package_integrity":[{"filename":"devplatform-rest-resources-v1-35.2.3.tgz","hashes":{"sha1":"891b5e398fca1bc99b18369098df87cbed168cf1","sha512_sri":"sha512-iRLxt5SltSZ8nXeJo+39ik6JzOTQbge4DZXUqqwnLI3z8LjjboCqwv0Ln16eosxxGyWNPYIPZWkf6alIUAZ3Gw=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/devplatform-rest-resources-v1/v/35.2.3"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-hmhf-45wm-x62q"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-015029","import_time":"2026-08-05T14:19:54.267281447Z","modified_time":"2026-08-05T13:45:47Z","sha256":"73a9f72a6d741b5f055738486ee936f61ff645ed6dfdb0e34e746195da5b0d03","source":"amazon-inspector","versions":["35.2.3"]},{"id":"GHSA-hmhf-45wm-x62q","import_time":"2026-08-25T16:26:05.039954455Z","modified_time":"2026-08-25T16:00:52Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"8426d22b1992f949229702e86e3395c04797a1966aae507fedc73e21a7ad49b5","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0