{"id":"MAL-2026-12701","summary":"Malicious code in devplatform-cli-plugin-generator (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (e369efa925874a9e8d5b883567522eb39e0284122294d62a92358b0b937f256f)\nOn require() of the package, index.js loads _bootstrap.js, which reconstructs a list of Cloudflare Workers hostnames from split string fragments (oob-worker.cf99-9b3.workers.dev, oob-worker.cf103-070.workers.dev, oob-worker.cf101-adf.workers.dev) and a DNS-TXT chunked-base64 fallback under *.dl.wel1.ru, downloads a platform-specific binary from these non-publisher hosts with no hash or signature verification, writes it to /var/tmp or %TEMP% under cover-story names (dotnet_diag_\u003chex\u003e.exe,.cache_\u003chex\u003e), chmods it 0o755, and spawns it detached in the background via cp.spawn(\"/bin/sh\", [\"-c\", fp+\" &\"], {detached:true}) or the Windows cmd equivalent. A second file, lib/telemetry.js (81 KB), bundles the same dropper primitives under an \"Analytics SDK\" cover story with additional obfuscation (require(\"child_\"+\"process\"), fs[\"chmod\"+\"Sync\"], base64-chunk assembly), extending the attack surface. Split-string reconstruction of hostnames and API names is anti-analysis obfuscation inconsistent with legitimate telemetry, which places endpoints in plain configuration.\n","modified":"2026-08-05T14:36:31.548398237Z","published":"2026-08-05T13:51:00Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-08-05T13:51:00Z","sha256":"e369efa925874a9e8d5b883567522eb39e0284122294d62a92358b0b937f256f","source":"amazon-inspector","versions":["35.3.5"],"id":"IN-MAL-2026-015064","import_time":"2026-08-05T14:19:58.152519482Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/devplatform-cli-plugin-generator/v/35.3.5"}],"affected":[{"package":{"name":"devplatform-cli-plugin-generator","ecosystem":"npm","purl":"pkg:npm/devplatform-cli-plugin-generator"},"versions":["35.3.5"],"database_specific":{"cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"indicators":{"evidence_files":[{"sha256":"355fba3248f32317eb1e41e9afcc40fcd2ca821341dc8b78a6c6524b8e657801","tlsh":"d6a1a89a167670094bb09be4cb174416f65bf6633780c298fb5ca5981f7312483b2efc","path":"_bootstrap.js"},{"path":"lib/telemetry.js","sha256":"8ffb3801d9ba0e6f3da7a37fab5ff184e4ccae7a3f3d5bb2477e88598590a0a6","tlsh":"aa835056566a142186b2b368df234107ff3685272643429dbafc82dc1fbd72092a5ffc"}],"package_integrity":[{"filename":"devplatform-cli-plugin-generator-35.3.5.tgz","hashes":{"sha512_sri":"sha512-Zp2Ny3fAo7JmrMGWCThDO13hXXxG1jzmApvFngq2LqmGX8JCem9vvSruAGA00oxw7TXPkehGzHaBrKS+tavW3A==","sha1":"8e8cd3f1342d71959d1ce37a75099212c9fd97d7"}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/devplatform-cli-plugin-generator/MAL-2026-12701.json"}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}