This detection identifies adversaries who modify registry subkeys containing identifying strings to establish persistence or evade discovery within Windows environments. Proactively hunting for these specific registry modifications in Azure Sentinel is critical because low-severity alerts often mask early-stage lateral movement attempts that require manual correlation with process execution logs to confirm malicious intent.
rule RegSubDatStrings : RegSubDat Family
{
meta:
description = "RegSubDat Identifying Strings"
author = "Seth Hardy"
last_modified = "2014-07-14"
strings:
$avg1 = "Button"
$avg2 = "Allow"
$avg3 = "Identity Protection"
$avg4 = "Allow for all"
$avg5 = "AVG Firewall Asks For Confirmation"
$mutex = "0x1A7B4C9F"
condition:
all of ($avg*) or $mutex
}
This YARA rule can be deployed in the following contexts:
This rule contains 6 string patterns in its detection logic.
Here are 4 specific false positive scenarios for the RegSubDat Identifying Strings detection rule, tailored for an enterprise environment:
Scheduled Group Policy Updates via Microsoft SCCM/Intune
HKLM\SOFTWARE\Policies to enforce compliance settings. The detection logic flags the string values written during this bulk operation as suspicious activity, even though they are standard administrative configurations.NT SERVICE\CCMEXEC, MSIInstaller) and restrict the rule to trigger only outside of defined maintenance windows or exclude specific registry paths known for policy enforcement (e.g., \SOFTWARE\Policies\Microsoft).Automated Software Patching with Windows Update Agent
wuauserv) runs a scheduled job to install critical security patches. As part of the installation process, it writes version strings and configuration data into registry keys (such as HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate). These legitimate string modifications are frequently misidentified as potential lateral movement or persistence attempts by attackers.TrustedInstaller service account and filter out events where the parent process is svchost.exe with the command line containing -k netsvcs. Additionally, whitelist registry paths specifically related to Windows Update versioning.Endpoint Detection and Response (EDR) Agent Self-Configuration