This rule detects the execution of a specific Group Policy installation or update process, potentially indicating an adversary leveraging legitimate administrative tools to persist or modify configurations within the environment. Proactively hunting for this activity allows the SOC team to identify unauthorized or anomalous policy changes that could facilitate lateral movement or privilege escalation before they are fully exploited.
rule GPInstallv50332
{
meta:
author="malware-lu"
strings:
$a0 = { 55 8B EC 33 C9 51 51 51 51 51 51 51 53 56 57 B8 C4 1C 41 00 E8 6B 3E FF FF 33 C0 55 68 76 20 41 00 64 FF 30 64 89 20 BA A0 47 41 00 33 C0 E8 31 0A FF FF 33 D2 A1 A0 }
condition:
$a0
}
This YARA rule can be deployed in the following contexts:
This rule contains 1 string patterns in its detection logic.
wuauclt.exe or usoclient.exe) often triggers Group Policy processing to fetch and apply new policy definitions or software installation packages from the domain controller. This can result in the execution of gpupdate.exe or related installation scripts that match the YARA signature.
svchost.exe (specifically the WUASVC service) or usoclient.exe, and the command line contains arguments like /wuf or /detect.gpupdate /force during off-peak hours (e.g., 2:00 AM) to ensure compliance without impacting user performance. This scheduled job often runs under the SYSTEM account and may execute helper scripts or binaries that trigger the detection.
schtasks.exe or taskschd.msi, and the user context is NT AUTHORITY\SYSTEM. Additionally, check if the process path resides in C:\Windows\System32\ or C:\Program Files\.DeviceSetupManager.exe or MdmClient.exe processes may trigger Group Policy installation or refresh events to apply new compliance policies or software assignments.
DeviceSetupManager.exe, MdmClient.exe, or IntuneManagementExtension.exe. Verify the process path is under C:\Program Files\Microsoft Intune\ or similar MDM vendor directories.