This detection identifies potential malicious activity associated with the PCShrinker tool by leveraging a specific YARA signature to capture known behavioral patterns within endpoint processes. Proactive hunting for this indicator in Azure Sentinel is essential to uncover early-stage threats that may evade standard high-severity alerts, ensuring comprehensive visibility into low-fidelity but significant security events.
rule PCShrinkerv071
{
meta:
author="malware-lu"
strings:
$a0 = { 9C 60 BD [4] 01 AD 54 3A 40 ?? FF B5 50 3A 40 ?? 6A 40 FF 95 88 3A 40 ?? 50 50 2D [4] 89 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.
Scenario: Scheduled Disk Cleanup by Windows Server
cleanmgr.exe) or a custom PowerShell script running as part of the nightly maintenance window on Windows Server 2019/2022 often invokes PCShrinker to compress system logs and temporary files. This legitimate activity matches the YARA signature for PCShrinkerv071.Task Scheduler (taskschd.exe) or PowerShell.exe running under the “SYSTEM” account, specifically when the command line contains arguments related to disk optimization (e.g., /s, /c, or references to C:\Windows\Temp).Scenario: Endpoint Protection Agent Maintenance
CcmExec.exe for SCCM, FalconSensorService) spawns the shrinker to manage local telemetry storage.FalconSensorService.exe, MsMpEng.exe, or CCMExec.exe), suppress the alert. Additionally, filter by file path if the PCShrinker binary resides within the vendor’s installation directory (e.g., C:\Program Files\CrowdStrike\...).Scenario: Application Deployment via SCCM/Intune