Nearly 800 Malicious npm Packages Deliver Cross-Platform RAT and Infostealer

A recent investigation has uncovered a disturbing trend in the world of open-source software, where nearly 800 malicious packages have been discovered on npm (Node Package Manager), a popular repository for JavaScript libraries. These compromised packages deliver a cross-platform Remote Access Tool (RAT) and an Infostealer malware to unsuspecting developers and their organizations.

The affected packages were found to be hiding in plain sight, masquerading as legitimate software dependencies. Once installed, they could establish a backdoor connection to the attacker’s command center, allowing for remote control of infected systems. The RAT also came equipped with keylogging capabilities, effectively stealing sensitive login credentials from victims’ machines.

The investigation revealed that these malicious packages used a technique called “dependency confusion” to bypass security measures and gain unauthorized access to vulnerable systems. This approach exploits the way npm handles package dependencies, making it possible for attackers to create fake versions of popular libraries that are more easily exploitable than their official counterparts.

The scope of this attack is staggering, with nearly 800 malicious packages found on npm. The compromised software was used in a wide range of projects, from small personal websites to large-scale enterprise applications. As a result, organizations across various industries, including finance and healthcare, have been affected by the breach.

This incident highlights the importance of secure coding practices and the need for developers to exercise caution when using open-source libraries. Attackers often rely on exploiting vulnerabilities in popular software packages to gain access to sensitive systems. The discovery of these malicious npm packages serves as a stark reminder that even well-intentioned open-source projects can be compromised by bad actors.

In light of this incident, it is essential for developers and security professionals to take proactive steps to protect their systems and applications. This includes regularly updating dependencies, using secure coding practices, and implementing robust monitoring and detection tools to identify potential threats. By being vigilant and taking these precautions, organizations can minimize the risk of falling victim to similar attacks in the future.


Source: The Hacker News — 2026-08-07