Description

Cybersecurity analysts have identified a malicious npm supply-chain campaign involving three rogue packages that were used to distribute a newly identified remote access trojan named NodeCordRAT. These packages were published by an account called wenmoonx and remained available until they were removed in November 2025. Despite appearing legitimate, the libraries were designed to quietly compromise systems during installation, putting developers and environments that relied on them at risk. The affected packages include bitcoin-main-lib, bitcoin-lib-js, and bip40, which collectively recorded several thousand downloads. The attack chain begins when either bitcoin-main-lib or bitcoin-lib-js is installed. Both contain a post-installation script that automatically triggers the download and execution of the bip40 package. This final component delivers the actual malicious payload, which functions as a fully featured remote access trojan with data-harvesting capabilities. NodeCordRAT is named for its dual abuse of npm for distribution and Discord for command-and-control operations. Once active, it profiles the infected system across Windows, Linux, and macOS to generate a unique identifier, then connects to a hard-coded Discord server. Through this covert channel, attackers can run shell commands, capture screenshots, and upload files directly from the victim’s machine. In addition to remote control, the malware focuses heavily on credential theft. It is capable of extracting Google Chrome credentials, API tokens, and cryptocurrency wallet seed phrases, including those from MetaMask. All stolen data is exfiltrated via Discord’s API using a built-in token and uploaded as attachments to a private channel, allowing attackers to blend malicious traffic with normal platform activity.