Skip to main content
Mallory
← Back to News
package-repository-poisoningremote-access-implantcredential-stealer-activitycommand-and-control-method

NodeCordRAT Distributed via Malicious Bitcoin-Themed npm Packages

Supply Chain Risk · 3 sources · Updated 5mo ago · First seen Jan 8, 2026

NodeCordRAT Distributed via Malicious Bitcoin-Themed npm Packages

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.

Why it matters

Impact assessment

NodeCordRAT is a software supply chain compromise targeting JavaScript developers, especially teams working with cryptocurrency tooling, browser-stored credentials, API secrets, and production environment variables. The immediate impact is credential theft and remote backdoor access on developer workstations across Windows, Linux, and macOS, creating risk of source code compromise, cloud account takeover, wallet theft, and downstream production intrusion.

Exposure appears broad rather than tightly targeted because the malware was distributed through the public npm registry under convincing package names that mimicked bitcoinjs-related libraries. There is no confirmed public reporting of follow-on intrusions from this campaign in the provided sources, but the packages accumulated thousands of downloads before removal, indicating likely real-world compromise.

Affected populations

  • JavaScript and Node.js developers using npm
  • Cryptocurrency and blockchain development teams
  • Organizations with developers storing secrets in .env files or browsers
  • Users with MetaMask or other browser-based wallet material on developer endpoints

Severity and business risk

  • Theft of Chrome credentials and login databases can enable account takeover
  • Theft of API tokens and .env secrets can expose cloud, CI/CD, and production systems
  • Theft of wallet seed phrases and keys can lead to direct financial loss
  • RAT capability enables arbitrary command execution, screenshot capture, and file theft from infected hosts
  • Compromised developer endpoints can become pivot points into source repositories and internal infrastructure

Scope and known exposure facts

  • Malicious packages: bitcoin-main-lib, bitcoin-lib-js, bip40
  • Reported download counts before removal:
    • bitcoin-main-lib: about 2,286 to 2,300
    • bitcoin-lib-js: about 183 to 193
    • bip40: about 958 to 970
  • Packages were removed from npm as of November 2025
  • Campaign discovered by Zscaler ThreatLabz

Entities

  • Malware family: NodeCordRAT
  • Registry: npm
  • Threat research organization: Zscaler ThreatLabz
  • Package uploader: wenmoonx
  • Associated email: supertalented730@gmail.com
Does this reach your builds?Trace attribution and downstream blast radius.
Trace the chain
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

4 events · Nov 1, 2025 – Jan 8, 2026
  1. Jan 8, 202611mo ago

    Researchers publicly disclose the NodeCordRAT npm supply-chain attack

    Multiple security outlets reported Zscaler ThreatLabz's findings, publicly detailing the malicious packages, their Discord-based control mechanism, and the risks posed to developers and organizations using open-source dependencies.

  2. Nov 30, 20251y ago

    Malicious NodeCordRAT npm packages removed from npm

    By November 2025, the three identified packages had been taken down from the npm registry following their discovery. Reports noted that the packages may already have been downloaded thousands of times before removal.

  3. Nov 1, 20251y ago

    NodeCordRAT campaign discovered in npm packages

    In November 2025, Zscaler ThreatLabz identified the three malicious npm packages as delivering a new cross-platform remote access trojan called NodeCordRAT via postinstall scripts. The malware enabled command execution, screenshot capture, file theft, and exfiltration of Chrome credentials, API tokens, and cryptocurrency wallet seed phrases through a hard-coded Discord-based command-and-control channel.

  4. Nov 1, 20251y ago

    Malicious npm packages uploaded to mimic bitcoinjs libraries

    Threat actors uploaded three npm packages—bitcoin-main-lib, bitcoin-lib-js, and bip40—under the user name "wenmoonx" to impersonate legitimate bitcoinjs-related projects and target developers, particularly in the cryptocurrency sector.

Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Malware

1 linked
Do you run this?See attribution and downstream blast radius, and whether this package or vendor reaches your builds.
Trace the Supply Chain
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.