{"id":"MAL-2026-13017","summary":"Malicious code in bnpl-blocks-shops-api (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (209f1c0883ce38bd482d809b83edd85e8d3db75a379909e1b47ee24562c49526)\nindex.js is the declared main entry and unconditionally requires./setup.js on load. setup.js reconstructs attacker-controlled endpoints via string-split obfuscation (e.g. ['oob-work','er.cf102-b','af.w','orkers','.de','v'].join('')) to build URLs at oob-worker.cf99-9b3.workers.dev, oob-worker.cf100-416.workers.dev, oob-worker.cf101-adf.workers.dev, and oob-worker.cf102-baf.workers.dev, with a DNS TXT chunked-base64 fallback via {sdk,ext,pkg,net}.dl.wel1.ru. Platform-specific binaries are downloaded to /tmp or %TEMP% under disguised names (e.g. dotnet_diag_*.exe,.cache_*), chmodded 0755, and spawned detached via /bin/sh -c or cmd.exe /c start /b. Dangerous API names are also fragmented (require('child_'+'process'), fs['chmod'+'Sync'], os['host'+'name']) to evade scanners. The fetched bytes are unpinned, unverified, and unrelated to the package's advertised SDK purpose; any consumer that requires this package triggers full-host code execution.\n","modified":"2026-08-05T15:51:43.761176337Z","published":"2026-08-05T14:36:00Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-08-05T15:19:47.268302711Z","modified_time":"2026-08-05T14:36:00Z","sha256":"209f1c0883ce38bd482d809b83edd85e8d3db75a379909e1b47ee24562c49526","source":"amazon-inspector","versions":["35.2.5"],"id":"IN-MAL-2026-015365"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/bnpl-blocks-shops-api/v/35.2.5"}],"affected":[{"package":{"name":"bnpl-blocks-shops-api","ecosystem":"npm","purl":"pkg:npm/bnpl-blocks-shops-api"},"versions":["35.2.5"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/bnpl-blocks-shops-api/MAL-2026-13017.json","indicators":{"package_integrity":[{"filename":"bnpl-blocks-shops-api-35.2.5.tgz","hashes":{"sha1":"49307b763620ef8e489d175acc5bc06551f87713","sha512_sri":"sha512-djEvN3LT/+5Bw6NDhN1M0F42vgJiO7iZnEGUrnAsGIvuiag1Tf4jFWmH1/my5KDYuBiwwUDscd9LMZth4cJC+g=="}}],"evidence_files":[{"path":"setup.js","sha256":"3835b9a2c0e9f3da622b00a0a5313f725a4bf684b4e83d16af75f0e1ce29c0cc","tlsh":"56a197561266301c8bb0d7e4c71b4416f65be6633680c2d4fb5ca9885f7722483b2efc"}]},"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"}]}