← Back to news
The Hacker News17 Oct 2026 · 2 min read

Malicious npm Package Uses Windows Addon to Deliver Encrypted Payloads

Security researchers have identified a malicious npm package, imgdecode, linked to the MALFEX software supply chain campaign targeting Windows systems. The package was reportedly uploaded on September...

Security researchers have identified a malicious npm package, imgdecode, linked to the MALFEX software supply chain campaign targeting Windows systems. The package was reportedly uploaded on September 30, 2026, and uses a compiled native Node.js addon rather than relying solely on visible JavaScript.

According to analysis published by SafeDep, the package contains a small JavaScript wrapper that loads a Windows DLL when an application imports it. The DLL is designed to retrieve an image file from a GitHub-hosted location, decrypt data embedded in that file, and inject the resulting payload into a newly created dllhost.exe process.

Shift to native code

MALFEX has been associated with malicious npm publications since 2023. Earlier package sets used coordinated dependencies to download and execute a Go-based loader, which in turn retrieved a credential-stealing malware family and remote-access tooling. Researchers said the newer imgdecode releases reduce reliance on other malicious packages, with version 1.0.3 operating without a dependency on the previously identified MALFEX components.

The campaign operators appear to have reacted quickly to package removals. Following takedowns of packages including native-runner and img-to-native, replacement packages were published within days, followed by imgdecode.

Payload capabilities and response

Researchers said the recovered payload includes checks for virtual machines, sandboxes, and analysis utilities. It is capable of collecting sensitive files, browser data, messaging-app data, cryptocurrency wallet information, and credentials stored in environment files. The malware can also communicate with a command-and-control server to execute commands, transfer files, capture screenshots, access the clipboard, and simulate mouse or keyboard input.

Persistence mechanisms reportedly include a Registry Run entry and a scheduled task masquerading as a Microsoft Edge update service.

  • Review dependency manifests and npm lockfiles for MALFEX-linked package names.
  • Isolate potentially affected Windows endpoints and investigate for suspicious scheduled tasks, registry entries, and processes.
  • Rotate credentials exposed on affected devices and move cryptocurrency assets if wallet seed phrases may have been stored locally.
  • Use package allowlists, dependency scanning, and provenance controls to reduce supply chain risk.
Share this article:TwitterLinkedIn