This rule detects the presence of PE executables compiled with the CrunchPE packer, a technique often used by adversaries to compress malware binaries and evade static analysis tools. Proactively hunting for these packed files in Azure Sentinel helps identify potential low-severity threats or staging artifacts that may be hiding in endpoints or storage accounts before they are executed or expanded.
rule CrunchPEv10xx
{
meta:
author="malware-lu"
strings:
$a0 = { 55 E8 [4] 5D 83 ED 06 8B C5 55 60 89 AD [4] 2B 85 [4] 89 85 [4] 80 BD [5] 75 09 C6 85 }
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.
cruncher.exe or crunchpe.exe) during CI/CD pipeline artifact packaging or nightly build jobs.
C:\Jenkins\workspace\, C:\AzureDevOps\agent\_work\) or exclude parent processes like msbuild.exe, dotnet.exe, or java.exe when the child process name matches crunch*.exe.7-Zip, WinRAR, or niche vendor agents like F5 BigIP or Citrix Receiver).
C:\Program Files\7-Zip\Uninstall.exe, C:\Program Files (x86)\WinRAR\Uninstall.exe) or exclude processes spawned by known installer services like msiexec.exe or setup.exe from trusted vendor directories.C:\ITTools\, C:\AdminUtils\) or exclude processes where the parent is a known administrative shell like powershell.exe or cmd.exe and the file hash matches a pre-approved list of internal tool hashes.