Cybersecurity Researchers Have Detected a Malicious NPM Package, Part of Recently Disclosed Software Supply Chain Attack Campaign Dubbed MALFEX
The “imgdecode” package was uploaded to the package registry on September 30, 2026, by a user named “malfexteste8” and has been downloaded 979 times as of writing, while as of writing, it is still available on npm. Its latest version is 1.0.3.
The npm package imgdecode embeds a malicious loader in a compiled Node.js addon,” SafeDep said. “Its nine-line JavaScript file loads a Windows dynamic-link library (DLL). When a Node.js program calls require(‘imgdecode’) from a Windows console, the DLL attempts to download encrypted shellcode from GitHub. It decrypts the response and injects the result into a new dllhost.exe process.
First reported by Checkmarx and CloudSEK, MALFEX is the name of the ongoing campaign in which the unknown threat actor distributed malicious packages via the npm platform since August 6, 2023, attempting to deliver malware on Windows. In particular, the adversary was distributing packages using five publisher accounts read more about MALFEX npm Package ‘imgdecode’ Hides Shellcode Loader in Windows Native Addon.
Get up to date on the latest cybersecurity news and enhance your knowledge of cybersecurity with our thorough coverage of the dangers, breaches, and solutions.
