Skip to main content
UNIFIED SOC INCIDENT RESPONSE BLUEPRINT

MALFEX: How to Detect & Block imgdecode npm Shellcode Loader

SafeDep uncovers MALFEX npm package imgdecode weaponizing Windows native DLL addons to inject shellcode into dllhost.exe. Here is how to detect and defend.

Detection & Hunting Detectors (1)

[T1195.002] MALFEX Hunt QueryStandalone Rule
index=endpoint (sourcetype=WinEventLog:Security EventCode=4688) OR (sourcetype=XmlWinEventLog:Microsoft-Windows-Sysmon/Operational EventCode=1)
| eval ParentImage=lower(parent_process_name), Image=lower(process_name), Cmd=lower(process)
| where (like(ParentImage, "%node.exe") AND (like(Image, "%dllhost.exe") OR like(Image, "%node_runtime_helper.exe")))
     OR (like(Cmd, "%node_runtime_helper.exe%") OR like(Cmd, "%microsoftedgeupdateservice%"))
     OR (like(Cmd, "%104.234.65.75%"))
| table _time, host, user, parent_process_name, process_name, process

Verified Indicators of Compromise (9)

Indicators of Compromise (IOCs)
9 Identified
FILEPATH%APPDATA%\Microsoft\Windows\node_runtime_helper.exe
IPV4104.234.65.75
NPM_PACKAGEimgbundle
NPM_PACKAGEimgdecode
NPM_PACKAGEnative-runner
NPM_PACKAGEcdn-img-fetch
NPM_PACKAGEimg-to-native
NPM_PACKAGErunhelper
TASKMicrosoftEdgeUpdateService