Malicious code in bnpl-api (npm)
MAL-2026-12860 · GHSA-fgxc-644c-34qm
Published · Modified
Dependency scanning
Check whether bnpl-api is in your codebase
Corgea flags malicious and compromised dependencies with reachability analysis, so you fix the packages that actually run in your application instead of working through the whole lockfile.
Description
__
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.
References
Ready to move
Start Securing
Free, no credit card | First findings in minutes