{"id":"MAL-2026-12700","revision":"a184095203ab447e8d80242fc93a7199","records":[{"revision":"a184095203ab447e8d80242fc93a7199","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-12700","aliases":[],"title":"Malicious code in devplatform-cli-contracts (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (6bc9fcdf16d7e6c67e3dbc20a6e8bdec551687bc20fffa3c434a35ca387ffade)\nOn require() of the package, index.js loads _compat.js which reconstructs destination hostnames from split string arrays (e.g. [\"oob-worker.cf100-416.worker\",\"s.\",\"dev\"].join(\"\") and DNS-TXT fallbacks assembled from ['sd','k.dl.wel1.','ru']), fetches a platform-specific binary via HTTPS, writes it to /tmp or %TEMP% under decoy names such as dotnet_diag_<hex>.exe and.cache_<hex>, chmods 0755, and spawns it detached via cp.spawn(\"/bin/sh\",[\"-c\", fp+\" &\"],{detached:true}).unref(). A cooldown marker (.analytics_state) suppresses repeat execution. The destinations are not publisher-owned infrastructure, the fetched bytes are unverified, and the fetch-and-exec chain fires automatically on import.\n","state":0,"publishedAt":"2026-08-05T13:52:03+00:00","modifiedAt":"2026-08-05T14:36:31.4862648+00:00","affected":[{"ecosystem":"npm","name":"devplatform-cli-contracts","ranges":[],"versions":["35.7.3"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/devplatform-cli-contracts/v/35.7.3"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-12700","license":"OSV · upstream source license applies","key":"osv:MAL-2026-12700","identifiers":["MAL-2026-12700"]},"retained":false,"historicalAffected":[]}],"coverage":[]}