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

12-Year-Old PostgreSQL Vulnerability Allows Attackers to Execute Code and Gain Control of Database Servers

12-Year-Old PostgreSQL Flaw Could Lead to Critical Data Breaches A serious security vulnerability in PostgreSQL,...

Chinese Hackers Utilize AI Agents in Overseas Campaign

Cyberespionage Campaign Revealed: Chinese Hackers Deploy AI in Sophisticated Operations A recent report from threat...

New Panzer Ransomware Targets 16 Victims in 11 Countries with Data Theft and Encryption

Emergence of Panzer Ransomware: A Growing Threat to Global Cybersecurity The Panzer ransomware has recently...

Protecting Against Zero-Click Attacks

By Aimee Steele, Threat Intelligence Analyst at Talion Cyber Security In the landscape of cybersecurity,...

More like this

12-Year-Old PostgreSQL Vulnerability Allows Attackers to Execute Code and Gain Control of Database Servers

12-Year-Old PostgreSQL Flaw Could Lead to Critical Data Breaches A serious security vulnerability in PostgreSQL,...

Chinese Hackers Utilize AI Agents in Overseas Campaign

Cyberespionage Campaign Revealed: Chinese Hackers Deploy AI in Sophisticated Operations A recent report from threat...

New Panzer Ransomware Targets 16 Victims in 11 Countries with Data Theft and Encryption

Emergence of Panzer Ransomware: A Growing Threat to Global Cybersecurity The Panzer ransomware has recently...