Skip to content
WETNav

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.

Worst caseMedium

Switches

/domain_trusts

Lists the domains this computer trusts. /all_trusts includes indirect trusts.

Medium
/all_trusts

Used with /domain_trusts to include all trusts.

Medium
/dclist

Lists the domain controllers for a domain.

Medium
/dsgetdc

Finds a domain controller for a domain and shows its details.

Low
/sc_query

Shows the status of the secure channel to the domain.

Low
/parentdomain

Shows the parent domain of this computer.

Low

Command lines to worry about

  • Medium

    Domain trust discovery

    Maps trust relationships between domains. Rare on workstations outside of admin work.

    Detection regexnltest(\.exe)?\s+.*\/(domain_trusts|all_trusts)\b

    T1482

  • Medium

    Domain controller discovery

    Lists domain controllers. Often seen before credential access aimed at a DC.

    Detection regexnltest(\.exe)?\s+.*\/dclist\b

    T1018

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.

Rules from SigmaHQ (rules/windows/process_creation), Detection Rule License (DRL) 1.1. Each rule links to its source and credits its authors.