64 lines
1.7 KiB
TOML
64 lines
1.7 KiB
TOML
[metadata]
|
|
creation_date = "2022/08/29"
|
|
integration = ["system", "windows"]
|
|
maturity = "production"
|
|
updated_date = "2025/05/09"
|
|
|
|
[rule]
|
|
author = ["Elastic"]
|
|
description = """
|
|
Identifies first-time modifications to scheduled tasks by user accounts, excluding system activity and machine accounts.
|
|
"""
|
|
false_positives = ["Legitimate scheduled tasks may be created during installation of new software."]
|
|
from = "now-9m"
|
|
index = ["logs-system.security*", "logs-windows.forwarded*", "winlogbeat-*"]
|
|
language = "kuery"
|
|
license = "Elastic License v2"
|
|
name = "Unusual Scheduled Task Update"
|
|
references = ["https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/event-4698"]
|
|
risk_score = 21
|
|
rule_id = "a02cb68e-7c93-48d1-93b2-2c39023308eb"
|
|
severity = "low"
|
|
tags = [
|
|
"Domain: Endpoint",
|
|
"OS: Windows",
|
|
"Use Case: Threat Detection",
|
|
"Tactic: Persistence",
|
|
"Data Source: Windows Security Event Logs"
|
|
]
|
|
timestamp_override = "event.ingested"
|
|
type = "new_terms"
|
|
|
|
query = '''
|
|
event.category: "iam" and event.code: "4702" and
|
|
not winlog.event_data.SubjectUserSid: ("S-1-5-18" or "S-1-5-19" or "S-1-5-20") and
|
|
not user.name : *$
|
|
'''
|
|
|
|
|
|
[[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 = "TA0003"
|
|
name = "Persistence"
|
|
reference = "https://attack.mitre.org/tactics/TA0003/"
|
|
|
|
[rule.new_terms]
|
|
field = "new_terms_fields"
|
|
value = ["host.id", "winlog.event_data.TaskName"]
|
|
|
|
[[rule.new_terms.history_window_start]]
|
|
field = "history_window_start"
|
|
value = "now-14d"
|