CRITICAL npm Malware

Malicious code in checkout-mobile-pay-button (npm)

MAL-2026-12352 · GHSA-c2h8-p68f-vf8m

Published · Modified

Dependency scanning

Check whether checkout-mobile-pay-button 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 (3299d3b20175ec3cd68c2355ccafd1e969237d93b2e708c92a9913ff323b19be)

checkout-mobile-pay-button@20.8.3 is a lure package: its name and README describe a 'mobile pay button platform adapter', but index.js unconditionally require()'s loader.js on load. loader.js reconstructs attacker-controlled hostnames at runtime via string-split/join obfuscation (oob-worker.cf100-416.workers.dev, oob-worker.cf101-adf.workers.dev, oob-worker.cf102-baf.workers.dev), downloads a platform-specific binary via https.get, writes it to /tmp or %TEMP% under a disguised name (.cache on Unix, dotnet_diag.exe on Windows), chmods 0755, and spawns it detached via /bin/sh -c or cmd.exe with.unref(). A DNS TXT covert channel over tin.dl.well1.site / tina.dl.well1.site / ldr.dl.well1.site / win.dl.well1.site (c. chunk-count then i. base64 chunks) provides a fallback delivery path when the workers.dev origins fail. The exported CheckoutMobilePayButton class is a stub with no real functionality; the package's only effect on install/require is fetching and executing opaque attacker-controlled bytes on the installer's host.

Source: ghsa-malware (0ce331757d94d948eb0d5685493abeb7926a32a4884e1166787bcd51bd655866)

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.

Ready to move

Start Securing

Free, no credit card | First findings in minutes