Temporarily Scheduled Task Creation
Indicates the creation and deletion of a scheduled task within a short time interval. Adversaries can use these to proxy malicious execution via the schedule service and perform clean up.
Elastic rule (View on GitHub)
1[metadata]
2creation_date = "2022/08/29"
3integration = ["system", "windows"]
4maturity = "production"
5updated_date = "2024/10/15"
6min_stack_version = "8.14.0"
7min_stack_comments = "Breaking change at 8.14.0 for the Windows Integration."
8
9[rule]
10author = ["Elastic"]
11description = """
12Indicates the creation and deletion of a scheduled task within a short time interval. Adversaries can use these to proxy
13malicious execution via the schedule service and perform clean up.
14"""
15false_positives = ["Legitimate scheduled tasks may be created during installation of new software."]
16from = "now-9m"
17index = ["winlogbeat-*", "logs-system.*", "logs-windows.*"]
18language = "eql"
19license = "Elastic License v2"
20name = "Temporarily Scheduled Task Creation"
21references = ["https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/event-4698"]
22risk_score = 47
23rule_id = "81ff45f8-f8c2-4e28-992e-5a0e8d98e0fe"
24severity = "medium"
25tags = [
26 "Domain: Endpoint",
27 "OS: Windows",
28 "Use Case: Threat Detection",
29 "Tactic: Persistence",
30 "Tactic: Execution",
31 "Data Source: System",
32]
33type = "eql"
34
35query = '''
36sequence by winlog.computer_name, winlog.event_data.TaskName with maxspan=5m
37 [iam where event.action == "scheduled-task-created" and not user.name : "*$"]
38 [iam where event.action == "scheduled-task-deleted" and not user.name : "*$"]
39'''
40
41
42[[rule.threat]]
43framework = "MITRE ATT&CK"
44[[rule.threat.technique]]
45id = "T1053"
46name = "Scheduled Task/Job"
47reference = "https://attack.mitre.org/techniques/T1053/"
48[[rule.threat.technique.subtechnique]]
49id = "T1053.005"
50name = "Scheduled Task"
51reference = "https://attack.mitre.org/techniques/T1053/005/"
52
53
54
55[rule.threat.tactic]
56id = "TA0003"
57name = "Persistence"
58reference = "https://attack.mitre.org/tactics/TA0003/"
59[[rule.threat]]
60framework = "MITRE ATT&CK"
61[[rule.threat.technique]]
62id = "T1053"
63name = "Scheduled Task/Job"
64reference = "https://attack.mitre.org/techniques/T1053/"
65[[rule.threat.technique.subtechnique]]
66id = "T1053.005"
67name = "Scheduled Task"
68reference = "https://attack.mitre.org/techniques/T1053/005/"
69
70
71
72[rule.threat.tactic]
73id = "TA0002"
74name = "Execution"
75reference = "https://attack.mitre.org/tactics/TA0002/"
References
Related rules
- A scheduled task was created
- A scheduled task was updated
- Account Password Reset Remotely
- Active Directory Group Modification by SYSTEM
- AdminSDHolder SDProp Exclusion Added