MALFEX npm Package imgdecode Hides Windows Shellcode Loader in Native Addon
Supply Chain Risk · 3 sources · Updated 1mo ago · First seen Oct 17, 2026

The MALFEX software supply-chain campaign is using the malicious npm package imgdecode to conceal a shellcode loader inside a compiled Windows Node.js addon. Loading the package triggers retrieval of encrypted payloads from GitHub, followed by decryption and shellcode injection into dllhost.exe. Active since August 2023, the campaign has used multiple packages and infection chains to deliver Overlord RAT and a Node.js information stealer with remote-control capabilities.
MALFEX has continued despite public disclosure, with its operator reportedly replacing removed packages rapidly. imgdecode version 1.0.3 can operate independently of other MALFEX packages, making removal of related dependencies insufficient to establish that a system is clean. Developers who loaded the malicious package on Windows should isolate potentially compromised systems, investigate persistence, rotate exposed credentials, and move cryptocurrency funds to new wallets if seed phrases were exposed.
Why it matters
MALFEX targets Windows developers through malicious npm packages, creating exposure to credential theft, cryptocurrency loss, remote control, and downstream compromise of development environments. Imgdecode executes malicious native code when loaded; version 1.0.3 operates independently, so removing related dependencies does not establish that a workstation is clean. Malicious loader behavior is documented, but the number of compromised workstations and the actual payload delivered by imgdecode’s banner.jpg chain remain unconfirmed.
- Affected population: Windows developers and organizations whose projects or tooling load imgdecode or related MALFEX packages. Developer credentials, source repositories, signing material, cloud secrets, and production access warrant investigation where accessible from affected hosts.
- Severity: High for workstations that loaded the addon. Related recovered malware contains credential-stealing, persistence, remote-control, and evidence-removal capabilities; these capabilities were identified through static analysis, not confirmed execution of imgdecode’s next stage.
- Scope: SafeDep recorded 929 downloads through October 12; The Hacker News subsequently reported 979. Downloads do not establish installations, execution, or victim counts. SafeDep found no public dependent projects.
- Campaign continuity: Activity dates to August 2023. Replacement packages appeared rapidly after removals, and imgdecode remained available at the respective reporting dates; current registry availability is not verified.


