This detection identifies potential file obfuscation attempts where adversaries utilize the UPX executable packer to conceal malicious payloads within legitimate applications. Proactive hunting for this behavior in Azure Sentinel is essential because UPX packing frequently masks advanced threats from static analysis tools, allowing attackers to bypass initial security controls and execute stealthy operations.
rule UPXShit006
{
meta:
author="malware-lu"
strings:
$a0 = { B8 [2] 43 00 B9 15 00 00 00 80 34 08 ?? E2 FA E9 D6 FF FF FF }
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 4 specific false positive scenarios for the UPXShit006 detection rule, which targets executables packed with UPX (a popular executable packer often used by both legitimate software and malware):
Scenario: Automated Patch Deployment via SCCM/Intune
.exe files, it triggers the rule.ProcessName is ccmsetup.exe, MicrosoftEdgeUpdate.exe, or IntuneAgent.exe AND the file resides in the C:\Program Files\ or C:\Windows\SoftwareDistribution\Download\ directories.Scenario: Scheduled Backup and Archiving Jobs
01:00 and 05:00 local time for files matching known SHA-256 hashes of the backup vendor’s core engine (e.g., Veeam.Backup.Service.exe).Scenario: Deployment of Third-Party Security Agents