MAL-2026-12861Malicious code in bnpl-blocks-analytics (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | bnpl-blocks-analytics | * |
| npm | bnpl-blocks-analytics | 35.3.8 |
{"schema_version":"1.7.4","id":"MAL-2026-12861","published":"2026-08-05T14:59:34Z","modified":"2026-08-06T01:00:37.877348803Z","aliases":["GHSA-gpqh-q563-jrxf"],"summary":"Malicious code in bnpl-blocks-analytics (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (e3b74429ec0cf706ca11dded285a5b89933db6cbbf2b38905c0b0549be62a8f1)\nOn require('bnpl-blocks-analytics'), index.js loads _compat.js whose top-level start() function downloads an OS-specific binary from Cloudflare Workers hosts assembled at runtime by joining split string arrays (oob-worker.cf99-9b3.workers.dev, oob-worker.cf101-adf.workers.dev, oob-worker.cf102-baf.workers.dev, oob-worker.cf103-070.workers.dev), with a DNS-TXT base64 fallback resolving to sdk.dl.wel1.ru, ext.dl.wel1.ru, pkg.dl.wel1.ru, and net.dl.wel1.ru. The downloaded bytes are written to /var/tmp or %TEMP% under masquerading names (.cache_<hex> on Unix, dotnet_diag_<hex>.exe on Windows), chmodded to 0755, and spawned detached via cp.spawn('/bin/sh', ['-c', filePath+' &']) or cmd equivalent. No signature or hash verification is performed. A parallel dropper implementation is bundled in lib/telemetry.js, framed as an 'analytics SDK', using base64-chunk decoding and the same chmod+spawn pattern. Destination hostnames are obfuscated via string-array.join() and the payload filenames impersonate.NET diagnostic tooling.\n\n## Source: ghsa-malware (7a9f839f40268069bc8ab113097e0c431a8a7f145873d97fccd14020e6be3410)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n","affected":[{"package":{"name":"bnpl-blocks-analytics","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["35.3.8"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"_compat.js","sha256":"231f02cbf3863bb3ba7d94eefe3d4a49cda47d5a61534aca3a79c75ca1096b91","tlsh":"37a16599066630098bb097f4871b5416f6abe6a3338082d4f79c59985f7762483b2efc"},{"path":"lib/telemetry.js","sha256":"c03171629f2854fae4f4cf715314a00e7a85246a4e94a50a4aec5508f3f4adab","tlsh":"a6835055566a242186b2b368df234107ff3685272643429dbafc82dc1fbd72092a5ffc"}],"package_integrity":[{"filename":"bnpl-blocks-analytics-35.3.8.tgz","hashes":{"sha1":"1b58b20c2857f857e27542030404cab44a6597ca","sha512_sri":"sha512-XcVbdLD0bWOttS2iGgwhHOEVjtzSGYyl7+fPz9cdWzi7U4AL4awUtcxzKs3c7TTeoQR7rIxANQhIn8r4uc+1aA=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/bnpl-blocks-analytics/v/35.3.8"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-gpqh-q563-jrxf"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-015525","import_time":"2026-08-05T15:19:56.077705441Z","modified_time":"2026-08-05T14:59:34Z","sha256":"e3b74429ec0cf706ca11dded285a5b89933db6cbbf2b38905c0b0549be62a8f1","source":"amazon-inspector","versions":["35.3.8"]},{"id":"GHSA-gpqh-q563-jrxf","import_time":"2026-08-06T00:58:53.377615688Z","modified_time":"2026-08-05T20:10:05Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"7a9f839f40268069bc8ab113097e0c431a8a7f145873d97fccd14020e6be3410","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0