endpoint(opens in a new tab or window)
windows(opens in a new tab or window)
file where host.os.type == "windows" and event.type != "deletion" and event.action != "open" and
file.name : ("ScheduledTasks.xml", "Services.xml") and
file.path : (
"?:\\Windows\\SYSVOL\\domain\\Policies\\*\\MACHINE\\Preferences\\ScheduledTasks\\ScheduledTasks.xml",
"?:\\Windows\\SYSVOL\\domain\\Policies\\*\\MACHINE\\Preferences\\Services\\Services.xml"
) and
not process.executable : "C:\\Windows\\System32\\dfsrs.exe"
Install detection rules in Elastic Security
Detect Creation or Modification of a new GPO Scheduled Task or Service 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(opens in a new tab or window).