{"id":"MAL-2026-12866","summary":"Malicious code in bnpl-blocks-atom-bnpl-breadcrumbs (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (35d35af02d640655669a475465b8fc992dc8b79950584824dab0e86c285f8b01)\nOn require() of the package, index.js loads _polyfill.js, which fetches a platform-specific opaque binary from obfuscated Cloudflare Workers subdomains (oob-worker.cf100-*.workers.dev, oob-worker.cf101-*.workers.dev, etc.) and, if HTTPS delivery fails, falls back to reassembling the payload from base64-encoded DNS TXT records under *.dl.wel1.ru (query c.\u003cdomain\u003e for a chunk count, then concatenate N.\u003cdomain\u003e TXT records). The retrieved bytes are written to /var/tmp or %TEMP% under a disguised filename (.cache_\u003chex\u003e on POSIX, dotnet_diag_\u003chex\u003e.exe on Windows), chmod 0755'd, and detach-spawned via /bin/sh -c \"\u003cfile\u003e &\" or cmd /c start, with.unref() so the process outlives the require() call. C2 hostnames are assembled at runtime by array-join splits ([\"oob-\",\"worker.cf10\",\"0-416.w\",\"orkers.d\",\"ev\"].join(\"\"), ['sdk.dl.wel1','.ru'].join(\"\")) to defeat static string scanning, and the code respects DO_NOT_TRACK/DISABLE_TELEMETRY environment variables as a review-evasion gate. The staged filenames impersonate legitimate diagnostic tooling and a hidden marker file (.analytics_state) is used to track prior execution. No verification (hash, signature, pinning) is performed on the fetched binary.\n\n## Source: ghsa-malware (5582dd51f0bd535ef356f6b20ea449ac43b136f2620a90844a21dfa80b0579c4)\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","aliases":["GHSA-r3c4-v8r3-9wx3"],"modified":"2026-08-06T01:20:14.982505451Z","published":"2026-08-05T14:58:02Z","database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-015515","import_time":"2026-08-05T15:19:55.62288482Z","modified_time":"2026-08-05T14:58:02Z","sha256":"35d35af02d640655669a475465b8fc992dc8b79950584824dab0e86c285f8b01","source":"amazon-inspector","versions":["35.8.2"]},{"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"sha256":"5582dd51f0bd535ef356f6b20ea449ac43b136f2620a90844a21dfa80b0579c4","source":"ghsa-malware","id":"GHSA-r3c4-v8r3-9wx3","import_time":"2026-08-06T00:58:53.441638377Z","modified_time":"2026-08-05T20:11:08Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/bnpl-blocks-atom-bnpl-breadcrumbs/v/35.8.2"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-r3c4-v8r3-9wx3"}],"affected":[{"package":{"name":"bnpl-blocks-atom-bnpl-breadcrumbs","ecosystem":"npm","purl":"pkg:npm/bnpl-blocks-atom-bnpl-breadcrumbs"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["35.8.2"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/bnpl-blocks-atom-bnpl-breadcrumbs/MAL-2026-12866.json","indicators":{"package_integrity":[{"filename":"bnpl-blocks-atom-bnpl-breadcrumbs-35.8.2.tgz","hashes":{"sha1":"e766e36afe5fae864d7bcd86acacaf56e0006eaa","sha512_sri":"sha512-2ngukDLjW/OYse6ItO2UaY4DX5pyuubLzeFwTP/etIQW0WwjkBY60XATggqogpDE0cqthQ73JXqoTF/X3f0UaA=="}}],"evidence_files":[{"sha256":"3f865fb41bd7f40580b4732c636c23dee1bcc2a7e410676a824716637e25d94a","tlsh":"e4a1855a126a701d8bb0dbf0871b5415f65af663338081d4fb9c69941fb31248372dfc","path":"_polyfill.js"}]}}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}