HomeCyber BalkansHackers Exploit Node.js to Distribute Malware

Hackers Exploit Node.js to Distribute Malware

Published on

spot_img

Node.js, a popular open-source JavaScript runtime, has become a target for cybercriminals looking to deploy advanced malware and steal sensitive data. These attackers are taking advantage of Node.js’s cross-platform capabilities, typically favored by developers for creating scalable applications, to carry out their malicious activities. By injecting malicious code into Node.js executables or npm packages, attackers are able to evade detection and maintain a presence within compromised systems.

One common tactic employed by these threat actors is malvertising, where they place malicious ads on legitimate websites to trick users into downloading infected software. These trojanized installers, often bundled with Node.js and Wix, drop malicious DLLs that utilize Windows Management Instrumentation (WMI) for system reconnaissance. The malware then establishes persistence through scheduled tasks that run PowerShell commands, providing attackers with ongoing access to the compromised system. This method demonstrates how cybercriminals leverage popular software tools to embed malware and avoid detection.

Supply chain attacks have also become a focal point for cybercriminals targeting Node.js. They hijack legitimate npm packages or create counterfeit ones to distribute malware. An example of this is the malicious pdf-to-office npm package, which targeted cryptocurrency wallet software such as Atomic Wallet and Exodus. By injecting obfuscated JavaScript into these packages, attackers were able to redirect cryptocurrency transactions, exploiting the trust placed in npm packages and the Electron framework’s structure. Additionally, tools like the pkg npm module enable the packaging of Node.js applications into standalone executables, facilitating the distribution of malware like XMRig miners and information stealers.

New attack vectors are emerging, with cybercriminals directly executing scripts via Node.js in command-line environments to steal credentials and establish persistence. These malicious scripts are often obfuscated to evade antivirus detection, and attackers may use tools like Cloudflare tunnels to mask their command-and-control traffic. Antivirus signatures for Node.js-compiled binaries are limited, particularly for those exceeding 35MB in size, making detection more challenging. Organizations are advised to only download software from reputable sources, monitor script execution closely, and deploy EDR/XDR solutions for detecting suspicious activity.

In conclusion, Node.js has become a prime target for cybercriminals seeking to exploit its versatility for malicious purposes. As these threats continue to evolve, it is crucial for organizations to stay vigilant and adopt best practices to protect their systems and data from these attacks. By understanding the tactics used by threat actors and implementing strong security measures, businesses can better safeguard themselves against Node.js-related malware incidents.

Reference:

Source link

Latest articles

MuddyWater Launches RustyWater RAT via Spear-Phishing Across Middle East Sectors

 The Iranian threat actor known as MuddyWater has been attributed to a spear-phishing campaign targeting...

Meta denies viral claims about data breach affecting 17.5 million Instagram users, but change your password anyway

 Millions of Instagram users panicked over sudden password reset emails and claims that...

E-commerce platform breach exposes nearly 34 million customers’ data

 South Korea's largest online retailer, Coupang, has apologised for a massive data breach...

Fortinet Warns of Active Exploitation of FortiOS SSL VPN 2FA Bypass Vulnerability

 Fortinet on Wednesday said it observed "recent abuse" of a five-year-old security flaw in FortiOS...

More like this

MuddyWater Launches RustyWater RAT via Spear-Phishing Across Middle East Sectors

 The Iranian threat actor known as MuddyWater has been attributed to a spear-phishing campaign targeting...

Meta denies viral claims about data breach affecting 17.5 million Instagram users, but change your password anyway

 Millions of Instagram users panicked over sudden password reset emails and claims that...

E-commerce platform breach exposes nearly 34 million customers’ data

 South Korea's largest online retailer, Coupang, has apologised for a massive data breach...