Skip to content

Commit 8eb6362

Browse files
[New Rule] Domain Trust Enumeration via Nltest (#2010)
* adding detection rule * removed changes from unrelated rule * adjusted threat technique * Update rules/windows/discovery_enumerating_domain_trusts_via_nltest.toml * Update rules/windows/discovery_enumerating_domain_trusts_via_nltest.toml Co-authored-by: Jonhnathan <[email protected]> * Update rules/windows/discovery_enumerating_domain_trusts_via_nltest.toml Co-authored-by: Jonhnathan <[email protected]> * Update rules/windows/discovery_enumerating_domain_trusts_via_nltest.toml Co-authored-by: Jonhnathan <[email protected]> Co-authored-by: Justin Ibarra <[email protected]> (cherry picked from commit 329530c)
1 parent a9956f8 commit 8eb6362

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
[metadata]
2+
creation_date = "2022/05/31"
3+
maturity = "production"
4+
updated_date = "2022/07/05"
5+
6+
[rule]
7+
author = ["Elastic"]
8+
description = """
9+
Identifies the use of nltest.exe for domain trust discovery purposes. Adversaries may use this command-line utility to
10+
enumerate domain trusts and gain insight into trust relationships, as well as the state of Domain Controller (DC)
11+
replication in a Microsoft Windows NT Domain.
12+
"""
13+
false_positives = [
14+
"""
15+
Domain administrators may use this command-line utility for legitimate information gathering purposes, but it is not
16+
common for environments with Windows Server 2012 and newer.
17+
""",
18+
]
19+
from = "now-9m"
20+
index = ["winlogbeat-*", "logs-endpoint.events.*", "logs-windows.*"]
21+
language = "eql"
22+
license = "Elastic License v2"
23+
name = "Enumerating Domain Trusts via NLTEST.EXE"
24+
note = """## Config
25+
26+
If enabling an EQL rule on a non-elastic-agent index (such as beats) for versions <8.2, events will not define `event.ingested` and default fallback for EQL rules was not added until 8.2, so you will need to add a custom pipeline to populate `event.ingested` to @timestamp for this rule to work.
27+
"""
28+
references = [
29+
"https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/cc731935(v=ws.11)",
30+
"https://redcanary.com/blog/how-one-hospital-thwarted-a-ryuk-ransomware-outbreak/",
31+
]
32+
risk_score = 23
33+
rule_id = "84da2554-e12a-11ec-b896-f661ea17fbcd"
34+
severity = "low"
35+
tags = ["Elastic", "Host", "Windows", "Threat Detection", "Discovery"]
36+
timestamp_override = "event.ingested"
37+
type = "eql"
38+
39+
query = '''
40+
process where event.type in ("start", "process_started") and
41+
process.name : "nltest.exe" and process.args : (
42+
"/DCLIST:*", "/DCNAME:*", "/DSGET*",
43+
"/LSAQUERYFTI:*", "/PARENTDOMAIN",
44+
"/DOMAIN_TRUSTS", "/BDC_QUERY:*")
45+
'''
46+
47+
48+
[[rule.threat]]
49+
framework = "MITRE ATT&CK"
50+
[[rule.threat.technique]]
51+
id = "T1482"
52+
name = "Domain Trust Discovery"
53+
reference = "https://attack.mitre.org/techniques/T1482/"
54+
55+
56+
[rule.threat.tactic]
57+
id = "TA0007"
58+
name = "Discovery"
59+
reference = "https://attack.mitre.org/tactics/TA0007/"
60+

0 commit comments

Comments
 (0)