Ptechhub
  • News
  • Industries
    • Enterprise IT
    • AI & ML
    • Cybersecurity
    • Finance
    • Telco
  • Brand Hub
    • Lifesight
  • Blogs
No Result
View All Result
  • News
  • Industries
    • Enterprise IT
    • AI & ML
    • Cybersecurity
    • Finance
    • Telco
  • Brand Hub
    • Lifesight
  • Blogs
No Result
View All Result
PtechHub
No Result
View All Result

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

The Hacker News by The Hacker News
October 17, 2026
Home Cybersecurity
Share on FacebookShare on Twitter


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.

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.”

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,



Source link

The Hacker News

The Hacker News

Next Post

Bending Spoons wants to revive software castoffs. Berkshire is backing the plan

Recommended.

Circles and Prodapt Form Strategic Partnership to Accelerate Global Telco Transformation and Innovation

Circles and Prodapt Form Strategic Partnership to Accelerate Global Telco Transformation and Innovation

April 18, 2025
How to Use Apple’s Genmoji to Create New Kinds of Emojis

How to Use Apple’s Genmoji to Create New Kinds of Emojis

January 20, 2025

Trending.

Hollyland presentará soluciones de audio e imagen de última generación en IFA 2026

August 20, 2026

Huawei Digital Power představila na veletrhu IDEE 2026 řešení pro různé scénáře s využitím technologie tvorby sítě a umělé inteligence

September 20, 2026
China’s AI Boyfriend Business Is Taking On a Life of Its Own

China’s AI Boyfriend Business Is Taking On a Life of Its Own

January 20, 2026
Microsoft Q2 Earnings: CEO Nadella Defends AI Investments

Microsoft Q2 Earnings: CEO Nadella Defends AI Investments

January 29, 2026
Amazon Q2 Earnings: AWS AI Demand Outpaces Capacity Through 2027, Jassy Says

Amazon Q2 Earnings: AWS AI Demand Outpaces Capacity Through 2027, Jassy Says

July 31, 2026

PTechHub

A tech news platform delivering fresh perspectives, critical insights, and in-depth reporting — beyond the buzz. We cover innovation, policy, and digital culture with clarity, independence, and a sharp editorial edge.

Follow Us

Industries

  • AI & ML
  • Cybersecurity
  • Enterprise IT
  • Finance
  • Telco

Navigation

  • About
  • Advertise
  • Privacy & Policy
  • Contact

Subscribe to Our Newsletter

  • About
  • Advertise
  • Privacy & Policy
  • Contact

Copyright © 2025 | Powered By Porpholio

No Result
View All Result
  • News
  • Industries
    • Enterprise IT
    • AI & ML
    • Cybersecurity
    • Finance
    • Telco
  • Brand Hub
    • Lifesight
  • Blogs

Copyright © 2025 | Powered By Porpholio