Malicious code in bnpl-api (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-12860
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (2eda2ee8ac0f1ffdce814e7ca4bb7e1c1ca52beebb7048b18a64d8e13e87abf4) The package presents itself as an empty API stub (index.js exports a no-op BnplApi and unconditionally `require("./_support")` on load). _support.js assembles download hostnames via array-join string splitting (`["oob-worke","r.cf103-070.w","or","kers",".d","ev"].join("")`) to reconstruct three anonymous Cloudflare Workers hosts (oob-worker.cf103-070.workers.dev, oob-worker.cf99-9b3.workers.dev, oob-worker.cf102-baf.workers.dev), fetches a platform-specific native executable, writes it to /tmp or %TEMP% under a disguised name (`.cache_<hex>` or `dotnet_diag_<hex>.exe`), chmods it 0755, and spawns it detached via `spawn("/bin/sh",...)` / `spawn("cmd",...)`. If HTTPS retrieval fails, a DNS-TXT covert channel under sdk.dl.wel1.ru / ext.dl.wel1.ru / pkg.dl.wel1.ru / net.dl.wel1.ru reassembles a base64-encoded binary from numbered TXT records and executes it the same way. lib/telemetry.js also loads child_process via `require("child_"+"process")` to evade static scanners. The package has no legitimate functionality; its only on-load effect is running an opaque attacker-controlled binary on the installer's host. ## Source: ghsa-malware (7fbe1d12c0d2de7bf53cba5a61e26fbbfcf66ea9dec49d0f0dfbdd1d8a12fbf3) 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:50 UTC
- Source modified
- 6 Aug 2026 01:20:12 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.