Privilege Escalation (TA0004)(external, opens in a new tab or window)
text code block:any where host.os.type == "windows" and event.code in ("5136", "5145") and ( ( winlog.event_data.AttributeLDAPDisplayName : ( "gPCMachineExtensionNames", "gPCUserExtensionNames" ) and winlog.event_data.AttributeValue : "*42B5FAAE-6536-11D2-AE5A-0000F87571E3*" and winlog.event_data.AttributeValue : ( "*40B66650-4972-11D1-A7CA-0000F87571E3*", "*40B6664F-4972-11D1-A7CA-0000F87571E3*" ) ) or ( winlog.event_data.ShareName : "\\\\*\\SYSVOL" and winlog.event_data.RelativeTargetName : ("*\\scripts.ini", "*\\psscripts.ini") and winlog.event_data.AccessList:"*%%4417*" ) )
Install detection rules in Elastic Security
Detect Startup/Logon Script added to Group Policy Object in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).