Discovery · Windows
nltest.exe
nltest
Queries domain controllers, trusts and secure channels. Trust and DC enumeration with nltest is a common step in ransomware and intrusion playbooks.
Legitimate use
Admins use it to test secure channels and locate domain controllers.
Switches
Lists the domains this computer trusts. /all_trusts includes indirect trusts.
MediumUsed with /domain_trusts to include all trusts.
MediumLists the domain controllers for a domain.
MediumFinds a domain controller for a domain and shows its details.
LowShows the status of the secure channel to the domain.
LowShows the parent domain of this computer.
LowCommand lines to worry about
- Medium
Domain trust discovery
Maps trust relationships between domains. Rare on workstations outside of admin work.
Detection regex
nltest(\.exe)?\s+.*\/(domain_trusts|all_trusts)\b - Medium
Domain controller discovery
Lists domain controllers. Often seen before credential access aimed at a DC.
Detection regex
nltest(\.exe)?\s+.*\/dclist\b
Where it is recorded
- Security4688Process creation with the full command line, when command-line auditing is enabled.
- Sysmon1Process creation with command line, hashes and parent process.
Community detections
9 SigmaHQ rules for nltest.exe. The explainer checks every pasted command line against all of them.
- CriticalSuspicious Child Process Of Veeam Dabatase
Detects suspicious child processes of the Veeam service process. This could indicate potential RCE or SQL Injection.
by Nasreddine Bencherchali (Nextron Systems)
- HighPotentially Suspicious Child Process Of Regsvr32
Detects potentially suspicious child processes of "regsvr32.exe".
T1218.010by elhoim, Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)
- HighSuspicious Child Process Of SQL Server
Detects suspicious child processes of the SQLServer process. This could indicate potential RCE or SQL Injection.
T1505.003T1190by FPT.EagleEye Team, wagga
- HighSuspicious Process By Web Server Process
Detects potentially suspicious processes being spawned by a web server process which could be the result of a successfully placed web shell or exploitation
T1505.003T1190by Thomas Patzke, Florian Roth (Nextron Systems), Zach Stanford @svch0st, Tim Shelton, Nasreddine Bencherchali (Nextron Systems)
- HighSuspicious Spool Service Child Process
Detects suspicious print spool service (spoolsv.exe) child processes.
T1203T1068by Justin C. (@endisphotic), @dreadphones (detection), Thomas Patzke (Sigma rule)
- MediumPotential Recon Activity Via Nltest.EXE
Detects nltest commands that can be used for information discovery
T1016T1482by Craig Young, oscd.community, Georg Lauenstein
- MediumPotentially Suspicious Child Process Of ClickOnce Application
Detects potentially suspicious child processes of a ClickOnce deployment application
by Nasreddine Bencherchali (Nextron Systems)
- MediumRemote Access Tool - ScreenConnect Potential Suspicious Remote Command Execution
Detects potentially suspicious child processes launched via the ScreenConnect client service.
T1219.002by Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems), @Kostastsale
- LowNltest.EXE Execution
Detects nltest commands that can be used for information discovery
T1016T1018T1482by Arun Chauhan
Rules from SigmaHQ (rules/windows/process_creation), Detection Rule License (DRL) 1.1. Each rule links to its source and credits its authors.