This detection identifies executables packed with UPX versions 103 and 104, which adversaries frequently utilize to obscure malicious payloads and evade static analysis by compressing binary structures. A proactive hunt is essential in Azure Sentinel because these specific UPX variants are often employed as a first-stage defense mechanism to conceal initial command-and-control traffic or embedded scripts that may otherwise bypass standard signature-based defenses.
rule UPXv103v104
{
meta:
author="malware-lu"
strings:
$a0 = { 8A 06 46 88 07 47 01 DB 75 07 8B 1E 83 EE FC 11 DB 8A 07 72 EB B8 01 00 00 00 01 DB 75 07 8B 1E 83 EE FC 11 DB 11 C0 01 DB 73 ?? 75 ?? 8B 1E 83 EE FC }
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 UPXv103v104 detection rule, along with recommended filters and exclusions tailored for an enterprise environment:
Scenario: Scheduled Antivirus Definition Updates
C:\ProgramData\CrowdStrike\fs\bin or C:\Program Files\Microsoft Defender Antivirus\mpclient). Additionally, exclude processes running under the context of known service accounts like NT SERVICE\DefenderSvc.Scenario: Deployment of Patched Internal Applications via SCCM/Intune
Process Name and Publisher. Filter out events where the publisher is “Microsoft Corporation” or your internal IT department’s specific certificate thumbprint (e.g., CN=Internal-App-Distribution).Scenario: Execution of Third-Party Backup Agents