{"id":"MAL-2026-12964","summary":"Malicious code in bnpl-blocks-independent-bnpl-origination (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (7441b8e4b9daaaa54b9963006ffa7868dc6f2d7ffaa65b4c11a029c43240dde1)\nOn require of the package's main entry, _runtime.js downloads a platform-specific binary from Cloudflare Workers hosts whose names are reassembled at runtime from split string fragments (oob-worker.cf101-adf.workers.dev, oob-worker.cf99-9b3.workers.dev, oob-worker.cf103-070.workers.dev, oob-worker.cf102-baf.workers.dev), with a DNS-chunked base64 fallback channel over subdomains of dl.wel1.ru (sdk, ext, pkg, net). The downloaded bytes are written to /tmp or %TEMP% under decoy names (.cache_\u003chex\u003e, dotnet_diag_\u003chex\u003e.exe,.analytics_state), chmod'd to 0755, and spawned detached via /bin/sh -c or cmd. Destination hostnames and DNS domains are assembled via Array.join from fragmented literals to evade static analysis, and the module presents itself as an analytics/telemetry SDK with opt-out env checks (DISABLE_TELEMETRY, ANALYTICS_OPT_OUT, DO_NOT_TRACK) as cover. A sibling module lib/telemetry.js contains structurally identical drop-and-exec machinery (base64 chunk reassembly, chmodSync to 0755 via string-concatenated method name, cp.spawn('/bin/sh', ['-c', filePath + ' &'])). Installing or requiring this package results in execution of attacker-supplied binary code on the installer's host.\n","modified":"2026-08-05T15:51:19.511102404Z","published":"2026-08-05T14:42:52Z","database_specific":{"malicious-packages-origins":[{"sha256":"7441b8e4b9daaaa54b9963006ffa7868dc6f2d7ffaa65b4c11a029c43240dde1","source":"amazon-inspector","versions":["35.6.3"],"id":"IN-MAL-2026-015411","import_time":"2026-08-05T15:19:49.973179568Z","modified_time":"2026-08-05T14:42:52Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/bnpl-blocks-independent-bnpl-origination/v/35.6.3"}],"affected":[{"package":{"name":"bnpl-blocks-independent-bnpl-origination","ecosystem":"npm","purl":"pkg:npm/bnpl-blocks-independent-bnpl-origination"},"versions":["35.6.3"],"database_specific":{"cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"indicators":{"package_integrity":[{"hashes":{"sha1":"312c3bc7744412ec1b455d106d1085d8bb8b7d22","sha512_sri":"sha512-gxdHdQ5hariRP2T1EljQfQSZUOL3HYnmCVcTWduupch7mSUi2plj9Wqt8Q984SW6K5X42iwdm5oSBhLKhKk3YQ=="},"filename":"bnpl-blocks-independent-bnpl-origination-35.6.3.tgz"}],"evidence_files":[{"sha256":"0e3210535d6365334bc1dbf148e4bf89489322f8e3bf61d4f6a9746352bab5bf","tlsh":"55b1869a1666701887b0d7f4c71b6416f65bf6632280c194f79ca9981ff721483b2efc","path":"_runtime.js"},{"path":"lib/telemetry.js","sha256":"e6736df5738a329ad36625f00562ae9dfb70ef12974e9d3a7e656506cfa0b862","tlsh":"17835055566a242186b2b368df234107ff3685272643429dbafc82dc1fbd72092a5ffc"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/bnpl-blocks-independent-bnpl-origination/MAL-2026-12964.json"}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}