This rule detects the presence of the PCShrinker malware, a tool often used by adversaries to compress and obfuscate payloads for stealthy execution or data exfiltration. Proactively hunting for this signature in Azure Sentinel allows the SOC to identify compromised endpoints early, mitigating the risk of hidden malicious activity before it progresses to lateral movement or impact.
rule PCShrinkerv029
{
meta:
author="malware-lu"
strings:
$a0 = { BD [4] 01 AD 55 39 40 ?? 8D B5 35 39 40 }
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.
7z, zip, or a custom Python script using zlib) that shares specific string constants or byte patterns with the “PCShrinker” malware family, causing the YARA rule to match the binary or script file.
C:\dev\, C:\projects\, C:\src\) or specific known-good hashes for common compression tools. Alternatively, exclude processes where the parent process is a known IDE or build tool (e.g., code.exe, msbuild.exe, python.exe).C:\Program Files (x86)\VendorName\Maintenance\.
VendorService.exe) or files located in specific vendor installation paths. Add an exclusion for scheduled tasks that run known maintenance scripts with specific names (e.g., *cleanup*.bat, *rotate*.ps1).yara.exe scanning a known PCShrinker sample in a dedicated test folder).