MAL-2026-12744Malicious code in devplatform-rest-client (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | devplatform-rest-client | * |
| npm | devplatform-rest-client | 35.7.9 |
{"schema_version":"1.7.4","id":"MAL-2026-12744","published":"2026-08-05T13:45:58Z","modified":"2026-08-06T01:00:38.512138010Z","aliases":["GHSA-p29c-x743-vhph"],"summary":"Malicious code in devplatform-rest-client (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (b5813e9b97274c2eb3abd3459781550762baeea8c8fc0cec09603dac56a405d8)\nOn require('devplatform-rest-client'), index.js loads _init.js which selects a platform-specific endpoint, downloads a binary from one of three 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 base64 fallback across four *.dl.wel1.ru subdomains, writes the payload to /tmp or %TEMP% under disguised names (dotnet_diag_<rand>.exe on Windows,.cache_<rand> on Unix), chmods it 0755, and spawns it detached via /bin/sh -c or cmd.exe. Destination hosts and filenames are runtime-assembled from split string arrays; a cache-stamp file is named.analytics_state to mimic telemetry. A sibling module lib/telemetry.js (~81 KB, not referenced from index.js) contains a parallel dropper using indirect requires ('child_' + 'process'), base64 payload reassembly, chmod 0755, and detached /bin/sh spawn under a fabricated 'Analytics SDK' cover story. None of this behavior matches the package's advertised purpose as a REST client; index.js is trivial.\n\n## Source: ghsa-malware (fbbcf53c505e7b9959afb047beac4365085ad239d61bae6098574e23f03a7771)\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-client","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["35.7.9"],"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":"_init.js","sha256":"44e04d2d06ed6278f100f507347c00e6e934b1f74e97380aacaabd2cd6117f61","tlsh":"6ba1b79a02aa70084b709be5c6174c15f55af5633b81c2c4f75c69885fb352483b2efc"},{"path":"lib/telemetry.js","sha256":"d6562a3ac1182899c1b36b67b650f99d1650f0bba16efe894444f89c09d065e4","tlsh":"70835056566a102186b2b368df234107ff3685272643429dbafc82dc1fbd72092a5ffd"}],"package_integrity":[{"filename":"devplatform-rest-client-35.7.9.tgz","hashes":{"sha1":"353de379512ca5f95ddbadb60ec55e946869efff","sha512_sri":"sha512-sYK3hjkYnAZ3/U5dRDyc1LfXp8yjG5Lx2DCIj+NdH1YwZhhsATQOng668IHlIsj1zOmh3onsUsxTeBkcVvFWGQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/devplatform-rest-client/v/35.7.9"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-p29c-x743-vhph"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-015030","import_time":"2026-08-05T14:19:54.358506078Z","modified_time":"2026-08-05T13:45:58Z","sha256":"b5813e9b97274c2eb3abd3459781550762baeea8c8fc0cec09603dac56a405d8","source":"amazon-inspector","versions":["35.7.9"]},{"id":"GHSA-p29c-x743-vhph","import_time":"2026-08-06T00:58:53.418883707Z","modified_time":"2026-08-05T17:56:54Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"fbbcf53c505e7b9959afb047beac4365085ad239d61bae6098574e23f03a7771","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0