NodeCordRAT Distributed via Malicious Bitcoin-Themed npm Packages
Supply Chain Risk · 3 sources · Updated 5mo ago · First seen Jan 8, 2026

Three malicious npm packages—bitcoin-main-lib, bitcoin-lib-js, and bip40—were discovered on the public npm registry, targeting JavaScript developers by masquerading as legitimate bitcoinjs project components. These packages, uploaded by a user named "wenmoonx," delivered a previously undocumented remote access trojan (RAT) dubbed NodeCordRAT. The infection chain began when developers installed either bitcoin-main-lib or bitcoin-lib-js, which executed a post-install script to fetch and install bip40, the package containing the actual malware payload. Once active, NodeCordRAT enabled attackers to steal browser credentials, API keys, and cryptocurrency wallet data, particularly targeting Chrome login databases, .env files, and MetaMask wallet information.
NodeCordRAT is written in Node.js and uses Discord as its command-and-control (C2) channel, allowing attackers to remotely execute shell commands, take screenshots, and exfiltrate files from compromised developer systems. The malware is cross-platform, capable of fingerprinting infected hosts on Windows, Linux, and macOS, and uses Discord's API for covert data exfiltration. The campaign was identified by Zscaler ThreatLabz in November 2025, and all three malicious packages have since been removed from the npm registry. The attack highlights the ongoing risk of supply chain threats in open-source ecosystems, especially for developers handling sensitive credentials and production access.


