This detection identifies adversaries utilizing the “Patch Dwing” technique to unpack and modify executable files, often a precursor to hiding malicious payloads within legitimate applications. Proactively hunting for this behavior in Azure Sentinel is essential to uncover stealthy file integrity manipulations that may evade standard signature-based defenses before they execute critical attack phases.
rule Upack_PatchDwing
{
meta:
author="malware-lu"
strings:
$a0 = { 81 3A 00 00 00 02 00 00 00 00 }
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 Upack PatchDwing detection rule, including suggested filters and exclusions tailored for an enterprise environment:
Scenario: Automated Deployment of Microsoft System Updates via WSUS/SCCM
wusa.exe) or Configuration Manager client often extracts compressed .msu packages containing patches. This extraction process involves unpacking binary data that mimics the behavior of a patching tool, triggering the YARA signature.C:\Windows\System32\wusa.exe path with the command line argument containing /quiet. Additionally, exclude any process tree initiated by ccmsetup.exe (SCCM) or usoclient.exe.Scenario: Scheduled Antivirus Definition Updates
C:\Program Files\CrowdStrike\fsq.exe, C:\ProgramData\McAfee\Agent\x86\mfeagent.exe, and C:\Windows\System32\usoclient.exe. Apply a time-based filter to ignore alerts occurring during the defined maintenance window (e.g., 01:00–05:00 local time).Scenario: Software Installation via Package Managers (Chocolatey/MSI)