Lab Verified: 2026-09-27
LunexStealer Hunt Query
The loader uses PDB-guided kernel callback zeroing via Microsoft Symbol Server downloads to resolve exact kernel offsets, making the technique version-agnostic across all Windows 10/11 builds without blind process termination.
// Microsoft Sentinel / Defender - LunexStealer BYOVD and Persistence Hunting
let LunexDriverHashes = dynamic(["6e8b49cf70bf854e8c59c7d27cefa89406caf8978461190dabb86dafcd8554e1", "bf14cd6c3328ebd08e940478b5d1da04e9e5aa576d045d41950bf4f1e2456dd8", "06f434695f93d7fd11eeff71358ff69fed79d310a66d993bbcc4ff979c117c90", "38e90affe37342ee36917cdc535fe9bf04589afa8430eb8d1ba1016adcfc1878"]);
let LunexC2IPs = dynamic(["107.175.82.242", "193.178.159.128"]);
// Driver load detection
DeviceEvents
| where ActionType == "DriverLoad" and (FileName =~ "PDFWKRNL.sys" or SHA256 in (LunexDriverHashes))
| project Timestamp, DeviceName, FileName, FolderPath, SHA256, InitiatingProcessFileName
| union (
// PDB download by non-developer process
DeviceProcessEvents
| where FileName =~ "curl.exe" and ProcessCommandLine has "ntkrnlmp.pdb" and ProcessCommandLine has "msdl.microsoft.com"
| where InitiatingProcessFileName !in~ ("devenv.exe", "windbg.exe", "vshost.exe")
| project Timestamp, DeviceName, FileName, ProcessCommandLine, InitiatingProcessFileName
)
| union (
// NMH persistence registry key
DeviceRegistryEvents
| where RegistryKey has "NativeMessagingHosts" and RegistryKey has "com.lunex.explorer"
| project Timestamp, DeviceName, RegistryKey, RegistryValueData, InitiatingProcessFileName
)
| union (
// C2 network connections
DeviceNetworkEvents
| where RemoteIP in (LunexC2IPs) or RemoteUrl has "uasputnik.com"
| project Timestamp, DeviceName, RemoteIP, RemotePort, RemoteUrl, InitiatingProcessFileName
)
| sort by Timestamp descNeed to defang indicators or test triage logs?
Use our zero-telemetry client-side parser to extract, defang & format indicators.
Target Log Sources & Tables
DeviceProcessEventsDeviceNetworkEventsDeviceRegistryEvents
Ensure telemetry connector is actively ingesting this table into your Sentinel workspace or Defender XDR.
False Positives & Tuning Guidance
Legitimate administrative software deployment scripts, authorized security testing, or system maintenance tasks.
Source Incident Analysis
LunexStealer: How to Detect AMD Driver BYOVD EDR Evasion
Disclosed: 2026-09-27
DETECTION_ENGINEERING_FEEDBACK
Submit Feedback →Have tuning recommendations, encounter false positives in your environment, or want to contribute rule improvements?