Trojanized npm Packages Employ NullReceiver Tactic to Decode C2 IP from Blockchain

A Sneaky New Threat Has Emerged in the npm Ecosystem, Putting Thousands of Developers at Risk

A sophisticated new tactic has been spotted in the wild, leveraging a trusted package repository to spread malware. The attack involves compromising popular npm packages with a type of Trojan, designed to decode and retrieve a Command-and-Control (C2) server IP address from a blockchain-based data source. This stealthy approach allows attackers to remain undetected while infiltrating systems through seemingly legitimate software.

The vulnerability lies in the way certain packages are being compromised by hackers. These malicious actors have been exploiting the trust placed in well-known npm packages, which are widely used by developers for various projects. Once a package is Trojanized with this malware, it can silently transmit sensitive data to the attacker’s C2 server without raising any alarms. The attackers’ use of blockchain-based data storage adds an extra layer of complexity and makes it even more challenging to detect and respond to these types of attacks.

As thousands of developers rely on npm for their projects, the potential impact is substantial. If left unchecked, this type of attack can lead to a catastrophic breach, enabling hackers to map cross-domain privilege escalation and exploit vulnerable routes in systems. In essence, attackers can identify the most critical points of entry into an organization’s network and target them directly.

What makes this attack particularly insidious is its ability to remain hidden within seemingly harmless packages. With npm’s vast collection of open-source code, a compromised package can easily be overlooked or dismissed as a minor glitch. However, beneath the surface, it could be transmitting sensitive data back to the attackers. The use of blockchain-based data storage further complicates matters by providing an encrypted and decentralized repository for storing malicious commands.

The emergence of this new threat highlights the importance of maintaining robust security measures in software development ecosystems like npm. As more developers rely on package managers to streamline their workflow, it’s crucial to stay vigilant against these types of attacks. This includes regularly reviewing dependencies, scanning code for malware, and staying up-to-date with the latest security patches.

To protect yourself from this type of attack, make sure to monitor your dependency list closely and keep an eye out for any suspicious activity in your project’s logs. Regularly updating your npm packages and maintaining a secure development environment will also help mitigate these risks.


Source: The Hacker News — 2026-08-05