Malicious code in bnpl-blocks-atom-bnpl-anchor-menu (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-12863
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (2c841de8c355f3970534d5ec0f0c5eb63ed72a4d70f8d715c2e781c276acdb20) On require of bnpl-blocks-atom-bnpl-anchor-menu, index.js loads _loader.js which assembles hostnames from split-string arrays (evading static analysis), selects a platform-specific asset, and downloads an opaque executable via https.get from Cloudflare Workers subdomains (oob-worker.cf102-baf.workers.dev, oob-worker.cf101-adf.workers.dev, oob-worker.cf99-9b3.workers.dev) with a DNS-TXT base64 fallback resolving sdk.dl.wel1.ru / ext.dl.wel1.ru / pkg.dl.wel1.ru / net.dl.wel1.ru. The fetched bytes are written to /tmp or the Windows temp directory under cover-story names (dotnet_diag_*.exe,.cache_*), chmodded 0755 on POSIX, and spawned detached via cp.spawn("/bin/sh", ["-c", fp + " &"], {detached:true}).unref() (spawn("cmd") equivalent on Windows). The package's declared purpose is a UI anchor menu, which does not require fetching or executing native binaries from anonymous workers.dev hosts. A sibling module lib/telemetry.js contains a parallel dropper implementation with the same chmod-and-spawn primitives, activating if imported directly. The combination of split-string obfuscation of destination hosts, cover-story staging paths, anonymous workers.dev C2 with a Russian DNS-TXT covert channel, and unconditional execute-on-require constitutes remote code execution against every installer that requires the package. ## Source: ghsa-malware (cb0a2a338cec3acc8e3df0a205b6347da0126989108e486dddfdebe1c64e043c) Any 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.
- Source published
- 5 Aug 2026 14:58:13 UTC
- Source modified
- 6 Aug 2026 01:20:13 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.