This hypothesis posits that adversaries are utilizing specialized destructive cleaning tools to sanitize endpoints and obscure forensic artifacts following an initial compromise. Proactive hunting for this behavior in Azure Sentinel is critical because early detection of these sanitization activities can reveal post-exploitation actions before data exfiltration or system degradation occurs, even when the associated alerts carry a low severity rating.
rule DestructiveTargetCleaningTool5
{
strings:
$MCU_DLL_ZLIB_COMPRESSED2 = { 5C EC AB AE 81 3C C9 BC D5 A5 42 F4 54 91 04 28 34 34 79 80 6F 71 D5 52 1E 2A 0D }
condition:
$MCU_DLL_ZLIB_COMPRESSED2
}
This YARA rule can be deployed in the following contexts:
This rule contains 1 string patterns in its detection logic.
Here are 4 specific false positive scenarios for the DestructiveTargetCleaningTool5 detection rule, including suggested filters and exclusions:
Scenario: Enterprise Endpoint Protection Maintenance
cleanmgr.exe or custom scripts to remove temporary files and obsolete logs, mimicking the behavior of destructive cleaning tools targeted by the YARA rule.C:\Program Files\CrowdStrike\*) or is spawned directly by the Windows Task Scheduler (svchost.exe with specific service arguments) during standard maintenance windows.Scenario: Automated Patch Management and Software Deployment
*.tmp, *.msi) and rollback artifacts from the %TEMP% directory after successfully deploying updates like .NET Framework patches or Office 365 builds.DOMAIN\SCCM_Service_Agent) and the command line contains flags specific to deployment tools, such as /quiet, /norestart, or references to specific software catalog IDs.**Scenario: Legacy Application Log