A scheduled task was created
Indicates the creation of a scheduled task using Windows event logs. Adversaries can use these to establish persistence, move laterally, and/or escalate privileges.
Elastic rule (View on GitHub)
1[metadata]
2creation_date = "2022/08/29"
3integration = ["system", "windows"]
4maturity = "production"
5updated_date = "2024/05/21"
6
7[rule]
8author = ["Elastic"]
9description = """
10Indicates the creation of a scheduled task using Windows event logs. Adversaries can use these to establish persistence,
11move laterally, and/or escalate privileges.
12"""
13false_positives = ["Legitimate scheduled tasks may be created during installation of new software."]
14from = "now-9m"
15index = ["winlogbeat-*", "logs-system.*", "logs-windows.*"]
16language = "eql"
17license = "Elastic License v2"
18name = "A scheduled task was created"
19references = ["https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/event-4698"]
20risk_score = 21
21rule_id = "92a6faf5-78ec-4e25-bea1-73bacc9b59d9"
22severity = "low"
23tags = ["Domain: Endpoint", "OS: Windows", "Use Case: Threat Detection", "Tactic: Persistence"]
24timestamp_override = "event.ingested"
25type = "eql"
26
27query = '''
28iam where event.action == "scheduled-task-created" and
29
30 /* excluding tasks created by the computer account */
31 not user.name : "*$" and
32
33 /* TaskContent is not parsed, exclude by full taskname noisy ones */
34 not winlog.event_data.TaskName : (
35 "\\CreateExplorerShellUnelevatedTask",
36 "\\Hewlett-Packard\\HPDeviceCheck",
37 "\\Hewlett-Packard\\HP Support Assistant\\WarrantyChecker",
38 "\\Hewlett-Packard\\HP Support Assistant\\WarrantyChecker_backup",
39 "\\Hewlett-Packard\\HP Web Products Detection",
40 "\\Microsoft\\VisualStudio\\Updates\\BackgroundDownload",
41 "\\OneDrive Standalone Update Task-S-1-5-21*",
42 "\\OneDrive Standalone Update Task-S-1-12-1-*"
43 )
44'''
45
46
47[[rule.threat]]
48framework = "MITRE ATT&CK"
49[[rule.threat.technique]]
50id = "T1053"
51name = "Scheduled Task/Job"
52reference = "https://attack.mitre.org/techniques/T1053/"
53[[rule.threat.technique.subtechnique]]
54id = "T1053.005"
55name = "Scheduled Task"
56reference = "https://attack.mitre.org/techniques/T1053/005/"
57
58
59
60[rule.threat.tactic]
61id = "TA0003"
62name = "Persistence"
63reference = "https://attack.mitre.org/tactics/TA0003/"
References
Related rules
- A scheduled task was updated
- Account Configured with Never-Expiring Password
- Account Password Reset Remotely
- Adding Hidden File Attribute via Attrib
- Browser Extension Install