MALFEX Campaign Strikes Again: Fake npm Package 'imgdecode' Hides Windows Malware Loader
Security researchers have identified another malicious package tied to MALFEX, a software supply chain campaign that has targeted Windows systems through the npm package registry. The package, called "imgdecode", was uploaded on September 30, 2026, by a user named "malfexteste8". It has been downloaded 979 times and was still available on npm at the time of writing. Its latest version is 1.0.3.
According to SafeDep, imgdecode hides its malicious loader inside a compiled Node.js addon. A short JavaScript file loads a Windows DLL. When a Node.js program calls the package from a Windows console, the DLL attempts to download encrypted shellcode from GitHub, decrypts it, and injects the result into a new dllhost.exe process.
MALFEX was first documented by Checkmarx and CloudSEK. An unknown threat actor has been publishing malicious npm packages since August 6, 2023, across five publisher handles. Of eight identified packages, three load Overlord RAT, and three others work together to download and run a Node.js stealer. Another pathway uses a postinstall hook to fetch a further binary from an external server. The attacker also appears to respond to public disclosures and npm removals: replacements for two removed packages were published within two days, and imgdecode's first version appeared the same day.