Threat actors are using blockchain transactions to change command-and-control (C2) servers without updating malware already installed on compromised systems.
Unit 42 research published October 7 describes how poisoned software packages retrieve attacker infrastructure details through decentralized networks, making fixed domain and IP blocklists less effective.
The technique turns public blockchains into lookup channels. Instead of contacting a server permanently written into its code, malware reads blockchain records to discover its current destination.
Operators can publish new information through a transaction, redirecting infected systems toward replacement infrastructure.
These attacks target developer workstations and continuous integration and deployment (CI/CD) runners. Such environments often contain cloud identity tokens, service account keys and deployment secrets.
Stolen credentials can give attackers access to cloud management systems, potentially bypassing multifactor authentication when other controls are absent.
Blockchain Malware Rotates C2
ChainDrop, an npm worm linked to the Shai-Hulud family, infected more than 400 packages, including keyv and cacheable-request, according to Unit 42.
A preinstall hook downloads a custom Bun runtime that launches an obfuscated credential harvester.
The malware searches both files and running build process memory for cloud credentials, pipeline worker tokens and short-lived identity federation keys.
It also installs persistent task hooks that trigger when developers open projects or begin AI coding sessions. Blockchain lookups help it locate changing exfiltration endpoints.

PolinRider extends this approach across npm, Go modules and Packagist. Its loaders hide inside repository configuration files, web resources and development workspace automation.
Opening a workspace can trigger credential theft and establish persistence within build pipelines. Variants use TRON, Aptos and Binance Smart Chain, with alternative lookup methods providing backup routes.
Unit 42 also describes related North Korean operations targeting Axios, Mastra AI and Rust’s arrayref. The report links these intrusions through matching C2 behavior, SSL configurations and shared hosting patterns, illustrating how compromised dependencies can support broader enterprise access.
The first method, EtherHiding, stores C2 information in smart contracts. Malware retrieves it using read-only JSON-RPC requests such as eth_call. However, a fixed contract address remains visible in requests, allowing defenders to identify and block that lookup.
TxDataHiding moves encrypted endpoint information into transaction input data, also called calldata. Loaders retrieve transactions and decrypt the information in memory.
Multiple blockchain networks provide fallback channels, allowing operators to publish replacement endpoint details when an existing route is blocked.
NullReceiver takes a different approach. Malware reads an attacker-controlled wallet’s latest zero-value transaction and extracts an IPv4 address from its recipient address.
It checks an ASCII marker and converts the first four bytes into decimal values. The transaction needs no input data or executable payload, unit42 said.
Unit 42 recommends monitoring unexpected blockchain connections from development tools, scripting engines and compilers. Organizations without legitimate Web3 activity should investigate such traffic.
Join 16,000+ SOC teams using ANY.RUN to streamline threat investigations and reduce manual effort. Explore for your team