5e801b2edf
* [Tuning] Improve Performance Remote Computer Account DnsHostName Update : sequence not needed, removed auth event to improve rule execution time. Potential Remote Credential Access via Registry : removed sequence, since user.id is reported as std user SID (svchost is impersonating a remote user), and reduced file.path to known bad (based on observed TPs) * Update privilege_escalation_suspicious_dnshostname_update.toml * ++ * ++ --------- Co-authored-by: Jonhnathan <26856693+w0rk3r@users.noreply.github.com>
67 lines
2.4 KiB
TOML
67 lines
2.4 KiB
TOML
[metadata]
|
|
creation_date = "2022/05/11"
|
|
integration = ["system", "windows"]
|
|
maturity = "production"
|
|
min_stack_comments = "New fields added: required_fields, related_integrations, setup"
|
|
min_stack_version = "8.3.0"
|
|
updated_date = "2023/07/21"
|
|
|
|
[rule]
|
|
author = ["Elastic"]
|
|
description = """
|
|
Identifies the remote update to a computer account's DnsHostName attribute. If the new value set is a valid domain
|
|
controller DNS hostname and the subject computer name is not a domain controller, then it's highly likely a preparation
|
|
step to exploit CVE-2022-26923 in an attempt to elevate privileges from a standard domain user to domain admin
|
|
privileges.
|
|
"""
|
|
from = "now-9m"
|
|
index = ["winlogbeat-*", "logs-system.*", "logs-windows.*"]
|
|
language = "eql"
|
|
license = "Elastic License v2"
|
|
name = "Remote Computer Account DnsHostName Update"
|
|
references = [
|
|
"https://research.ifcr.dk/certifried-active-directory-domain-privilege-escalation-cve-2022-26923-9e098fe298f4",
|
|
"https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2022-26923",
|
|
]
|
|
risk_score = 73
|
|
rule_id = "6bed021a-0afb-461c-acbe-ffdb9574d3f3"
|
|
severity = "high"
|
|
tags = ["Domain: Endpoint", "OS: Windows", "Use Case: Threat Detection", "Tactic: Privilege Escalation", "Use Case: Active Directory Monitoring", "Data Source: Active Directory", "Use Case: Vulnerability"]
|
|
timestamp_override = "event.ingested"
|
|
type = "eql"
|
|
|
|
query = '''
|
|
iam where event.action == "changed-computer-account" and user.id : ("S-1-5-21-*", "S-1-12-1-*") and
|
|
|
|
/* if DnsHostName value equal a DC DNS hostname then it's highly suspicious */
|
|
winlog.event_data.DnsHostName : "??*" and
|
|
|
|
/* exclude FPs where DnsHostName starts with the ComputerName that was changed */
|
|
not startswith~(winlog.event_data.DnsHostName, substring(winlog.event_data.TargetUserName, 0, length(winlog.event_data.TargetUserName) - 1))
|
|
'''
|
|
|
|
|
|
[[rule.threat]]
|
|
framework = "MITRE ATT&CK"
|
|
[[rule.threat.technique]]
|
|
id = "T1068"
|
|
name = "Exploitation for Privilege Escalation"
|
|
reference = "https://attack.mitre.org/techniques/T1068/"
|
|
|
|
[[rule.threat.technique]]
|
|
id = "T1078"
|
|
name = "Valid Accounts"
|
|
reference = "https://attack.mitre.org/techniques/T1078/"
|
|
[[rule.threat.technique.subtechnique]]
|
|
id = "T1078.002"
|
|
name = "Domain Accounts"
|
|
reference = "https://attack.mitre.org/techniques/T1078/002/"
|
|
|
|
|
|
|
|
[rule.threat.tactic]
|
|
id = "TA0004"
|
|
name = "Privilege Escalation"
|
|
reference = "https://attack.mitre.org/tactics/TA0004/"
|
|
|