This hypothesis targets the presence of DLL files packed with ASPack v107b, a technique frequently employed by adversaries to obfuscate malicious payloads and evade static analysis. Proactively hunting for these artifacts in Azure Sentinel allows the SOC team to identify potential malware droppers or injected components early in the kill chain, reducing the dwell time of threats that leverage common packers to hide their intent.
rule ASPack_v107b_DLL: PEiD
{
strings:
$a = { 90 90 90 75 }
$b = { 60 E8 00 00 00 00 5D ?? ?? ?? ?? ?? ?? B8 ?? ?? ?? ?? 03 C5 }
condition:
for any of ($*) : ( $ at pe.entry_point )
}
This YARA rule can be deployed in the following contexts:
This rule contains 2 string patterns in its detection logic.
Legacy 32-bit Application Deployment via GPO
C:\Program Files (x86)\LegacyApp\bin\*.dll). Verify the digital signature of the parent executable (e.g., LegacyApp.exe) to ensure the DLLs are loaded by a trusted, signed process. Exclude files located in the specific application directory tree if the parent process is on the trusted application list.Third-Party SDK or Plugin Installation
C:\Program Files or C:\Program Files (x86).C:\Program Files\Adobe\, C:\Program Files (x86)\Java\, C:\Program Files\FinancialPlugin\). Cross-reference the DLL’s parent process with a list of known trusted installers or applications (e.g., msiexec.exe, setup.exe from a known vendor). If the DLL is in a standard program directory and the parent process is signed by