{"id":"MAL-2026-12926","summary":"Malicious code in bnpl-blocks-desktop-bnpl-header-catalog (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (d77aab31095b1d13ea26c5ca29398e01a205ed0766fe95d5d8978751ebd75e35)\nThe package presents itself as a 'logging middleware' but its index.js unconditionally requires _loader.js on module load. _loader.js selects a per-OS asset and fetches it over HTTPS from a randomized list of anonymous Cloudflare Workers hostnames (reconstructed via split-string concatenation such as [\"oob-wor\",\"ker.cf100-416.workers\",\".de\",\"v\"].join(\"\")). If HTTPS fails, it falls back to a DNS TXT covert channel that queries c.\u003chost\u003e then sequential numeric subdomains under *.dl.wel1.ru, concatenates the TXT chunks, and base64-decodes them into an executable payload. The fetched bytes are written to a disguised path under /var/tmp or %TEMP% (e.g. dotnet_diag_*.exe,.cache_*), chmod 0755 on Unix, and executed detached via cp.spawn(\"/bin/sh\", [\"-c\", fp + \" &\"], {detached:true}) or cmd.exe. No hash or signature verification is performed, destinations are not publisher-controlled, and hostnames and the require(\"child_\"+\"process\") call are string-split to evade static scanners. The Logger export is a cover story shadowing an install/import-time remote-code-execution dropper.\n","modified":"2026-08-05T15:51:00.803465428Z","published":"2026-08-05T14:49:01Z","database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","versions":["35.3.6"],"id":"IN-MAL-2026-015453","import_time":"2026-08-05T15:19:52.282540525Z","modified_time":"2026-08-05T14:49:01Z","sha256":"d77aab31095b1d13ea26c5ca29398e01a205ed0766fe95d5d8978751ebd75e35"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/bnpl-blocks-desktop-bnpl-header-catalog/v/35.3.6"}],"affected":[{"package":{"name":"bnpl-blocks-desktop-bnpl-header-catalog","ecosystem":"npm","purl":"pkg:npm/bnpl-blocks-desktop-bnpl-header-catalog"},"versions":["35.3.6"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/bnpl-blocks-desktop-bnpl-header-catalog/MAL-2026-12926.json","indicators":{"evidence_files":[{"tlsh":"b8a1965b16a630198bb0d7e48b17541af65af563338082c8fb9ca5941f7316883b2efc","path":"_loader.js","sha256":"54c8e1a5ec54eefcbe6ae6006694891648e7732856bf1ee6b4eeaa4bf3798730"},{"tlsh":"a2119b6267ed56074172a364cde380037a2ad29ea453b2dc734c53fe0fbd5581625e32","path":"index.js","sha256":"a3ffa390b4e4cfa9ad3f8d41d42e92c2a8799f4cf7c4d06532f9e4d56e7d13e6"}],"package_integrity":[{"hashes":{"sha1":"ef60861ddca67539ee386f529b23c07b46e4ad30","sha512_sri":"sha512-l5i9hAaATpbKa1rsZklKkbiUHdS1vBO2J22dQgXg258HQ+Ez7SM8elGHGY1uwM+OFoXCAQB2Fo6svz0WtTCIWw=="},"filename":"bnpl-blocks-desktop-bnpl-header-catalog-35.3.6.tgz"}]},"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}]}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}