Tia N.List

CTI · reviewed · 2026-10-18

MALFEX Campaign Evolves: Malicious npm Package imgdecode Hides Loader in Native Windows DLL

Full story & timeline

Actors

MALFEX

Malware / tools

—

Campaigns

MALFEX npm supply chain campaign

CVEs

—

Victim sectors

software-developmenttechnology

Geography

global

MITRE ATT&CK

Indicators

No curated indicators tied to this case.

Detections

Detection content derived from this case analysis. Status: experimental — not validated against live telemetry.

Sigma raw

title: MALFEX npm Package 'imgdecode' Native Addon Loader
id: e73b23bb-e078-48a8-b2b1-322e02dddcfc
status: experimental
description: Detects execution of the MALFEX npm package 'imgdecode', which hides a shellcode loader inside a compiled native Node.js Windows addon (DLL) while only nine lines of JavaScript load it, evading JavaScript-only static scanning.
references:
  - https://safedep.io/malfex-imgdecode-npm-native-addon-loader
  - https://thehackernews.com/2026/10/malfex-npm-package-imgdecode-hides.html
author: Tia N. List
date: 2026-10-18
tags:
  - attack.t1195
  - attack.t1059
  - attack.t1027
logsource:
  category: process_creation
  product: windows
detection:
  selection_node:
    Image|endswith: '\node.exe'
  selection_package:
    CommandLine|contains:
      - 'imgdecode'
      - 'malfexteste8'
  condition: selection_node and selection_package
falsepositives:
  - None expected; imgdecode is a confirmed malicious package name and malfexteste8 is the publisher account behind it
level: high

Splunk SPL raw

# malfex-campaign-evolves-malicious-npm-package-imgdecode-hides-lo — Splunk SPL variant (derived from malfex-campaign-evolves-malicious-npm-package-imgdecode-hides-lo.sigma via sigma convert)
# source-sha256: 392f9c460f8e449f9baebac565f27ad96892670ddb44fd394e46267d4189a007 v1
Image="*\\node.exe" CommandLine IN ("*imgdecode*", "*malfexteste8*")

KQL (Sentinel / Defender) raw

# malfex-campaign-evolves-malicious-npm-package-imgdecode-hides-lo — KQL variant (derived from malfex-campaign-evolves-malicious-npm-package-imgdecode-hides-lo.sigma via sigma convert)
# source-sha256: 392f9c460f8e449f9baebac565f27ad96892670ddb44fd394e46267d4189a007 v1
Image endswith "\\node.exe" and (CommandLine contains "imgdecode" or CommandLine contains "malfexteste8")

References

Source on GitHub