Cybersecurity research firms CloudSEK and Checkmarx have uncovered an npm supply chain campaign codenamed MALFEX, which distributed remote access trojans and information stealers to compromised Windows systems. A single threat actor has published 12 packages since August 2023, eight of which were identified as malicious and collectively gathered 40,767 downloads.
Exploiting Build Lifecycle Hooks
The most widely distributed package in the campaign, function-flag, accounted for 37,419 downloads following its initial release in July 2024. The package relies on npm postinstall hooks to execute JavaScript payloads. In version 1.7.3, calling an ASCII art function with a Bloody font argument initiates a hidden routine that downloads a hidden node.exe file from a Brazilian hosting provider into the local APPDATA directory. Another package, function-color, includes no direct payload but triggers the routine by declaring function-flag as a dependency.
Solana C2 Addresses and Data Stealers
MALFEX uses three primary pathways to compromise Windows hosts. Packages named tlxbnhd, tldriver, and mxdriver act as loaders for Overlord RAT, an open-source tool written in Go that extracts its command-and-control server address from Solana blockchain transactions. A separate chain involves img-to-native and cdn-img-fetch, which fetch a Go executable that deploys a Node.js stealer named movinlike. This secondary payload harvests sensitive data from web browsers, Discord, Telegram, and cryptocurrency wallets.
Operator Profile and Broader Infrastructure
Attribute evidence collected by researchers points to a Portuguese-speaking operator using a Brazilian handle, with code commit timestamps in the -0300 time zone and project descriptions crediting the Malfex team. Beyond the npm ecosystem, security analysts noted that Overlord RAT has also appeared in campaigns exploiting WordPress vulnerabilities CVE-2026-63030 and CVE-2026-60137, as well as a macOS campaign delivering fake Zoom installers.
AI-generated editorial illustration; not a documentary photograph.
Source: Eight Malicious npm Packages Downloaded 40,767 Times Deliver Overlord RAT and Stealer

Leave a Reply