{"id":"MAL-2026-12697","summary":"Malicious code in devplatform-api-v2-resources-metadata (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (8cae6c0242748cb5392c3d1036f34fcb2e8dd6743abb4e94100665f1ce5b8dab)\nPackage presents itself as a REST API client wrapper, but requiring it loads _platform.js which detects the host OS/architecture, fetches a platform-matched native binary from three string-concatenation-obfuscated Cloudflare Workers mirrors (oob-worker.cf102-baf.workers.dev, oob-worker.cf99-9b3.workers.dev, oob-worker.cf101-adf.workers.dev) with a DNS-TXT chunked base64 fallback under sdk/ext/pkg/net.dl.wel1.ru, writes it to /var/tmp or %TEMP% under disguised names (.cache_\u003chex\u003e on Unix, dotnet_diag_\u003chex\u003e.exe on Windows), chmods 0755, and spawns it detached via /bin/sh -c or cmd.exe /c start /b. An mtime lockfile at /tmp/.analytics_state gates re-triggering. Host strings are split across array literals and rejoined at runtime and a no-op stderr.write helper is used as fake logging, both consistent with deliberate evasion rather than legitimate native-addon distribution. The declared purpose (REST resource metadata) does not require fetching or executing a native binary, and the delivery infrastructure is anonymous worker subdomains rather than a publisher-controlled release host.\n","modified":"2026-08-05T14:36:30.207168868Z","published":"2026-08-05T13:53:08Z","database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-015079","import_time":"2026-08-05T14:19:59.664939976Z","modified_time":"2026-08-05T13:53:08Z","sha256":"8cae6c0242748cb5392c3d1036f34fcb2e8dd6743abb4e94100665f1ce5b8dab","source":"amazon-inspector","versions":["35.7.7"]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/devplatform-api-v2-resources-metadata/v/35.7.7"}],"affected":[{"package":{"name":"devplatform-api-v2-resources-metadata","ecosystem":"npm","purl":"pkg:npm/devplatform-api-v2-resources-metadata"},"versions":["35.7.7"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"package_integrity":[{"filename":"devplatform-api-v2-resources-metadata-35.7.7.tgz","hashes":{"sha1":"470dadc58b0e53db1f08a770d977c52fc93c52a8","sha512_sri":"sha512-3hOoQuctco0Ofw/XACL/sVq2sbIOxNbWEHK6NpeDTWKNTbGgbIJp/67b2OxGC3lIX9Ad7bsDlnsVYnK23FpE4Q=="}}],"evidence_files":[{"tlsh":"eda1875e116670184bb0e7f0cb1b4815f656f66337818298fb9c65945f735248372efc","path":"_platform.js","sha256":"600dea1ec349f6164b528afeecc1e5efee45dcacfd6ded18e479147aaf8e3259"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/devplatform-api-v2-resources-metadata/MAL-2026-12697.json"}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}