Close Menu
NCIJ Network NCIJ Network
    What's Hot

    US companies apply to explore deep-sea mining in area bordering Pacific island states

    November 12, 2026

    25 rumors about Pete Hegseth we’ve fact-checked

    November 12, 2026

    Poland turns to home-grown giant for its defense buildup – POLITICO

    November 12, 2026
    Facebook X (Twitter) Instagram
    Trending
    • US companies apply to explore deep-sea mining in area bordering Pacific island states
    • 25 rumors about Pete Hegseth we’ve fact-checked
    • Poland turns to home-grown giant for its defense buildup – POLITICO
    • Senior doctors call off two-day strike planned this month
    • Wildlife trade regulator CITES lifts sanctions against Laos, prompting conservation concerns
    • Curiosity Blog, Sols 5063-5069 Rocks and Chips
    • Welsh NHS bosses call for multi-year health funding
    • To boost conservation of kelp forests, start by naming them (commentary)
    • About
      • Our Team
      • Editorial Policy
      • Editorial Independence
      • International Support
    • Trust & Standards
      • AI Usage Policy
      • Conflict of Interest Policy
      • Corrections Policy
      • Ethics Policy
      • Fact-Checking Policy
      • Source Protection
    • Get Involved
      • Guide for Sources
      • Support Independent Journalism
    • Legal
      • Cookie Policy
      • Privacy Policy
      • Terms of Use
    Facebook X (Twitter) Instagram
    NCIJ Network NCIJ Network
    Thursday, November 12
    • Home
    • World
    • Ai
    • Business
    • Politics
    • Health
    • Crypto
    • Science
    • Technology
    • Cybersecurity
    • Defense & Security
    • Economy
    • Energy
    • Europe
    • More
      • Fact Check
      • Investigations
      • Opinion & Analysis
      • Environment
    NCIJ Network NCIJ Network
    Home»Cybersecurity

    MALFEX npm Package ‘imgdecode’ Hides Shellcode Loader in Windows Native Addon

    NCIJ NETWNCIJ NETWORKBy NCIJ NETWNCIJ NETWORKOctober 17, 2026 Cybersecurity No Comments5 Mins Read
    Share
    Facebook Twitter LinkedIn Pinterest Email

    Cybersecurity researchers have discovered a malicious npm package that’s part of a recently disclosed software supply chain attack campaign dubbed MALFEX.

    The package, named “imgdecode,” was uploaded to the package registry on September 30, 2026, by a user named “malfexteste8.” It has been downloaded 979 times as of writing and is still available on npm as of writing. The latest version of the package is 1.0.3.

    “The npm package imgdecode hides 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 documented by both Checkmarx and CloudSEK, MALFEX is the name assigned to a long-running campaign in which an unknown threat actor has been publishing malicious packages to npm since August 6, 2023, with an aim to compromise Windows systems. These packages were published across five npm publisher handles: malfexkkj, malfex_user, malfexteste2, malfexteste3, malfexteste4.

    Of the eight identified packages, three were found to act as a loader for Overlord RAT, while three others (“cdn-img-fetch,” “img-to-native,” and “native-runner”) worked together to download and run a Node.js stealer. A third infection pathway involved the use of a postinstall hook to execute JavaScript capable of contacting an external server and retrieving an unspecified next-stage binary.

    Cybersecurity

    Interestingly, the threat actor behind the campaign appears to be responding to public disclosures and npm removals by publishing replacements for “native-runner” and “img-to-native” within two days in the form of “runhelper” and “imgbundle.” That same day, the first version of “imgdecode” was published. The timeline of events is as follows –

    • September 26, 2026 – cdn-img-fetch, img-to-native, and native-runner 1.0.0 published
    • September 28, 2026, at 4:06 p.m. UTC – npm removes native-runner and img-to-native
    • September 30, 2026, at 3:29 a.m. UTC – imgbundle 1.0.0 published, replacing img-to-native
    • September 30, 2026, at 3:37 a.m. UTC – runhelper 1.0.0 published, replacing native-runner
    • September 30, 2026, at 4:13 p.m. UTC – runhelper unpublished
    • September 30, 2026, at 10:32 p.m. UTC – imgdecode 1.0.0 published
    • September 30, 2026, at 11:07 p.m. UTC – imgdecode 1.0.1 published
    • October 1, 2026, at 5:48 p.m. UTC – imgdecode 1.0.2 published
    • October 7, 2026, at 11:06 p.m. UTC – npm removes imgbundle
    • October 8, 2026, at 1:03 p.m. UTC – npm removes cdn-img-fetch
    • October 11, 2026, at 10:09 p.m. UTC – imgdecode 1.0.3 published

    The Node.js stealer chain is notable for the fact that none of the packages featured an install hook. Instead, the malicious code runs when “native-runner” is loaded. The package lists “img-to-native” as its dependency, which, in turn, has “img-to-native” as a dependency.

    The exact functionality of each of these packages is below –

    • cdn-img-fetch downloads “banner.png” from a GitHub repository (“cavecrew/proj”) and extracts an encrypted blob.
    • img-to-native decrypts the blob using the key “malfexteam2027” and writes the contents to disk as a Go executable (“%APPDATA%MicrosoftWindowsnode_runtime_helper.exe”).
    • native-runner executes the Go executable, which then downloads the stealer binary (“setup.exe” aka movinlike) from “104.234.65[.]75:700.”

    “Runhelper,” advertised as a helper utility for “launching native binaries from Node.js projects,” functions similarly to “native-runner” in that it’s designed to run malicious code. Its primary responsibility is to locate a JPG file (“cdn-img-fetch/.runtime/rt.jpg”), extract shellcode from it, copy it into executable memory, and run it using Koffi, a Foreign Function Interface (FFI) module for Node.js.

    “Six hours after runhelper was unpublished, the operator published imgdecode with a compiled DLL to run the shellcode,” SafeDep said. “From version 1.0.1, the DLL also downloads and decrypts the payload. Versions 1.0.1 and 1.0.2 still call require(‘imgbundle’) before loading the DLL. Version 1.0.3 removes that dependency and needs no other MALFEX package.”

    Like in the case of “runhelper,” version 1.0.0 of “imgdecode” waits for “imgbundle” to write a file at the location “cdn-img-fetch/.runtime/” and, once it becomes available, reads its contents into memory, and passes them to a native Node.js addon for decoding the data.

    The addon is a 64-bit Microsoft Visual C++ (MSVC) DLL that first checks if it’s running in a developer’s terminal, and then proceeds to fetch a JPG file (“banner.jpg”) from the same repository (“cavecrew/proj”), decrypt the embedded payload using the key “nif-runtime-2027,” and ultimately inject the output into “dllhost.exe.”

    “After decryption, the DLL checks the first bytes of the plaintext,” SafeDep explained. “If they match a JPEG or PNG signature, the DLL stops. Inference: the operator could turn the loader off by serving encrypted content that decrypts to an image. Serving an ordinary image would instead generally cause decryption to fail before this check.”

    Cybersecurity

    Although the GitHub account “cavecrew” is no longer accessible, an Internet Archive screenshot of the image file dated October 6, 2026, shows that it’s the same Go-based downloader used for retrieving the Node.js stealer and remote access tool (“movinlike”) from “104.234.65[.]75:700.”

    The Node.js application includes a .env file containing a command-and-control (C2) address (“104.234.65[.]75:7007”) and a MALFEX license key, indicating the use of a malware builder or licensing system to craft such payloads.

    The malware runs anti-analysis checks that audit for the presence of virtual machines, sandboxes, and analysis tools like Process Monitor and Wireshark, before harvesting files matching seed phrases and specific extensions (.kdbx, .pem, .ppk, and .env), as well as data from Chromium-based web browsers, Discord, Telegram, cryptocurrency wallets, and gaming apps (Steam, Epic Games, Riot, Battle.net, Minecraft, and Ubisoft).

    It can also establish a WebSocket connection to the C2 server, allowing it to accept commands for shell execution, file transfer, process control, clipboard access, screenshots, and mouse and keyboard input. For persistence, it adds a Registry Run key and creates a scheduled task named “MicrosoftEdgeUpdateService.”

    Developers who have installed any of the aforementioned packages should treat their Windows systems as potentially compromised, isolate them, check for persistence entries, rotate credentials, and transfer funds to new wallets if they seed phrases were stored in them,

    AddOn hides imgdecode Loader MALFEX native npm package Shellcode Windows
    NCIJ NETWNCIJ NETWORK
    • Website

    Keep Reading

    Tubular package provider selected for first commercial gas project off Cyprus

    BTCPay Server warns of hot wallet crypto thefts on outdated instances

    Native American Remains Found in Organ Pipe Cactus National Monument Amid Border Wall Construction — ProPublica

    Cybersecurity M&A Roundup: 37 Deals Announced in October 2026

    DarkBlinders Compromises Israeli Target and Iraqi Kurdish Government Cloud Environment

    Hackers disrupt refrigeration systems at European supermarkets

    Add A Comment
    Leave A Reply Cancel Reply

    Editors Picks

    US companies apply to explore deep-sea mining in area bordering Pacific island states

    November 12, 2026

    25 rumors about Pete Hegseth we’ve fact-checked

    November 12, 2026

    Poland turns to home-grown giant for its defense buildup – POLITICO

    November 12, 2026

    Senior doctors call off two-day strike planned this month

    November 12, 2026
    Latest Posts

    Ukrainian man arrested in Croatia over Nord Stream blasts

    August 19, 2026

    Why extreme heat is much more dangerous for the elderly than we realised | Health News

    August 19, 2026

    Posts claim Eric Clapton brought deaf teen onstage in 1992. Tune out the noise

    August 19, 2026

    Subscribe to News

    Get the latest sports news from NewsSite about world, sports and politics.

    NCIJ Network is an independent digital news platform delivering trusted investigative journalism, European and global news, in-depth analysis, and fact-based reporting with accuracy, transparency, and integrity.

    Facebook X (Twitter) Instagram Pinterest YouTube

    US companies apply to explore deep-sea mining in area bordering Pacific island states

    November 12, 2026

    25 rumors about Pete Hegseth we’ve fact-checked

    November 12, 2026

    Poland turns to home-grown giant for its defense buildup – POLITICO

    November 12, 2026

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    Type above and press Enter to search. Press Esc to cancel.