This detection identifies executable files packed with the UPX v2.0 compressor, a technique adversaries frequently employ to obfuscate malicious payloads and evade static signature-based analysis. Proactive hunting for this behavior in Azure Sentinel is essential because UPX-packed binaries often conceal hidden execution logic that may bypass initial security controls, requiring deeper dynamic inspection to uncover potential threats.
rule UPXv20MarkusLaszloReiser
{
meta:
author="malware-lu"
strings:
$a0 = { 55 FF 96 [4] 09 C0 74 07 89 03 83 C3 04 EB ?? FF 96 [4] 8B AE [4] 8D BE 00 F0 FF FF BB 00 10 00 00 50 54 6A 04 53 57 FF D5 8D 87 [2] 00 00 80 20 7F 80 60 28 7F 58 50 54 50 53 57 FF D5 58 61 8D 44 24 80 6A 00 39 C4 75 FA 83 EC 80 }
condition:
$a0
}
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 UPXv20MarkusLaszloReiser detection rule, along with suggested filters and exclusions tailored for an enterprise environment:
Scenario: Deployment of Microsoft Office Click-to-Run Updates
OfficeClickToRun.exe) frequently utilizes UPX compression to package update payloads (version 20.x) before installation. This is a standard, scheduled background task that occurs daily on endpoints.C:\Program Files\Microsoft Office\root\Office16\ and the process name OfficeClickToRun.exe. Alternatively, filter out any UPX-compressed files where the embedded signature matches “Microsoft Corporation” in the PE header.Scenario: Execution of Sysinternals Suite Utilities
ProcessExplorer.exe, ProcMon.exe, or PsExec.exe) for troubleshooting and remote management. These utilities are often distributed as UPX-packed executables to reduce download size, triggering alerts when launched by IT staff.C:\ProgramData\Microsoft\Sysinternals\ or filter based on the publisher “Microsoft Corporation” and specific file hashes known for the latest Sysinternals releases.Scenario: Scheduled Antivirus Definition Updates
SYSTEM account during off-peak hours.