2021-01-25 14:42:56 -05:00
|
|
|
[metadata]
|
|
|
|
|
creation_date = "2021/01/19"
|
2023-01-04 09:30:07 -05:00
|
|
|
integration = ["endpoint"]
|
2021-01-25 14:42:56 -05:00
|
|
|
maturity = "production"
|
2022-08-24 10:38:49 -06:00
|
|
|
min_stack_comments = "New fields added: required_fields, related_integrations, setup"
|
|
|
|
|
min_stack_version = "8.3.0"
|
2023-03-06 12:47:11 -03:00
|
|
|
updated_date = "2023/03/06"
|
2021-01-25 14:42:56 -05:00
|
|
|
|
|
|
|
|
[rule]
|
|
|
|
|
author = ["Elastic"]
|
|
|
|
|
description = """
|
2022-03-01 21:39:30 -03:00
|
|
|
Identifies modification of the Time Provider. Adversaries may establish persistence by registering and enabling a
|
|
|
|
|
malicious DLL as a time provider. Windows uses the time provider architecture to obtain accurate time stamps from other
|
|
|
|
|
network devices or clients in the network. Time providers are implemented in the form of a DLL file which resides in the
|
|
|
|
|
System32 folder. The service W32Time initiates during the startup of Windows and loads w32time.dll.
|
2021-01-25 14:42:56 -05:00
|
|
|
"""
|
|
|
|
|
from = "now-9m"
|
2023-03-06 12:47:11 -03:00
|
|
|
index = ["logs-endpoint.events.*", "endgame-*"]
|
2021-01-25 14:42:56 -05:00
|
|
|
language = "eql"
|
2021-03-03 22:12:11 -09:00
|
|
|
license = "Elastic License v2"
|
2021-01-25 14:42:56 -05:00
|
|
|
name = "Potential Persistence via Time Provider Modification"
|
|
|
|
|
references = ["https://pentestlab.blog/2019/10/22/persistence-time-providers/"]
|
|
|
|
|
risk_score = 47
|
|
|
|
|
rule_id = "14ed1aa9-ebfd-4cf9-a463-0ac59ec55204"
|
|
|
|
|
severity = "medium"
|
2023-03-06 12:47:11 -03:00
|
|
|
tags = ["Elastic", "Host", "Windows", "Threat Detection", "Persistence", "Elastic Endgame"]
|
2021-02-17 19:49:58 -09:00
|
|
|
timestamp_override = "event.ingested"
|
2021-01-25 14:42:56 -05:00
|
|
|
type = "eql"
|
|
|
|
|
|
|
|
|
|
query = '''
|
2023-03-05 09:41:19 -09:00
|
|
|
registry where host.os.type == "windows" and event.type:"change" and
|
2023-03-06 12:47:11 -03:00
|
|
|
registry.path: (
|
|
|
|
|
"HKLM\\SYSTEM\\*ControlSet*\\Services\\W32Time\\TimeProviders\\*",
|
|
|
|
|
"\\REGISTRY\\MACHINE\\SYSTEM\\*ControlSet*\\Services\\W32Time\\TimeProviders\\*"
|
|
|
|
|
) and
|
2021-01-25 14:42:56 -05:00
|
|
|
registry.data.strings:"*.dll"
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[[rule.threat]]
|
|
|
|
|
framework = "MITRE ATT&CK"
|
|
|
|
|
[[rule.threat.technique]]
|
|
|
|
|
id = "T1547"
|
|
|
|
|
name = "Boot or Logon Autostart Execution"
|
|
|
|
|
reference = "https://attack.mitre.org/techniques/T1547/"
|
|
|
|
|
[[rule.threat.technique.subtechnique]]
|
|
|
|
|
id = "T1547.003"
|
|
|
|
|
name = "Time Providers"
|
|
|
|
|
reference = "https://attack.mitre.org/techniques/T1547/003/"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[rule.threat.tactic]
|
|
|
|
|
id = "TA0003"
|
|
|
|
|
name = "Persistence"
|
|
|
|
|
reference = "https://attack.mitre.org/tactics/TA0003/"
|
|
|
|
|
|