This detection identifies potential adversary activity involving the execution of custom or modified layers within the UPX executable packing framework, which may indicate an attempt to obfuscate malicious payloads. A proactive hunt is essential in Azure Sentinel to uncover stealthy threats that leverage this specific packing technique to evade standard signature-based defenses and maintain persistence on endpoints.
rule UPXECLiPSElayer
{
meta:
author="malware-lu"
strings:
$a0 = { B8 [4] B9 [4] 33 D2 EB 01 0F 56 EB 01 0F E8 03 00 00 00 EB 01 0F EB 01 0F 5E EB 01 }
condition:
$a0 at pe.entry_point
}
This YARA rule can be deployed in the following contexts:
This rule contains 1 string patterns in its detection logic.
Here are 5 specific false positive scenarios for the UPXECLiPSElayer detection rule, including suggested filters and exclusions:
Microsoft Defender Antivirus Real-Time Protection Updates
MsMpEng.exe) frequently loads the upx compression layer when updating its engine definition database or scanning large files in real-time. This often triggers the YARA rule as it mimics a packed executable behavior typical of malware.MsMpEng.exe and the file path contains \Program Files\Windows Defender\. Additionally, filter out events where the image hash matches known Microsoft-signed hashes for the Defender engine.Sysinternals Process Explorer or ProcMon Analysis
ProcExp.exe (Process Explorer) to investigate system processes. These tools utilize UPX-packed DLLs internally when analyzing memory dumps or injecting code, causing the rule to fire during routine administrative troubleshooting sessions.procexp.exe, procmon.exe, or sigcheck.exe located within the standard Sysinternals installation directory (e.g., C:\Program Files\Sysinternals\).Scheduled Patch Deployment via SCCM/Intune