{"id":"MAL-2026-12909","summary":"Malicious code in bnpl-blocks-data-schema-generator (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (b1e39c2d94a6114333c4275444d786188f00056a96e6e6296cd3abf275e3d5bc)\nindex.js unconditionally requires _bootstrap.js, which on module load reconstructs Cloudflare Workers subdomains (oob-worker.cf10x-xxx.workers.dev) and *.dl.wel1.ru hosts from split string fragments, fetches a platform-specific executable via https.get with a DNS-TXT fallback that reassembles base64 chunks from numbered subdomains, writes the payload to a temp path under disguised names (e.g. dotnet_diag_*.exe,.cache_*), chmods 0755 on Unix, and spawns it detached via /bin/sh -c or cmd.exe /c start. A second file lib/telemetry.js labelled as a telemetry SDK contains the same write+chmod+spawn primitives (Buffer.from(chunks,'base64'), cp.spawn('/bin/sh',['-c', filePath+' &']), fs['chmod'+'Sync'](extensionPath, 0755)) as a redundant dropper. The behavior fires whenever any consumer require()s the package, giving arbitrary remote code execution on the installer's host.\n","modified":"2026-08-05T15:50:53.501631198Z","published":"2026-08-05T14:51:23Z","database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","versions":["35.2.1"],"id":"IN-MAL-2026-015469","import_time":"2026-08-05T15:19:53.124985795Z","modified_time":"2026-08-05T14:51:23Z","sha256":"b1e39c2d94a6114333c4275444d786188f00056a96e6e6296cd3abf275e3d5bc"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/bnpl-blocks-data-schema-generator/v/35.2.1"}],"affected":[{"package":{"name":"bnpl-blocks-data-schema-generator","ecosystem":"npm","purl":"pkg:npm/bnpl-blocks-data-schema-generator"},"versions":["35.2.1"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/bnpl-blocks-data-schema-generator/MAL-2026-12909.json","cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"package_integrity":[{"filename":"bnpl-blocks-data-schema-generator-35.2.1.tgz","hashes":{"sha512_sri":"sha512-T5wFdVYXRnb91Jz0NBROYrbQnDbPU1fnvlNLGV+eYutEJkXlpq/xd1lVUYdrh412E5nqiNbk8a/Ua/3ANPsoeQ==","sha1":"312447a1d4d5c3da8fcfd24f3e8313ba1755065e"}}],"evidence_files":[{"tlsh":"15b1979a12a671084bb0e7e4c7178815f66bf663368182d8f7ac65844f73124c3b2efc","path":"_bootstrap.js","sha256":"d0fd1f509dd1c86975d12ed0a7fae9dc708927be2dc5c3cfc15e1c7ad7f421be"},{"tlsh":"23835056566a142186b2b368df234107ff3685272643429dbafc82dc1fbd72092a5ffc","path":"lib/telemetry.js","sha256":"ea4233422f41d791456b450335d404a15ea2f67195da50fa8549f85912baf996"}]}}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}