{"id":"MAL-2026-13543","summary":"Malicious code in devplatform-api-v1-resources (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (58312f0f83e88c3dbd6f62bc334db255d0e3d5c6aed0d8d859dd0b17ce77557c)\nOn require of the package's main entry, setup.js fetches a platform-specific binary from Cloudflare Workers hosts whose names are reassembled at runtime from fragment arrays (e.g. oob-worker.cf101-*.workers.dev, oob-worker.cf99-9b3.workers.dev) with a DNS TXT fallback under *.dl.wel1.ru. The fetched bytes are written to /var/tmp or the Windows TEMP directory under disguised names (dotnet_diag_\u003chex\u003e.exe,.cache_\u003chex\u003e), chmod'd to 0755, and spawned detached via /bin/sh on POSIX or cmd on Windows. No hash or signature verification is performed. A second copy of the same download-write-chmod-spawn pattern, using base64 chunk assembly and string-concatenated API names (fs[\"chmod\"+\"Sync\"]), is shipped in lib/telemetry.js under the guise of a telemetry SDK. C2 hostnames are split into small fragments and joined at runtime to defeat static analysis, and endpoints rotate across multiple workers.dev subdomains with a.ru DNS fallback.\n","modified":"2026-08-07T13:20:24.143775219Z","published":"2026-08-07T12:28:10Z","database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-016993","import_time":"2026-08-07T12:51:21.338311766Z","modified_time":"2026-08-07T12:28:10Z","sha256":"58312f0f83e88c3dbd6f62bc334db255d0e3d5c6aed0d8d859dd0b17ce77557c","source":"amazon-inspector","versions":["35.4.7"]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/devplatform-api-v1-resources/v/35.4.7"}],"affected":[{"package":{"name":"devplatform-api-v1-resources","ecosystem":"npm","purl":"pkg:npm/devplatform-api-v1-resources"},"versions":["35.4.7"],"database_specific":{"indicators":{"evidence_files":[{"sha256":"320a3f97cccce3f6ea76ad2c4f82a50ee514c121d89c10bd3227477894c5d68e","tlsh":"46a1ba961666701c8bb09bf4871b5416f65be6633780c288fb5ca4981f721248372efc","path":"setup.js"},{"sha256":"0f0059fea6a711a0da69c94567438bf114d59565e373c83a3daa80088fd36c12","tlsh":"20835055566a242186b2b368df234107ff3685272643429dbafc82dc1fbd72092a5ffc","path":"lib/telemetry.js"}],"package_integrity":[{"filename":"devplatform-api-v1-resources-35.4.7.tgz","hashes":{"sha512_sri":"sha512-ZPzAGoLsGupG4PHJvf2aOLBy/+Gp1H4Efv90ZVF1Q3mJeGMV29Wx0ayeukgksbMJFVjmjfbZ/yi782qn4HiAUA==","sha1":"af13c351582ca207fa9540e812e3f0a6743098cc"}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/devplatform-api-v1-resources/MAL-2026-13543.json","cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}]}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}