MALFEX npm malware campaign racks up 40,000 downloads over three years
Checkmarx traced MALFEX, an npm supply-chain campaign running since August 2023 whose eight malicious packages have drawn more than 40,000 downloads while delivering the Overlord RAT and infostealers. Three were still installable as of October 1: function-flag, function-color and cdn-img-fetch. function-flag alone has more than 37,000 downloads and has been malicious since July 2025, with no advisory flagging it.
Checkmarx has documented MALFEX, an npm supply-chain malware campaign run by what appears to be a single operator who has been publishing packages since August 2023. Of the 12 packages tied to the operator, eight are malicious and four are harmless cover packages. The malicious ones have been downloaded 40,767 times, 3,017 of them in the week before the report.
As of October 1, three malicious packages were still installable: function-flag, function-color and cdn-img-fetch. function-flag, malicious since July 2025, accounts for 37,419 of the downloads. Neither it nor function-color has any advisory, and the Open Source Vulnerabilities (OSV) entry for cdn-img-fetch lists only two of its four malicious versions, so tools that rely solely on advisory feeds will miss them. The other five packages have been unpublished or seized by npm.
The campaign delivers malware to Windows through three independent paths that share no infrastructure. Three loader packages run scripts at install time that download a file disguised as a PNG image, which is actually a self-extracting archive that decrypts and launches the Overlord remote access trojan. A second chain triggers when a package is loaded and installs movinlike, a Node.js stealer targeting Discord clients, browsers, Telegram and cryptocurrency wallets. function-flag hides its own long-running downloader.
The operator names the work: "MALFEX" appears across five npm publisher accounts, in a git author email and in a README, and the stealer chain's decryption key is "malfexteam2027". Checkmarx found no specific targeting and no widely used packages that depend on the operator's packages, so exposure is limited to systems that installed them directly. It recommends blocking all eight packages and, on any Windows host where one was installed, isolating the machine, removing persistence and rotating credentials from a clean system.