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.

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, 202610mo 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.