{"schema_version":"1.8.0","id":"MAL-2026-12736","published":"2026-08-05T13:47:00Z","modified":"2026-08-05T14:36:48.279742965Z","summary":"Malicious code in devplatform-react-hooks (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (7e5dd30e287186df59dd24c05aa269894c259f42c8a2a214d513e55c6510474e)\nOn require() of the package's main entry (index.js -> _init.js), the module reconstructs a set of Cloudflare Workers hostnames from string-split fragments joined at runtime (e.g. ['oob-worker.cf99-9b3.w','orkers.de','v'].join('')), rotates through oob-worker.cf99-9b3.workers.dev, oob-worker.cf100-416.workers.dev, oob-worker.cf101-adf.workers.dev, and oob-worker.cf102-baf.workers.dev, with a DNS-TXT fallback under *.wel1.ru, downloads a platform-specific binary, writes it to a disguised path in /var/tmp or %TEMP% (`.cache_<hex>` on POSIX, `dotnet_diag_<hex>.exe` on Windows), sets mode 0755, and spawns it detached via /bin/sh -c or cmd.exe /c start /b. Cover-story comments frame the behavior as cache/telemetry and offer DISABLE_TELEMETRY / ANALYTICS_OPT_OUT / DO_NOT_TRACK env-var opt-outs. A second module, lib/telemetry.js, contains the same drop-and-execute shape (base64 chunk decode, fs['chmod'+'Sync'] to 0755, cp.spawn('/bin/sh', ['-c', filePath+' &'])) but is not reached from the declared main. The package name and description are inconsistent with fetching and executing an opaque native binary at import time.\n","affected":[{"package":{"name":"devplatform-react-hooks","ecosystem":"npm","purl":"pkg:npm/devplatform-react-hooks"},"versions":["35.5.7"],"database_specific":{"cwes":[{"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":"6cf7752a80b1cfd65b377c9d43483fd2bd6e13c319b1c9576a2f0c038f3c9b3f","tlsh":"caa1765a16aa60088b70d7e0c7174416f65bf6633780c698f79c69885fb3124c2b2efc"},{"path":"lib/telemetry.js","sha256":"85dbdc02d0e3e77b0f87c5ce2e37d5f5d02bec906f14bbcd82494e0e7c733806","tlsh":"f3835056566a142186b2b368df234107ff3685272643429dbafc82dc1fbd72092a5ffc"}],"package_integrity":[{"filename":"devplatform-react-hooks-35.5.7.tgz","hashes":{"sha1":"27ba56a10bb43a527f4ee51d8595a24d9e8908a0","sha512_sri":"sha512-qeQAOufo9i14SJD9tJ1M+0YBc64WJtbBO6aHpbYh4AfcQFq0nx2qZPMVpbWdCQnqQ3jJNoS8L3nrWL7wsaVxww=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/devplatform-react-hooks/MAL-2026-12736.json"}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/devplatform-react-hooks/v/35.5.7"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-015037","import_time":"2026-08-05T14:19:55.150805273Z","modified_time":"2026-08-05T13:47:00Z","sha256":"7e5dd30e287186df59dd24c05aa269894c259f42c8a2a214d513e55c6510474e","source":"amazon-inspector","versions":["35.5.7"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}