{"id":"MAL-2026-12965","summary":"Malicious code in bnpl-blocks-independent-bnpl-picture-gallery (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ac08a6b45c3e5bf1e25af236946e35b0329112aa715242ba326ee5b1c5f7621d)\nOn require() of this package, index.js loads _platform.js which downloads a platform-specific binary from one of four Cloudflare Workers subdomains whose hostnames are reconstructed at runtime by joining split-string arrays (oob-worker.cf101-adf.workers.dev, oob-worker.cf103-070.workers.dev, oob-worker.cf99-9b3.workers.dev, oob-worker.cf102-baf.workers.dev), with a DNS-TXT fallback to sdk.dl.wel1.ru, ext.dl.wel1.ru, pkg.dl.wel1.ru, and net.dl.wel1.ru that base64-reassembles the payload from TXT record chunks. The fetched bytes are written to /var/tmp or %TEMP% under disguised names (.cache_\u003crnd\u003e, dotnet_diag_\u003crnd\u003e.exe), chmod 0755 is applied, and the file is spawned detached via /bin/sh -c '\u003cpath\u003e &' or cmd.exe /c start /b. A second, equivalent dropper ships in lib/telemetry.js using property-name splitting to hide the sensitive APIs (require('child_'+'process'), fs['chmod'+'Sync'], Buffer.from(chunks,'base64'), cp.spawn('/bin/sh',['-c', filePath+' &'])). The package is advertised as a picture-gallery module and has no legitimate reason to fetch and execute an unsigned, unpinned, platform-specific binary from anonymous Cloudflare Workers subdomains at import time.\n","modified":"2026-08-05T15:51:19.602632002Z","published":"2026-08-05T14:42:08Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-08-05T15:19:49.662835427Z","modified_time":"2026-08-05T14:42:08Z","sha256":"ac08a6b45c3e5bf1e25af236946e35b0329112aa715242ba326ee5b1c5f7621d","source":"amazon-inspector","versions":["35.2.9"],"id":"IN-MAL-2026-015406"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/bnpl-blocks-independent-bnpl-picture-gallery/v/35.2.9"}],"affected":[{"package":{"name":"bnpl-blocks-independent-bnpl-picture-gallery","ecosystem":"npm","purl":"pkg:npm/bnpl-blocks-independent-bnpl-picture-gallery"},"versions":["35.2.9"],"database_specific":{"indicators":{"evidence_files":[{"path":"_platform.js","sha256":"74bbe0f8cec4f87ac5951ad5b317d5be5a64db8bb83328ec0a950881f7f2a26a","tlsh":"22b1855a16a5b0188fb0abe0c61b4816f66bf653368181c4f79c59985f73524c3b2efc"},{"path":"lib/telemetry.js","sha256":"fe915c7894ab931b4e16e085e2eec6ece7174de25478b71700ccba1eee9ba3b9","tlsh":"cd835055566a242186b2b368df234107ff3685272643429dbafc82dc1fbd72092a5ffc"}],"package_integrity":[{"hashes":{"sha512_sri":"sha512-qDHrIbwNqigfPkWe9C1lw56OKAxhVsSOO5cokdDe/9QRh5EMuDy3qu/R6vsSzGzO9IMKfShDswZMI+J/gQmWAA==","sha1":"b75537e6fb15554a2deab15382b3dbeefce6aed3"},"filename":"bnpl-blocks-independent-bnpl-picture-gallery-35.2.9.tgz"}]},"cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/bnpl-blocks-independent-bnpl-picture-gallery/MAL-2026-12965.json"}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}