2021-02-10 09:00:58 -05:00
|
|
|
[metadata]
|
|
|
|
|
creation_date = "2021/01/21"
|
2023-01-04 09:30:07 -05:00
|
|
|
integration = ["endpoint"]
|
2021-02-10 09:00:58 -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-06-22 18:38:56 -03:00
|
|
|
updated_date = "2023/06/22"
|
2021-02-10 09:00:58 -05:00
|
|
|
|
|
|
|
|
[rule]
|
|
|
|
|
author = ["Elastic"]
|
|
|
|
|
description = """
|
|
|
|
|
Adversaries can use the autostart mechanism provided by the Local Security Authority (LSA) authentication packages for
|
|
|
|
|
privilege escalation or persistence by placing a reference to a binary in the Windows registry. The binary will then be
|
|
|
|
|
executed by SYSTEM when the authentication packages are loaded.
|
|
|
|
|
"""
|
|
|
|
|
from = "now-9m"
|
2023-03-06 12:47:11 -03:00
|
|
|
index = ["logs-endpoint.events.*", "endgame-*"]
|
2021-02-10 09:00:58 -05:00
|
|
|
language = "eql"
|
2021-03-03 22:12:11 -09:00
|
|
|
license = "Elastic License v2"
|
2021-02-10 09:00:58 -05:00
|
|
|
name = "Potential LSA Authentication Package Abuse"
|
|
|
|
|
risk_score = 47
|
|
|
|
|
rule_id = "e9abe69b-1deb-4e19-ac4a-5d5ac00f72eb"
|
|
|
|
|
severity = "medium"
|
2023-09-05 15:22:01 -03:00
|
|
|
tags = ["Domain: Endpoint", "OS: Windows", "Use Case: Threat Detection", "Tactic: Privilege Escalation", "Data Source: Elastic Endgame", "Data Source: Elastic Defend"]
|
2021-02-17 19:49:58 -09:00
|
|
|
timestamp_override = "event.ingested"
|
2021-02-10 09:00:58 -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*\\Control\\Lsa\\Authentication Packages",
|
|
|
|
|
"\\REGISTRY\\MACHINE\\SYSTEM\\*ControlSet*\\Control\\Lsa\\Authentication Packages"
|
|
|
|
|
) and
|
2021-02-10 09:00:58 -05:00
|
|
|
/* exclude SYSTEM SID - look for changes by non-SYSTEM user */
|
|
|
|
|
not user.id : "S-1-5-18"
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[[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.002"
|
|
|
|
|
name = "Authentication Package"
|
|
|
|
|
reference = "https://attack.mitre.org/techniques/T1547/002/"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[rule.threat.tactic]
|
|
|
|
|
id = "TA0004"
|
|
|
|
|
name = "Privilege Escalation"
|
|
|
|
|
reference = "https://attack.mitre.org/tactics/TA0004/"
|
|
|
|
|
[[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.002"
|
|
|
|
|
name = "Authentication Package"
|
|
|
|
|
reference = "https://attack.mitre.org/techniques/T1547/002/"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[rule.threat.tactic]
|
|
|
|
|
id = "TA0003"
|
|
|
|
|
name = "Persistence"
|
|
|
|
|
reference = "https://attack.mitre.org/tactics/TA0003/"
|
|
|
|
|
|