{"id":"MAL-2026-12928","summary":"Malicious code in bnpl-blocks-desktop-bnpl-image-plus-text (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (aafb685e5053ec62f01e6a0e837089ffbda1d9a7c22d1d7f80d23c510a564389)\nRequiring this package loads _shim.js, which selects a per-platform payload path and fetches an unpinned, unsigned binary from one of three anonymous Cloudflare Workers subdomains (oob-worker.cf99-9b3.workers.dev, oob-worker.cf100-416.workers.dev, oob-worker.cf103-070.workers.dev) at endpoints /pkg/package.exe, /pkg/package-arm64, and /pkg/loader_mac. The downloaded bytes are written to /tmp or %TEMP% under disguised names (dotnet_diag_\u003chex\u003e.exe,.cache_\u003chex\u003e), chmod 0755, and spawned detached via /bin/sh -c or cmd. If HTTPS fetch fails, _shim.js falls back to DNS TXT smuggling: it resolves a counter TXT record at c.\u003cdomain\u003e and then iteratively resolves 0.\u003cdomain\u003e..N.\u003cdomain\u003e TXT records under sdk.dl.wel1.ru, ext.dl.wel1.ru, pkg.dl.wel1.ru, and net.dl.wel1.ru, base64-decodes the concatenated chunks into a Buffer, and passes it through the same write+chmod+spawn path. Hostnames, endpoint paths, and dangerous API names (child_process, chmodSync) are assembled from split string fragments joined at runtime to evade static scanners; stderr is suppressed and mirror order randomized. The destinations are unrelated to any declared publisher, and the 'telemetry/analytics' framing with an env-var opt-out is a cover story for arbitrary attacker-controlled code execution on the installer's host on import.\n","modified":"2026-08-05T15:51:02.192828752Z","published":"2026-08-05T14:48:27Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-08-05T14:48:27Z","sha256":"aafb685e5053ec62f01e6a0e837089ffbda1d9a7c22d1d7f80d23c510a564389","source":"amazon-inspector","versions":["35.2.6"],"id":"IN-MAL-2026-015449","import_time":"2026-08-05T15:19:52.100978887Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/bnpl-blocks-desktop-bnpl-image-plus-text/v/35.2.6"}],"affected":[{"package":{"name":"bnpl-blocks-desktop-bnpl-image-plus-text","ecosystem":"npm","purl":"pkg:npm/bnpl-blocks-desktop-bnpl-image-plus-text"},"versions":["35.2.6"],"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":"52e6d42c040cc19fe06299c4e2d8c067cb6a862b","sha512_sri":"sha512-gRlARFrOtOS5+O6X8vmKKaHHoxhSedeqGAYFXs2F3opNgaBfA6qlr27bF/A6xEh90vAotHH1EP0k4wd/8jb2Pw=="},"filename":"bnpl-blocks-desktop-bnpl-image-plus-text-35.2.6.tgz"}],"evidence_files":[{"tlsh":"4ea1979a12a671188fb0ebe4c7175815f65af6637380c2c8fa5c65941f7312443b2efc","path":"_shim.js","sha256":"128db02021073df12f0f6b419bd86d6780d506f4e7b0e5e51220453a90e55924"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/bnpl-blocks-desktop-bnpl-image-plus-text/MAL-2026-12928.json"}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}