NLTEST.EXE Used for Domain Trust Discovery
Adversaries may use `nltest.exe` to enumerate domain trusts, gaining insight into trust relationships and the state of Domain Controller replication within a Windows NT Domain, potentially leading to lateral movement.
The nltest.exe utility is a command-line tool used for managing and troubleshooting Windows NT Domains. While legitimate domain administrators may occasionally use nltest.exe for information gathering, adversaries can leverage it to enumerate domain trusts and understand trust relationships within a target environment. This information can be critical for planning subsequent attack stages, such as lateral movement. This activity is most relevant in environments with older Windows Server versions (pre-2012), as newer systems have alternative tools. The activity can also be indicative of attackers trying to identify ways to move laterally within the network or gain access to sensitive resources.
Attack Chain
- The adversary gains initial access to a compromised host within the target network.
- The attacker executes
nltest.exewith specific arguments to enumerate domain trusts. Example arguments include/DOMAIN_TRUSTS,/PARENTDOMAIN, and/DCLIST. nltest.exequeries the Active Directory domain controller for information about trust relationships.- The domain controller responds with a list of trusted domains and their attributes.
- The attacker parses the output of
nltest.exeto identify potential targets for lateral movement. - The attacker uses discovered trust relationships to attempt authentication or access resources in other domains.
- If successful, the attacker moves laterally to other systems within the trusted domains.
- The ultimate goal is to gain access to sensitive data, escalate privileges, or disrupt services.
Impact
Successful enumeration of domain trusts can provide attackers with valuable information about the network topology and trust relationships, enabling them to move laterally within the environment. This can lead to unauthorized access to sensitive data, privilege escalation, and potential disruption of critical services. The impact is amplified in environments with complex trust configurations or older Windows Server versions, where nltest.exe remains a relevant tool for domain management.
Recommendation
- Monitor process creation events for
nltest.exewith command-line arguments related to domain trust discovery (e.g.,/DOMAIN_TRUSTS,/PARENTDOMAIN,/DCLIST) using the Sigma rule "Detect Suspicious NLTEST Execution for Domain Trust Discovery". - Investigate any instances of
nltest.exeexecution originating from unusual or non-administrative user accounts. - Audit and review existing domain trust configurations to identify and remediate any overly permissive trust relationships.
- Consider disabling or restricting the use of
nltest.exeon non-administrative workstations where it is not required. - Enable Windows Security Event Logging, Sysmon or other endpoint detection to capture process creation events and command-line arguments for effective detection.
Detection coverage 2
Detect Suspicious NLTEST Execution for Domain Trust Discovery
mediumDetects the execution of `nltest.exe` with command-line arguments indicative of domain trust discovery activities.
Detect Suspicious NLTEST Execution for Domain Trust Discovery via Sysmon
mediumDetects the execution of `nltest.exe` with command-line arguments indicative of domain trust discovery activities using Sysmon.
Detection queries are available on the platform. Get full rules →