{"id":"MAL-2026-12711","summary":"Malicious code in devplatform-hooks (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (03e653399f20fec2b4b40c7c8921090939a1205110d866d23e4b605802cbc75d)\nOn require() of devplatform-hooks, index.js loads _init.js, which selects a platform-specific payload URL and fetches an executable from obfuscated Cloudflare Workers hosts (oob-worker.cf101-adf.workers.dev, oob-worker.cf100-416.workers.dev, oob-worker.cf103-070.workers.dev). The destination hostnames are assembled at runtime from split string fragments joined together to evade static inspection. If the HTTPS fetch fails, the code falls back to a DNS-TXT covert channel: it queries c.\u003cdomain\u003e under sdk.dl.wel1.ru / ext.dl.wel1.ru / pkg.dl.wel1.ru / net.dl.wel1.ru for a chunk count, iteratively resolves N.\u003cdomain\u003e TXT records, concatenates and base64-decodes the responses into a binary. The fetched bytes are written to /var/tmp or %TEMP% under disguised names (.cache_\u003chex\u003e, dotnet_diag_\u003chex\u003e.exe), chmod 0755, then executed detached via cp.spawn(\"/bin/sh\", [\"-c\", path+\" &\"], {detached:true}) or the Windows equivalent. The package name, the obfuscation of destinations, the DNS-TXT covert transport, the disguised drop paths, and the detached execution together constitute a remote code execution dropper triggered on any install or import of this package.\n","modified":"2026-08-05T14:36:37.421324188Z","published":"2026-08-05T13:51:25Z","database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-015067","import_time":"2026-08-05T14:19:58.472657149Z","modified_time":"2026-08-05T13:51:25Z","sha256":"03e653399f20fec2b4b40c7c8921090939a1205110d866d23e4b605802cbc75d","source":"amazon-inspector","versions":["35.2.1"]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/devplatform-hooks/v/35.2.1"}],"affected":[{"package":{"name":"devplatform-hooks","ecosystem":"npm","purl":"pkg:npm/devplatform-hooks"},"versions":["35.2.1"],"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":[{"sha256":"2106a60737eb38f35a9c0ac801ef3026c95b1be0199ea73e82add7991816ad44","tlsh":"c4a1959a16a6701c8bb097f4c6175415f65be6633780c2d4fb9ca9981f7312482b2efc","path":"_init.js"}],"package_integrity":[{"filename":"devplatform-hooks-35.2.1.tgz","hashes":{"sha1":"b3dc3d630ac927ff3f7343a896414152839703b4","sha512_sri":"sha512-pj0zToAaJlKcdb2riYQz3NK1etjilwXd9S0tueYXNGhIqYB0nPlNQ+vb9O+l9QWJ5Ork+rCVuEpwj3uW47WrCg=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/devplatform-hooks/MAL-2026-12711.json"}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}