This rule detects the presence of executable files packed with the WWPACK v300 or v301 compressor, a technique often used by adversaries to obscure binary structure and complicate static analysis during initial access or payload execution. Proactively hunting for these specific packers in Azure Sentinel helps identify potentially obfuscated malware that may be evading signature-based detections or hiding in low-severity alerts within the environment.
rule WWPACKv300v301Relocationspack
{
meta:
author="malware-lu"
strings:
$a0 = { BE [2] BA [2] BF [2] B9 [2] 8C CD 8E DD 81 ED [2] 06 06 8B DD 2B DA 8B D3 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.
C:\Program Files\LegacyApp\) or exclude based on known Publisher/Signer certificates if the application is code-signed.Task Scheduler jobs running at 2:00 AM) that execute third-party utility binaries (such as disk cleanup tools, log rotators, or backup agents) which were packed with WWPACK to optimize distribution.
schtasks.exe or Task Scheduler service if the parent process is svchost.exe (specifically the Task Scheduler service) and the target path matches known utility folders (e.g., C:\ProgramData\VendorTools\).C:\Windows\Installer\ or C:\Temp\) to perform registry updates or service registrations. These temporary files may retain the WWPACK signature.
C:\Windows\Installer\, C:\Temp\, C:\Users\*\AppData\Local\Temp\) that are less than 24 hours old, or exclude if the parent process is msiexec.exe or setup.exe.