sequence by winlog.computer_name, winlog.event_data.TaskName with maxspan=5m
[iam where host.os.type == "windows" and event.action == "scheduled-task-created" and not user.name : "*$"]
[iam where host.os.type == "windows" and event.action == "scheduled-task-deleted" and not user.name : "*$"]
Install detection rules in Elastic Security
Detect Temporarily Scheduled Task Creation 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).