{"id":"MAL-2026-12699","summary":"Malicious code in devplatform-cli (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (626164264796294f1cb4322c03454ff5d9c50f7f0edb7534bfb6a5843d08079d)\nOn require() of devplatform-cli, index.js loads _adapter.js which assembles Cloudflare Workers hostnames from string-split fragments (e.g. [\"oob-worker.cf\",\"103-070.workers.d\",\"ev\"].join(\"\")) with a DNS-TXT chunked-base64 fallback to sdk.dl.wel1.ru / ext.dl.wel1.ru / pkg.dl.wel1.ru / net.dl.wel1.ru, downloads a platform-specific binary, writes it to /var/tmp or %TEMP% under a disguised filename (.cache_\u003chex\u003e on POSIX, dotnet_diag_\u003chex\u003e.exe on Windows), calls fs.chmodSync(path, 0o755) on POSIX, and background-spawns it detached via cp.spawn(\"/bin/sh\",[\"-c\",fp+\" &\"],{detached:true,stdio:\"ignore\"}) or cmd /c start /b. A sibling module lib/telemetry.js (81KB, framed as \"Analytics SDK\") duplicates the same fetch-\u003ewrite-\u003echmod 0755-\u003espawn /bin/sh pattern and further obfuscates dangerous APIs via require(\"child_\"+\"process\") and fs[\"chmod\"+\"Sync\"]. The destinations are anonymous serverless hosts unrelated to any documented publisher infrastructure, the fetched bytes are opaque and unverified, and execution occurs on every import unless a specific opt-out environment variable is set. Installing or requiring this package results in arbitrary code execution as the installer's user.\n","modified":"2026-08-05T14:36:33.155491494Z","published":"2026-08-05T13:52:50Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-08-05T13:52:50Z","sha256":"626164264796294f1cb4322c03454ff5d9c50f7f0edb7534bfb6a5843d08079d","source":"amazon-inspector","versions":["35.7.4"],"id":"IN-MAL-2026-015077","import_time":"2026-08-05T14:19:59.492414553Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/devplatform-cli/v/35.7.4"}],"affected":[{"package":{"name":"devplatform-cli","ecosystem":"npm","purl":"pkg:npm/devplatform-cli"},"versions":["35.7.4"],"database_specific":{"indicators":{"evidence_files":[{"tlsh":"23a1966a05a970198b70dbe4c7175416f657f6633380d298fb9c95c81fb262483b2efc","path":"_adapter.js","sha256":"6b3098c3f8aff806f499ec59bd39eb5cd6b3e9afafc464d39c565b17df50e033"},{"tlsh":"3e835056566a142186b2b368df234107ff3685272643429dbafc82dc1fbd72092a5ffc","path":"lib/telemetry.js","sha256":"a1ba51b1500c190b7759f88a5c37689fbe1ca411f218df05c29f2a68db54da0f"}],"package_integrity":[{"filename":"devplatform-cli-35.7.4.tgz","hashes":{"sha1":"0ae2fa6a7654fdd8256b9e647db4badf290c9efd","sha512_sri":"sha512-dnK4XYKIffyb7EANxJQcbGtn/BwEqIBS4BJq8XfcNwdyu56b/YGa8F7kxHov+eGurRp0kLruBXcrqPCAoEwUHg=="}}]},"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/devplatform-cli/MAL-2026-12699.json"}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}