This rule detects the presence of Shrinker32, a 32-bit executable packer often used by adversaries to compress binaries and obscure their code from static analysis tools. Proactively hunting for this indicator in Azure Sentinel allows the SOC team to identify potentially packed malware or trojans that may have been deployed on endpoints, enabling early intervention before the packed payload executes or evades detection.
rule Shrinker32
{
meta:
author="malware-lu"
strings:
$a0 = { 55 8B EC 56 57 75 65 68 00 01 00 00 E8 F1 E6 FF FF 83 C4 04 }
condition:
$a0
}
This YARA rule can be deployed in the following contexts:
This rule contains 1 string patterns in its detection logic.
Shrinker32.exe binary by third-party application installers or updaters (e.g., Java, Adobe Creative Cloud, or Oracle software) that bundle the shrinker to compress temporary installation files.
msiexec.exe, setup.exe, install.exe) and the file path contains standard installation directories like \Program Files\ or \AppData\Local\Temp\.svc_backup, admin_maintenance) or when the command line arguments include standard compression flags (e.g., -c, --compress) and the target path is within designated backup or log directories (e.g., \Logs\, \Backups\).\src\, \build\, \artifacts\) and where the parent process is a build tool (e.g., msbuild.exe, gradle.bat, npm.exe).legacy_app.exe, crm_client.exe) and exclude