Connect with us

Hi, what are you looking for?

SecurityWeekSecurityWeek

Malware & Threats

Dozens of Malicious NPM Packages Steal User, System Data

Fortinet warns of multiple malicious NPM packages that include install scripts designed to steal sensitive information.

Fortinet’s security researchers have identified multiple malicious NPM packages containing obfuscated scripts designed to harvest a trove of information from victims’ systems.

On Monday, Fortinet warned of 35 malicious packages in the NPM Registry containing install scripts capable of collecting system and user data and exfiltrating it via a webhook or file-sharing link.

The cybersecurity company has grouped the packages into nine different sets, based on similarities in styles of code and functions, including the targeting of specific sensitive information for exfiltration.

The install scripts within these packages would run pre- or post-install to perform data harvesting, but would also be executed when the NPM package was installed.

The first set of packages includes an obfuscated index.js script capable of stealing Kubernetes configurations, SSH keys, and other sensitive information. System data such as IP address, hostname, and username is targeted as well.

The second set of packages contains an index.js file designed to send an HTTP GET request to a specific URL, to scan for specific files and directories, and to exfiltrate developer data, such as source code and configuration files.

“The targeted files and directories may contain highly valuable intellectual property and sensitive information, such as various application and service credentials. It then archives these files and directories and uploads the resulting archives to an FTP server,” Fortinet explains.

The third and fourth sets have an index.mjs script that relies on a Discord webhook for sensitive data exfiltration, but each has a different style of coding.

Advertisement. Scroll to continue reading.

The index.js install script in the fifth set of packages uses a webhook to exfiltrate hostnames, usernames, and the home directory contents.

The seventh set relies on an installer.js install script designed not only to exfiltrate sensitive data, but also to disable TLS certificate validation, rendering the connection vulnerable to eavesdropping.

The eighth set was designed to automatically fetch and execute a potentially malicious executable file, while the ninth set of packages gathers system information and exfiltrates it to a Discord webhook.

“End users should watch for packages that employ suspicious install scripts and exercise caution. We will continue hunting for and reporting malicious packages to help users avoid becoming victims,” Fortinet notes.

Related: Developers Warned of Malicious PyPI, NPM, Ruby Packages Targeting Macs

Related: Malicious NPM, PyPI Packages Stealing User Information

Related: LofyGang Cybercrime Group Used 200 Malicious NPM Packages for Supply Chain Attacks

Written By

Ionut Arghire is an international correspondent for SecurityWeek.

Click to comment

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest threats, trends, and technology, along with insightful columns from industry experts.

Join us as we delve into the transformative potential of AI, predictive ChatGPT-like tools and automation to detect and defend against cyberattacks.

Register

As cybersecurity breaches and incidents escalate, the cyber insurance ecosystem is undergoing rapid and transformational change.

Register

Expert Insights

Related Content

Cybercrime

The changing nature of what we still generally call ransomware will continue through 2023, driven by three primary conditions.

Cybercrime

A recently disclosed vBulletin vulnerability, which had a zero-day status for roughly two days last week, was exploited in a hacker attack targeting the...

Malware & Threats

The NSA and FBI warn that a Chinese state-sponsored APT called BlackTech is hacking into network edge devices and using firmware implants to silently...

Cybercrime

No one combatting cybercrime knows everything, but everyone in the battle has some intelligence to contribute to the larger knowledge base.

Application Security

Virtualization technology giant VMware on Tuesday shipped urgent updates to fix a trio of security problems in multiple software products, including a virtual machine...

Malware & Threats

Unpatched and unprotected VMware ESXi servers worldwide have been targeted in a ransomware attack exploiting a vulnerability patched in 2021.

Cybercrime

The recent ransomware attack targeting Rackspace was conducted by a cybercrime group named Play using a new exploitation method, the cloud company revealed this...

Malware & Threats

Threat actors are increasingly abusing Microsoft OneNote documents to deliver malware in both targeted and spray-and-pray campaigns.