Join our Newsletter — 33% off our NHI Course
Threats, Abuse & Incident Response

Nltest

← Back to Glossary
By NHI Mgmt Group Updated October 17, 2026 Domain: Threats, Abuse & Incident Response

Nltest is a Windows diagnostic command for querying domain controller trust and secure channel information. Attackers use it to enumerate domains, controllers and trust relationships during internal reconnaissance. Defenders should watch for unusual trust queries and domain discovery from non-administrative accounts or endpoints.

What Nltest Does in Active Directory

Nltest is a Windows diagnostic utility used to query domain controller trust and secure channel information. It is most often discussed as a reconnaissance aid because it can reveal how an environment is organised and which trust paths exist between domains.

Although it is a legitimate administrative tool, its value to defenders and attackers comes from the same place: it can surface trust relationships, controller details, and other directory information that helps map the Windows domain fabric.

Why Nltest Matters for Internal Reconnaissance

Nltest is dangerous in the hands of an intruder because trust data shortens the path from initial foothold to meaningful domain understanding. Once an attacker can enumerate controllers and trust relationships, it becomes easier to choose targets for lateral movement, privilege escalation, or follow-on directory discovery.

The tool is especially useful in environments where normal administrative visibility is poor, because it can turn a single compromised endpoint into a source of topology intelligence. That makes it part of the broader class of living-off-the-land activity that blends into ordinary Windows administration, and it is directly covered in the Living off the Land Guide.

What Defenders Should Look For

The most useful signal is not simply that Nltest ran, but where and by whom it ran. Queries from non-administrative accounts, workstations that do not normally perform directory administration, or hosts outside the IT management plane deserve attention, especially when they are paired with other discovery commands.

Defenders should treat unusual trust enumeration as a discovery stage indicator and correlate it with logon context, parent process, and subsequent domain queries. ATT&CK-aligned hunting for MITRE ATT&CK Enterprise techniques helps place nltest activity in a wider attack sequence rather than viewing it as an isolated command.

Controlling and Monitoring Nltest Use

Because Nltest is a native utility, the practical control challenge is not blocking every invocation, but distinguishing legitimate administration from suspicious discovery. Tight administrative tiering, command-line auditing, and endpoint telemetry make that distinction far easier, especially when combined with baseline knowledge of which teams truly need the tool.

In defensive engineering terms, this fits the same least-privilege and verification mindset expressed by NIST Cybersecurity Framework 2.0 and NIST SP 800-207 Zero Trust Architecture, where access and discovery should be constrained to what is explicitly needed. For Windows hardening and detection engineering, NIST SP 800-53 Rev 5 Security and Privacy Controls also provides a control-oriented way to think about audit, access control, and configuration oversight.

Risk and Threat Considerations

Nltest is risky because it helps an attacker map trust boundaries and identify the domain relationships that often govern access and escalation. That reconnaissance can be a low-noise precursor to credential abuse, movement across trusted domains, or targeting of controllers and privileged administration paths.

Failure mechanism: An intruder abuses a legitimate Windows diagnostic command to collect directory topology data that defenders may not notice as hostile in time.

Impact: The resulting visibility can reduce the attacker’s uncertainty, improve targeting, and accelerate the transition from initial access to broader domain compromise.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

MITRE ATT&CK addresses the attack surface, NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the technical controls, and ISO/IEC 27001:2022 defines the regulatory obligations.

FrameworkControl / ReferenceRelevance
MITRE ATT&CKT1018 — Remote System DiscoveryNltest is used to discover domain controllers and trust relationships.
Recommendation — Hunt for remote system discovery patterns and correlate nltest with adjacent reconnaissance commands.
NIST CSF 2.0DE.CM-01 — Anomalies and Events Are Detected and AnalyzedSuspicious nltest use is an observable anomaly that should be monitored and analyzed.
Recommendation — Alert on unexpected trust-enumeration commands from non-administrative endpoints.
NIST SP 800-53 Rev 5AU-12 — Audit Record GenerationNltest activity should be captured in audit logs to support discovery detection and review.
AC-6 — Least PrivilegeRestrict who can run directory discovery utilities and where they can run.
Recommendation — Enable command-line and process auditing so nltest execution is recorded for investigation. Limit execution of directory discovery tools to approved administrative accounts and hosts.
ISO/IEC 27001:2022A.8.15 — LoggingSuspicious diagnostic-command use depends on reliable logging for detection and review.
Recommendation — Log and review directory-reconnaissance commands on domain-joined endpoints and servers.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 17, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org