-
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
[New Rule] Domain Trust Enumeration via Nltest #2010
terrancedejesus
merged 14 commits into
main
from
437-new-rule-enumerating-domain-trusts-activity
Jul 5, 2022
Conversation
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
rules/windows/discovery_enumerating_domain_trusts_via_nltest.toml
Outdated
Show resolved
Hide resolved
terrancedejesus
commented
Jun 14, 2022
rules/windows/discovery_enumerating_domain_trusts_via_nltest.toml
Outdated
Show resolved
Hide resolved
Mikaayenson
reviewed
Jun 17, 2022
w0rk3r
approved these changes
Jun 20, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
rules/windows/discovery_enumerating_domain_trusts_via_nltest.toml
Outdated
Show resolved
Hide resolved
rules/windows/discovery_enumerating_domain_trusts_via_nltest.toml
Outdated
Show resolved
Hide resolved
Samirbous
approved these changes
Jun 24, 2022
Mikaayenson
approved these changes
Jul 1, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Co-authored-by: Jonhnathan <[email protected]>
terrancedejesus
commented
Jul 5, 2022
rules/windows/discovery_enumerating_domain_trusts_via_nltest.toml
Outdated
Show resolved
Hide resolved
protectionsmachine
pushed a commit
that referenced
this pull request
Jul 5, 2022
* 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)
protectionsmachine
pushed a commit
that referenced
this pull request
Jul 5, 2022
* 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)
protectionsmachine
pushed a commit
that referenced
this pull request
Jul 5, 2022
* 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)
protectionsmachine
pushed a commit
that referenced
this pull request
Jul 5, 2022
* 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)
protectionsmachine
pushed a commit
that referenced
this pull request
Jul 5, 2022
* 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)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
backport: auto
Domain: Endpoint
OS: Windows
windows related rules
Rule: New
Proposal for new rule
v8.4.0
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.
Issues
Summary
This rule detects the use of command-line utility
nltest.exe
as a child process ofcmd.exe
where arguments provided suggest domain trust enumeration. This technique has been observed in a Ryuk ransomware investigation as referenced below.domain_trusts argument
parentdomain argument
dcname:DCNAME argument
References
https://redcanary.com/blog/how-one-hospital-thwarted-a-ryuk-ransomware-outbreak/
https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/cc731935(v=ws.11)
Contributor checklist