14 Trojanized npm Packages Drop RedC2 4.0 Linux Backdoor With AI-Assisted C2

A Sneaky Linux Backdoor Spreads Through Popular npm Packages, Exploiting AI-Powered Command and Control Features

Malicious actors have been secretly slipping a sophisticated backdoor into 14 popular Node.js packages on the npm registry, leaving thousands of users vulnerable to a powerful Linux exploit. The compromised packages, which were downloaded over 1.5 million times in recent months, have been discovered to contain a version of RedC2 4.0, an AI-assisted command and control (C2) tool designed for sophisticated threat actors.

RedC2 is a tool typically used by nation-state actors and advanced persistent threats (APTs), allowing them to establish complex networks of compromised systems that can be remotely controlled and manipulated. The Linux version of RedC2 4.0, which was hidden within the npm packages under the guise of legitimate updates, allows attackers to leverage machine learning algorithms for more effective threat analysis and evasion.

The vulnerability affects users who have installed any of the affected packages between June and August this year. These users may not even be aware that their systems are compromised, as the backdoor can remain dormant until activated remotely by an attacker. The severity of the situation is compounded by the fact that many organizations rely on these npm packages for critical infrastructure development.

An analysis of the affected packages reveals a sophisticated tactic known as ” supply chain compromise.” By compromising the npm registry, attackers were able to inject their malware into widely used dependencies, potentially allowing them to spread across multiple systems undetected. This type of attack highlights the importance of maintaining software supply chains and prioritizing secure development practices.

As this incident demonstrates, the consequences of a compromised software supply chain can be far-reaching. It is crucial for organizations to stay vigilant in monitoring their software dependencies and implementing robust security measures to prevent such attacks from succeeding. Furthermore, users should remain cautious when installing npm packages, opting for trusted sources and keeping their Node.js environments up-to-date with the latest security patches.

To avoid falling prey to similar attacks in the future, we recommend that developers and organizations take a closer look at their dependency management processes. This includes regularly auditing package dependencies, implementing secure coding practices, and staying informed about emerging threats through reputable cybersecurity sources. By prioritizing these measures, you can significantly reduce your exposure to supply chain-based vulnerabilities and maintain the integrity of your systems.


Source: The Hacker News — 2026-08-21