2022-09-19 18:50:45 +02:00
|
|
|
[metadata]
|
|
|
|
|
creation_date = "2022/08/29"
|
2023-02-02 16:22:44 -05:00
|
|
|
integration = ["system", "windows"]
|
2022-09-19 18:50:45 +02:00
|
|
|
maturity = "production"
|
|
|
|
|
min_stack_comments = "New fields added: required_fields, related_integrations, setup"
|
|
|
|
|
min_stack_version = "8.3.0"
|
2023-10-15 18:12:20 -03:00
|
|
|
updated_date = "2023/10/13"
|
2022-09-19 18:50:45 +02:00
|
|
|
|
|
|
|
|
[rule]
|
|
|
|
|
author = ["Elastic"]
|
|
|
|
|
description = """
|
|
|
|
|
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.
|
|
|
|
|
"""
|
|
|
|
|
false_positives = ["Legitimate scheduled tasks may be created during installation of new software."]
|
|
|
|
|
from = "now-9m"
|
2022-12-21 06:30:04 -08:00
|
|
|
index = ["winlogbeat-*", "logs-system.*", "logs-windows.*"]
|
2022-09-19 18:50:45 +02:00
|
|
|
language = "eql"
|
|
|
|
|
license = "Elastic License v2"
|
|
|
|
|
name = "Temporarily Scheduled Task Creation"
|
|
|
|
|
references = ["https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/event-4698"]
|
|
|
|
|
risk_score = 47
|
|
|
|
|
rule_id = "81ff45f8-f8c2-4e28-992e-5a0e8d98e0fe"
|
|
|
|
|
severity = "medium"
|
2023-10-15 18:12:20 -03:00
|
|
|
tags = ["Domain: Endpoint", "OS: Windows", "Use Case: Threat Detection", "Tactic: Persistence", "Tactic: Execution"]
|
2022-09-19 18:50:45 +02:00
|
|
|
type = "eql"
|
|
|
|
|
|
|
|
|
|
query = '''
|
2022-12-21 06:30:04 -08:00
|
|
|
sequence by winlog.computer_name, winlog.event_data.TaskName with maxspan=5m
|
2023-05-15 20:31:59 -03:00
|
|
|
[iam where event.action == "scheduled-task-created" and not user.name : "*$"]
|
|
|
|
|
[iam where event.action == "scheduled-task-deleted" and not user.name : "*$"]
|
2022-09-19 18:50:45 +02:00
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
[[rule.threat]]
|
|
|
|
|
framework = "MITRE ATT&CK"
|
|
|
|
|
[[rule.threat.technique]]
|
|
|
|
|
id = "T1053"
|
|
|
|
|
name = "Scheduled Task/Job"
|
|
|
|
|
reference = "https://attack.mitre.org/techniques/T1053/"
|
|
|
|
|
[[rule.threat.technique.subtechnique]]
|
|
|
|
|
id = "T1053.005"
|
|
|
|
|
name = "Scheduled Task"
|
|
|
|
|
reference = "https://attack.mitre.org/techniques/T1053/005/"
|
|
|
|
|
|
|
|
|
|
|
2022-12-16 12:04:20 -05:00
|
|
|
|
2022-09-19 18:50:45 +02:00
|
|
|
[rule.threat.tactic]
|
|
|
|
|
id = "TA0003"
|
|
|
|
|
name = "Persistence"
|
|
|
|
|
reference = "https://attack.mitre.org/tactics/TA0003/"
|
2023-10-15 18:12:20 -03:00
|
|
|
|
|
|
|
|
[[rule.threat]]
|
|
|
|
|
framework = "MITRE ATT&CK"
|
|
|
|
|
[[rule.threat.technique]]
|
|
|
|
|
id = "T1053"
|
|
|
|
|
name = "Scheduled Task/Job"
|
|
|
|
|
reference = "https://attack.mitre.org/techniques/T1053/"
|
|
|
|
|
|
|
|
|
|
[[rule.threat.technique.subtechnique]]
|
|
|
|
|
id = "T1053.005"
|
|
|
|
|
name = "Scheduled Task"
|
|
|
|
|
reference = "https://attack.mitre.org/techniques/T1053/005/"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[rule.threat.tactic]
|
|
|
|
|
id = "TA0002"
|
|
|
|
|
name = "Execution"
|
|
|
|
|
reference = "https://attack.mitre.org/tactics/TA0002/"
|
|
|
|
|
|