This detection rule identifies adversaries attempting to modify registry subkeys and data values, a common tactic used to establish persistence or alter system configurations within an Azure environment. Proactively hunting for these specific registry modifications in Azure Sentinel is critical because low-severity alerts often mask early-stage lateral movement or initial foothold activities that require deeper context analysis before they escalate into significant incidents.
rule RegSubDat : Family
{
meta:
description = "RegSubDat"
author = "Seth Hardy"
last_modified = "2014-07-14"
condition:
RegSubDatCode or RegSubDatStrings
}
This YARA rule can be deployed in the following contexts:
Here are specific false positive scenarios for the RegSubDat detection rule, focusing on legitimate enterprise activities that modify registry data:
Endpoint Protection Policy Updates via Group Policy Objects (GPO)
RegSubDat event as the policy engine writes new registry keys under HKLM\Software\Policies to enforce compliance settings (e.g., disabling USB storage, configuring firewall rules).gpupdate.exe or GpOpr.exe, and the Registry Key Path contains \Microsoft\Windows NT\CurrentVersion\Group Policy.Scheduled Antivirus Definition Synchronization
HKLM\SOFTWARE\CrowdStrike or HKLM\Software\Microsoft\Windows Defender) during their nightly maintenance window.svc-crowdstrike, WdNisSvc) where the Registry Key Path matches known vendor paths and the event occurs between 02:00 and 04:00 UTC.Software Deployment via Microsoft Intune or SCCM
RegSubDat events on the target