From 720f26cc2dcbcbb418c3e3f4a28b809cf35b22bc Mon Sep 17 00:00:00 2001 From: root Date: Tue, 26 Jan 2021 17:13:39 +0000 Subject: [PATCH] Added detection testing service results inNLTest Domain Trust Discovery --- .../nltest_domain_trust_discovery.yml | 52 ++++++++++--------- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/detections/endpoint/nltest_domain_trust_discovery.yml b/detections/endpoint/nltest_domain_trust_discovery.yml index b926da84a2..05b3db139b 100644 --- a/detections/endpoint/nltest_domain_trust_discovery.yml +++ b/detections/endpoint/nltest_domain_trust_discovery.yml @@ -2,44 +2,46 @@ name: NLTest Domain Trust Discovery id: c3e05466-5f22-11eb-ae93-0242ac130002 version: 1 date: '2021-01-25' -description: "This search looks for the execution of `nltest.exe` with command-line arguments utilized to query for Domain Trust information. - Two arguments `/domain trusts`, returns a list of trusted domains, and `/all_trusts`, returns all trusted domains. - Red Teams and adversaries alike use NLTest.exe to enumerate the current domain to assist with further understanding where to pivot next." +description: This search looks for the execution of `nltest.exe` with command-line + arguments utilized to query for Domain Trust information. Two arguments `/domain + trusts`, returns a list of trusted domains, and `/all_trusts`, returns all trusted + domains. Red Teams and adversaries alike use NLTest.exe to enumerate the current + domain to assist with further understanding where to pivot next. how_to_implement: To successfully implement this search you need to be ingesting information on process that include the name of the process responsible for the changes from your endpoints into the `Endpoint` datamodel in the `Processes` node. type: ESCU references: - - https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1482/T1482.md - - https://malware.news/t/lets-learn-trickbot-implements-network-collector-module-leveraging-cmd-wmi-ldap/19104 - - https://attack.mitre.org/techniques/T1482/ - - https://www.owasp.org/images/4/4b/Red_Team_Operating_in_a_Modern_Environment.pdf - - https://ss64.com/nt/nltest.html - - https://redcanary.com/threat-detection-report/techniques/domain-trust-discovery/ - - https://thedfirreport.com/2020/10/08/ryuks-return/ +- https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1482/T1482.md +- https://malware.news/t/lets-learn-trickbot-implements-network-collector-module-leveraging-cmd-wmi-ldap/19104 +- https://attack.mitre.org/techniques/T1482/ +- https://www.owasp.org/images/4/4b/Red_Team_Operating_in_a_Modern_Environment.pdf +- https://ss64.com/nt/nltest.html +- https://redcanary.com/threat-detection-report/techniques/domain-trust-discovery/ +- https://thedfirreport.com/2020/10/08/ryuks-return/ author: Michael Haag, Splunk search: '| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) - as lastTime from datamodel=Endpoint.Processes where (Processes.process_name=nltest.exe OR Processes.process_name!=nltest.exe) (Processes.process=*/domain_trusts* OR Processes.process=*/all_trusts*) - by Processes.dest Processes.user Processes.parent_process Processes.process_name Processes.process - Processes.process_id Processes.parent_process_id - | `drop_dm_object_name(Processes)` - | `security_content_ctime(firstTime)` - | `security_content_ctime(lastTime)` - | `nltest_domain_trust_discovery_filter`' -known_false_positives: Administrators may use nltest for troubleshooting purposes, otherwise, rarely used. + as lastTime from datamodel=Endpoint.Processes where (Processes.process_name=nltest.exe + OR Processes.process_name!=nltest.exe) (Processes.process=*/domain_trusts* OR Processes.process=*/all_trusts*) + by Processes.dest Processes.user Processes.parent_process Processes.process_name + Processes.process Processes.process_id Processes.parent_process_id | `drop_dm_object_name(Processes)` + | `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)` | `nltest_domain_trust_discovery_filter`' +known_false_positives: Administrators may use nltest for troubleshooting purposes, + otherwise, rarely used. tags: analytics_story: - - Ryuk Ransomware + - Ryuk Ransomware mitre_attack_id: - - T1482 + - T1482 kill_chain_phases: - - Exploitation + - Exploitation cis20: - - CIS 8 + - CIS 8 nist: - - PR.PT - - DE.CM + - PR.PT + - DE.CM security_domain: endpoint asset_type: Endpoint dataset: - - https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1482/atomic_red_team/windows-sysmon.log + - https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1482/atomic_red_team/windows-sysmon.log + automated_detection_testing: passed