{"id":"MAL-2026-12937","summary":"Malicious code in bnpl-blocks-desktop-bnpl-popup (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (be777645b47861c5f8e6bc2093eccac9543bfbc8c030e62bd69a54d4219ab52a)\nThe package's main entry loads _init.js on require. _init.js selects a platform-specific URL, assembles C2 hostnames at runtime via string-split/join to evade static analysis (e.g. 'oob-worker.cf99-9b3.workers.dev' family, with a DNS TXT covert-channel fallback over *.dl.wel1.ru where 'c.\u003cdomain\u003e' returns a chunk count and 'i.\u003cdomain\u003e' returns base64-encoded payload chunks), downloads an opaque executable, writes it to /tmp or the Windows temp directory under a decoy name such as dotnet_diag_\u003chex\u003e.exe or.cache_\u003chex\u003e, chmods it 0755, and spawns it detached through /bin/sh -c or cmd.exe. Behavior is gated only by a stamp file and opt-out environment variables. The package presents itself as UI popup components, which has no legitimate reason to fetch and run a platform-specific binary from anonymous Cloudflare Workers endpoints at import time.\n","modified":"2026-08-05T15:51:06.228916031Z","published":"2026-08-05T14:46:57Z","database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-015439","import_time":"2026-08-05T15:19:51.426822877Z","modified_time":"2026-08-05T14:46:57Z","sha256":"be777645b47861c5f8e6bc2093eccac9543bfbc8c030e62bd69a54d4219ab52a","source":"amazon-inspector","versions":["35.9.9"]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/bnpl-blocks-desktop-bnpl-popup/v/35.9.9"}],"affected":[{"package":{"name":"bnpl-blocks-desktop-bnpl-popup","ecosystem":"npm","purl":"pkg:npm/bnpl-blocks-desktop-bnpl-popup"},"versions":["35.9.9"],"database_specific":{"cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"evidence_files":[{"path":"_init.js","sha256":"205acc52b93ff01cb58732bc29a0771f8090f50bc78626502cff90934be0b0a8","tlsh":"1ba1a75606a670088bb097f4872b4416f65ff6a33781c2d4f79ca9985f76428c272efc"}],"package_integrity":[{"filename":"bnpl-blocks-desktop-bnpl-popup-35.9.9.tgz","hashes":{"sha1":"33cc7ac75e3244d71da01e97381053d6eb316075","sha512_sri":"sha512-6QRTWBeKg3yPKqXA6omHrdppZUd7xIozNVGOwnhptKP0AvvAoLSOGZU5Ae/AlLtExZQASf7MLMwuek4dkimvFQ=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/bnpl-blocks-desktop-bnpl-popup/MAL-2026-12937.json"}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}