Malicious npm Packages Spread Data-Stealing Malware

Malicious npm Packages Target Developers

Cybersecurity researchers recently discovered four malicious npm packages that spread dangerous malware to developers. The infected packages appeared harmless at first. However, they secretly delivered information-stealing tools and botnet malware after installation. Researchers found that one package copied code from a previously leaked malware project.

Therefore, attackers quickly reused public malware code to launch new supply chain attacks. The malicious libraries also stayed available for download during the investigation. As a result, many developers faced possible credential theft and system compromise.

Researchers identified the fake packages as typo-squatting libraries that copied trusted package names. However, each package carried different malware functions despite using the same publisher account. One package installed a DDoS bot called Phantom Bot on infected devices. For example, the malware could flood websites using HTTP, TCP, and UDP traffic.

The bot also created scheduled tasks to maintain access on Windows and Linux systems. Meanwhile, the remaining packages focused on stealing SSH keys, cloud credentials, cryptocurrency wallet data, and system information. Therefore, attackers gained access to sensitive developer environments and online accounts.

Malware Campaign Signals Growing Supply Chain Risks

One malicious package contained a direct clone of the leaked worm source code. However, attackers modified the malware slightly before uploading it to npm. Researchers explained that the malware sent stolen credentials to remote command servers. In addition, the attackers used stolen GitHub tokens to create public repositories automatically.

These repositories contained traces of the malware campaign and stolen data activity. Therefore, the attack showed how quickly open-source malware can spread across software ecosystems. Researchers also warned that supply chain attacks will likely increase in the near future.

The malicious campaign highlights serious risks for developers and organizations that rely on third-party libraries. However, many users still install packages without checking publisher credibility or download history. Attackers exploit this behavior because fake packages often appear legitimate at first glance. Therefore, developers should review dependencies carefully before adding them to projects.

Organizations should also monitor unusual outbound traffic and suspicious package activity regularly. In addition, companies can improve protection with managed detection services and endpoint security monitoring that identify malware behavior early. Security awareness training and threat monitoring solutions also help teams detect supply chain attacks before major damage occurs.

Sleep well, we got you covered.

Scroll to Top