-
Notifications
You must be signed in to change notification settings - Fork 566
[New Rule] Domain Trust Enumeration via Nltest #2010
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
terrancedejesus
merged 14 commits into
main
from
437-new-rule-enumerating-domain-trusts-activity
Jul 5, 2022
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
784db6c
adding detection rule
terrancedejesus cfe04b3
removed changes from unrelated rule
terrancedejesus e0bc082
Merge branch 'main' into 437-new-rule-enumerating-domain-trusts-activity
terrancedejesus 5a07f69
adjusted threat technique
terrancedejesus aaba4f0
Merge branch 'main' into 437-new-rule-enumerating-domain-trusts-activity
terrancedejesus 61f8225
Update rules/windows/discovery_enumerating_domain_trusts_via_nltest.toml
terrancedejesus 30915a1
Merge branch 'main' into 437-new-rule-enumerating-domain-trusts-activity
terrancedejesus 6d25c0d
Merge branch 'main' into 437-new-rule-enumerating-domain-trusts-activity
terrancedejesus 34b2ad4
Merge branch 'main' into 437-new-rule-enumerating-domain-trusts-activity
w0rk3r 73f6753
Merge branch 'main' into 437-new-rule-enumerating-domain-trusts-activity
brokensound77 263c06f
Update rules/windows/discovery_enumerating_domain_trusts_via_nltest.toml
terrancedejesus 6be0ba7
Update rules/windows/discovery_enumerating_domain_trusts_via_nltest.toml
terrancedejesus b111603
Merge branch 'main' into 437-new-rule-enumerating-domain-trusts-activity
terrancedejesus cea370b
Update rules/windows/discovery_enumerating_domain_trusts_via_nltest.toml
terrancedejesus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
60 changes: 60 additions & 0 deletions
60
rules/windows/discovery_enumerating_domain_trusts_via_nltest.toml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
[metadata] | ||
creation_date = "2022/05/31" | ||
maturity = "production" | ||
updated_date = "2022/07/05" | ||
|
||
[rule] | ||
author = ["Elastic"] | ||
description = """ | ||
Identifies the use of nltest.exe for domain trust discovery purposes. Adversaries may use this command-line utility to | ||
enumerate domain trusts and gain insight into trust relationships, as well as the state of Domain Controller (DC) | ||
replication in a Microsoft Windows NT Domain. | ||
""" | ||
false_positives = [ | ||
""" | ||
Domain administrators may use this command-line utility for legitimate information gathering purposes, but it is not | ||
common for environments with Windows Server 2012 and newer. | ||
""", | ||
] | ||
from = "now-9m" | ||
index = ["winlogbeat-*", "logs-endpoint.events.*", "logs-windows.*"] | ||
language = "eql" | ||
license = "Elastic License v2" | ||
name = "Enumerating Domain Trusts via NLTEST.EXE" | ||
note = """## Config | ||
|
||
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. | ||
""" | ||
references = [ | ||
"https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/cc731935(v=ws.11)", | ||
"https://redcanary.com/blog/how-one-hospital-thwarted-a-ryuk-ransomware-outbreak/", | ||
] | ||
risk_score = 23 | ||
rule_id = "84da2554-e12a-11ec-b896-f661ea17fbcd" | ||
severity = "low" | ||
tags = ["Elastic", "Host", "Windows", "Threat Detection", "Discovery"] | ||
timestamp_override = "event.ingested" | ||
type = "eql" | ||
|
||
query = ''' | ||
process where event.type in ("start", "process_started") and | ||
process.name : "nltest.exe" and process.args : ( | ||
"/DCLIST:*", "/DCNAME:*", "/DSGET*", | ||
"/LSAQUERYFTI:*", "/PARENTDOMAIN", | ||
"/DOMAIN_TRUSTS", "/BDC_QUERY:*") | ||
''' | ||
|
||
|
||
[[rule.threat]] | ||
framework = "MITRE ATT&CK" | ||
[[rule.threat.technique]] | ||
id = "T1482" | ||
name = "Domain Trust Discovery" | ||
reference = "https://attack.mitre.org/techniques/T1482/" | ||
|
||
|
||
[rule.threat.tactic] | ||
id = "TA0007" | ||
name = "Discovery" | ||
reference = "https://attack.mitre.org/tactics/TA0007/" | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.