Skip to main content
Mallory
← Back to News
package-repository-poisoningloader-delivery-mechanismdefense-evasion-methodremote-access-implant

MALFEX npm Package imgdecode Hides Windows Shellcode Loader in Native Addon

Supply Chain Risk · 3 sources · Updated 1mo ago · First seen Oct 17, 2026

MALFEX npm Package imgdecode Hides Windows Shellcode Loader in Native Addon

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.
Does this reach your builds?Trace attribution and downstream blast radius.
Trace the chain
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

12 events · Aug 6, 2023 – Oct 11, 2026
  1. Reported Oct 17, 20261mo ago

    SafeDep identifies imgdecode and details its native shellcode loader

    SafeDep identified imgdecode as part of MALFEX and detailed how its native addon retrieved and decrypted an image-embedded payload before injecting shellcode into dllhost.exe. At the time of reporting, imgdecode remained available on npm and had accumulated 979 downloads.

    MALFEX npm Package 'imgdecode' Hides Shellcode Loader in Windows Native Addon
  2. Oct 11, 20262mo ago

    Imgdecode 1.0.3 removes its dependency on other MALFEX packages

    The operator published imgdecode version 1.0.3, removing the imgbundle dependency. This version could operate without any other MALFEX package.

    MALFEX npm Package 'imgdecode' Hides Shellcode Loader in Windows Native Addon
  3. Oct 8, 20262mo ago

    npm removes cdn-img-fetch

    npm removed cdn-img-fetch at 1:03 p.m. UTC. The package had downloaded an image containing an encrypted payload from the cavecrew/proj GitHub repository.

    MALFEX npm Package 'imgdecode' Hides Shellcode Loader in Windows Native Addon
  4. Oct 7, 20262mo ago

    npm removes imgbundle

    npm removed imgbundle at 11:06 p.m. UTC. The package had appeared as a replacement component in the MALFEX delivery chain.

    MALFEX npm Package 'imgdecode' Hides Shellcode Loader in Windows Native Addon
  5. Oct 1, 20262mo ago

    Imgdecode version 1.0.2 is published

    The operator published imgdecode version 1.0.2. Like version 1.0.1, it handled payload downloading and decryption in the DLL while retaining a call to require('imgbundle').

    MALFEX npm Package 'imgdecode' Hides Shellcode Loader in Windows Native Addon
  6. Sep 30, 20262mo ago

    Runhelper is unpublished

    Runhelper was unpublished at 4:13 p.m. UTC on the day it appeared. Despite advertising itself as a native-binary launcher, it extracted shellcode from a payload file and executed it using the Koffi foreign-function interface module.

    MALFEX npm Package 'imgdecode' Hides Shellcode Loader in Windows Native Addon
  7. Sep 30, 20262mo ago

    Imgdecode 1.0.1 moves payload retrieval and decryption into its DLL

    The operator published imgdecode version 1.0.1, moving payload downloading and decryption into the native DLL. The package still called require('imgbundle').

    MALFEX npm Package 'imgdecode' Hides Shellcode Loader in Windows Native Addon
  8. Sep 30, 20262mo ago

    malfexteste8 publishes imgdecode with a compiled native loader

    The npm user malfexteste8 published imgdecode version 1.0.0, concealing malicious loading functionality in a compiled Node.js addon. This version waited for imgbundle to write a payload file, then passed its contents to the addon for decoding.

    MALFEX npm Package 'imgdecode' Hides Shellcode Loader in Windows Native Addon
  9. Sep 30, 20262mo ago

    MALFEX publishes replacement packages imgbundle and runhelper

    Version 1.0.0 of imgbundle appeared at 3:29 a.m. UTC, followed by runhelper at 3:37 a.m. UTC. The packages appeared to replace img-to-native and native-runner within two days of their removal.

    MALFEX npm Package 'imgdecode' Hides Shellcode Loader in Windows Native Addon
  10. Sep 28, 20262mo ago

    npm removes native-runner and img-to-native

    npm removed native-runner and img-to-native at 4:06 p.m. UTC, disrupting two components of the MALFEX stealer delivery chain.

    MALFEX npm Package 'imgdecode' Hides Shellcode Loader in Windows Native Addon
  11. Sep 26, 20262mo ago

    Three MALFEX packages published for a multistage stealer delivery chain

    The operator published version 1.0.0 of cdn-img-fetch, img-to-native, and native-runner. Together, the packages retrieved an encrypted payload from GitHub, decrypted and wrote a Go downloader, and executed it to retrieve another payload.

    MALFEX npm Package 'imgdecode' Hides Shellcode Loader in Windows Native Addon
  12. Aug 6, 20233y ago

    MALFEX operator begins publishing malicious npm packages targeting Windows

    The unidentified MALFEX operator began publishing malicious npm packages targeting Windows systems. The campaign subsequently used multiple delivery chains to distribute Overlord RAT and a Node.js information stealer with remote-control capabilities.

    MALFEX npm Package 'imgdecode' Hides Shellcode Loader in Windows Native Addon
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, breaches, and observables Mallory has linked to this story. Indicator values are masked here and available in full in the app.

Open in app →

Malware

2 linked

Affected products

1 linked
Windows

Observables

14 linked

Indicator values are masked on this page. View all 14 in Mallory Domains, IPs, hashes, and URLs are exportable to your SIEM.

Do you run this?See attribution and downstream blast radius, and whether this package or vendor reaches your builds.
Trace the Supply Chain
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.