Blocking NTLM without a complete inventory of what still depends on it is the most common way NTLM restriction projects break production. This guide is the task-level runbook for the audit phase: which audit settings to switch on, where the events land, how to trace a domain controller event back to the process on the client that caused it, and how to turn the findings into an owned, expiring exception list. It is written for Windows and Active Directory administrators and identity engineers who have already decided to restrict NTLM and now need to find every caller first. The strategy, Microsoft's roadmap and the enhanced 4020 to 4033 events are covered in the NTLM Deprecation and Elimination Guide; this page stays on the hands-on discovery work and does not repeat them.
Key takeaways
- Audit before you deny, every time. Microsoft's own guidance for every Restrict NTLM setting is to enable the audit value, review the NTLM Operational log, build exceptions, audit again, and only then block.
- Use two event families together. The Restrict NTLM audit events (8001, 8003, 8004) in the NTLM Operational log tell you who and where; Security log events 4624 and 4776 confirm the authentication package and version at scale.
- Trace from the domain controller outwards. Start at event 8004 on the domain controller, follow its secure channel name to the member server's 8003, then to the client's 8001, which names the calling process.
- Expect blind spots. Local account logons may never reach a domain controller, SMB traffic shows as PID 4 (SYSTEM), and logs wrap quickly unless you collect them centrally.
- Every exception needs an owner and an end date. The server exception lists take NetBIOS names with a wildcard, so treat each entry as a tracked risk acceptance, not a configuration detail.
What you are trying to find
An NTLM inventory answers four questions for every remaining NTLM authentication: which account authenticated, from which client, to which server, and which process on the client asked for it. Without the fourth answer you cannot fix the cause, because the fix is usually on the client: an application connecting by IP address, a missing Service Principal Name (SPN, the name Kerberos uses to find a service), a hard-coded NTLM call, or a local account. The Microsoft AskDS methodology lists IP-address targets and missing SPNs among the most frequent causes and notes that local logons still use NTLM even when NTLM is blocked by policy.
Non-human identities usually dominate the result. Service accounts, scheduled tasks, scanners, backup agents, printers and multifunction devices, and computer accounts authenticate constantly and nobody notices when they fall back to NTLM. Plan from the start to classify each finding as human or non-human and to give non-human callers a named application owner. See the Service Account Security Guide.
The audit settings to switch on
All the Restrict NTLM settings live under Computer Configuration > Policies > Windows Settings > Security Settings > Local Policies > Security Options. Their default is Not defined, which behaves as allow, and Microsoft documents that changes take effect without a restart, so rollback is simply a policy change and a Group Policy refresh. The AskDS methodology recommends deploying all three audit settings together.
| Setting (Security Options) | Audit value to use | Apply to | What it records |
|---|---|---|---|
| Network security: Restrict NTLM: Outgoing NTLM traffic to remote servers | Audit all | All computers (clients and servers) | Each NTLM request this computer sends to a remote server |
| Network security: Restrict NTLM: Audit Incoming NTLM Traffic | Enable auditing for all accounts | All computers | NTLM requests this computer receives |
| Network security: Restrict NTLM: Audit NTLM authentication in this domain | Enable all | Domain controllers only (Default Domain Controllers Policy or a GPO on the Domain Controllers OU) | NTLM pass-through authentication the domain controller handles that the matching deny setting would block |
The domain audit setting also has narrower values (Enable for domain accounts to domain servers, Enable for domain accounts, Enable for domain servers) that mirror the deny options of Restrict NTLM: NTLM authentication in this domain. Start with Enable all; use the narrower values only when you later stage the block in the same shape. A domain controller logs only the traffic it handles itself, so the setting must reach every domain controller in every domain you are assessing.
Alongside these, enable the Advanced Audit Policy subcategories Audit Logon (event 4624, on member servers and clients) and Audit Credential Validation (event 4776, on domain controllers) if they are not already on. Where your estate runs Windows 11 24H2 or Windows Server 2025, or Server 2019 and 2022 with the updates Microsoft lists from 13 October 2026, the enhanced NTLM Enhanced Logging and Log Enhanced Domain-wide NTLM Logs policies add richer events; read their Reason IDs with the NTLM Deprecation and Elimination Guide. The legacy audit events below remain the common denominator across mixed estates.
Reading the events
The Restrict NTLM audit and block events are written to Applications and Services Logs > Microsoft > Windows > NTLM > Operational (channel Microsoft-Windows-NTLM/Operational). Microsoft notes that no Security log audit policy shows this output, so your collector must subscribe to that channel explicitly.
| Event | Log | Logged on | Fields that matter | Question it answers |
|---|---|---|---|---|
| 8004 | NTLM Operational | Domain controller | Secure Channel name, Secure Channel type, User name, Domain name, Workstation name | Which account, from which client, through which server |
| 8003 | NTLM Operational | Member server receiving the request | User, Domain, Workstation, PID, Process, Logon type, Mechanism | Which service on the server accepted NTLM |
| 8001 | NTLM Operational | Client sending the request | Target server, Supplied user, Supplied domain, PID and name of client process, User identity of client process | Which process on the client asked for NTLM, and to which target name |
| 4624 | Security | Destination computer | Authentication Package, Package Name (NTLM only), Key Length, Logon Type, Workstation Name, Source Network Address | Was the logon NTLM, which version, and from where |
| 4776 | Security | Computer authoritative for the account (domain controller for domain accounts) | Logon Account, Source Workstation, Error Code | Which accounts are validated with NTLM, including computer accounts |
Three details change how you read them:
- Package Name (NTLM only): on 4624 this shows NTLM V1, NTLM V2 or LM. Anything other than NTLM V2 is a priority finding; Microsoft's 4624 guidance also flags NTLM Key Length other than 128.
- Source only on 4776: event 4776 shows the source workstation but not the destination, so it tells you which accounts use NTLM but not which server they reach. Pair it with 8004 or 4624.
- Local accounts: a local account authenticating to a file server may produce no 8004 at all, because the domain controller is never involved. Only 4624 and 8003 on the server will show it.
Step by step: from audit to an owned inventory
- Prepare collection. Subscribe your SIEM or Windows Event Forwarding to the NTLM Operational channel on domain controllers and servers, and to 4624 and 4776 in the Security log. Enlarge the NTLM Operational log on busy servers, as the AskDS methodology advises, so it does not wrap before collection.
- Pilot the audit settings. Apply the three audit settings to one domain controller, a handful of member servers and a pilot client ring. Check that 8004, 8003 and 8001 events arrive centrally and that log volume is acceptable.
- Extend to the whole estate. Roll the settings out to all domain controllers and computers. Collect for at least one full business cycle, including month end, quarter end and any annual batch runs, because many NTLM callers run rarely.
- Group the domain controller view. Aggregate 8004 by user name, workstation name and secure channel name. This gives you the account-to-server pairs, ranked by volume.
- Follow each pair to the server. On the server named in the secure channel, match 8003 events by time, user and workstation. If the PID is 4 (SYSTEM), the request came through kernel mode, typically SMB, and the server cannot name the process.
- Find the calling process on the client. Match 8001 on the client named as the workstation. Record the client process name and the target server string. A target that is an IP address, a CNAME alias or a short name without a registered SPN explains most fallbacks.
- Resolve PID 4 cases. Where the client event still points to the kernel, the AskDS methodology uses Process Monitor on the client, filtered on the server's name and IP address, correlating timestamps and logon IDs with 8001. Drive mappings by IP address and scripts using UNC paths with IP addresses are frequent results.
- Cross-check with the Security log. Query 4624 where Authentication Package is NTLM, grouped by Workstation Name, target computer, account and Package Name, to catch anything the operational log missed (for example local accounts and non-domain devices).
- Record each finding in a register. One row per caller: account, account type (human, service, computer, device), client, process, target, NTLM version, cause, fix, owner and target date.
- Fix, then re-audit. Apply fixes (register SPNs, change targets from IP to the SPN-valid name, move services to Kerberos, retire devices) and keep auditing until each register row stops appearing.
Classifying what you find
| Pattern in the events | Likely cause | Typical fix |
|---|---|---|
| 8001 target is an IP address | Kerberos needs a name that maps to an SPN; IP targets fall back to NTLM | Point the application, mapping or script at the host name; see the Kerberos vs NTLM guide |
| 8001 target is an alias or a load balancer name | No SPN registered for that name on the service account | Register the SPN on the account that runs the service, check for duplicates |
| 4624 with Package Name NTLM V1 or LM | Legacy client or device, or a weak LAN Manager authentication level | Upgrade or isolate the device, raise the authentication level after testing |
| 8003 or 4624 with a local account, no 8004 | Local account logon to the server | Replace with a domain or managed service account, or accept a scoped exception |
| Same service account across many clients | Application coded to request NTLM directly, or a scanner or backup tool | Vendor configuration change or upgrade; move to a Group Managed Service Accounts (gMSA) account where supported |
| Printers, scanners, appliances in 4776 and 8004 | Embedded firmware that only supports NTLM | Firmware upgrade, Kerberos configuration on the device, or exception with network isolation; see Printer and MFD Service Accounts |
Building the exception lists
Two settings hold exceptions. Network security: Restrict NTLM: Add remote server exceptions for NTLM authentication lists servers a client may still use NTLM with when outgoing traffic is set to Deny all. Network security: Restrict NTLM: Add server exceptions in this domain lists servers allowed NTLM pass-through when a deny option of the domain setting is active; Microsoft notes it has no effect unless a deny option is set. Both take NetBIOS server names, one per line, and a single asterisk can be used anywhere in a string as a wildcard. Microsoft's guidance is that the names used by all applications must be in the list, so record the exact target string from 8001, not the name you expect.
- Keep wildcards narrow: a pattern such as APPSRV* (sample value) silently covers servers built later. Prefer exact names and review every wildcard in the register.
- Attach a control: traffic to an excepted server stays exposed to NTLM weaknesses, as Microsoft's page states, so pair each exception with SMB signing, Extended Protection for Authentication or network isolation as the service allows. See the NTLM Relay Guide.
- Re-audit after setting the list: Microsoft's documented sequence is audit, set exceptions, audit again, then block.
- Expire entries: give each exception an end date in the register and review it at least quarterly.
Decision guidance
- Legacy events or enhanced events: on Windows 11 24H2 and Windows Server 2025 the enhanced events give process, target and a Reason ID in one record, which saves most of the tracing above. In mixed estates run both, and use the legacy chain for older systems.
- Audit in test or production: the AskDS methodology advises auditing in a test environment only if every application is inventoried there; otherwise audit in production, which is safe because audit values block nothing.
- Small organisations: one domain, a few servers and a single collector; you can often complete discovery within one business cycle and go straight to per-server blocking.
- Large organisations: multiple domains and forests, appliances and third-party applications. Expect a long audit tail (the AskDS author expected at least six months of testing in a complex environment) and stage blocking by domain, by server tier and by account type.
- Which direction to block first: incoming restrictions on a few high-value servers are easier to contain than outgoing Deny all on every client, because the blast radius is one service.
Detection and measurement
The audit data doubles as detection. NTLM V1 or LM in 4624, NTLM from an account that normally uses Kerberos, and NTLM to domain controllers or tier 0 servers from unusual workstations are all worth alerting on; the Kerberos and NTLM Event Detection Guide covers the detections in depth. Treat the NTLM Operational log as sensitive: Microsoft notes it reveals which devices still use NTLM, which helps an attacker plan relay (ATT&CK T1557.001 Name Resolution Poisoning and SMB Relay) or pass the hash (T1550.002).
- Coverage: percentage of domain controllers and servers sending NTLM Operational events to the collector (target 100%).
- Distinct callers: count of unique account, client and target combinations using NTLM per week, trending down.
- Attribution rate: share of register rows with a named client process and owner.
- Legacy versions: count of NTLM V1 and LM logons in 4624 (target zero).
- Exception debt: number of active exceptions and number past their end date.
- Non-human share: proportion of NTLM callers that are service, computer or device accounts, to focus effort.
Common failure patterns
- Auditing on some domain controllers only: each domain controller logs only its own traffic, so partial coverage produces a falsely short list.
- Auditing for two weeks: quarterly jobs, year-end processes and rarely used admin tools never appear and break after the block.
- Stopping at the server: listing servers that receive NTLM without finding the client process leaves nothing anyone can fix, especially where every 8003 shows PID 4.
- Trusting 8004 alone: local account logons to member servers never reach the domain controller.
- Exception names that do not match: FQDNs or IP addresses in a list documented for NetBIOS names, or the expected name rather than the string the application actually uses.
- Losing events to log wrap: default log sizes on busy file servers can overwrite NTLM events between collection runs.
Framework mapping
| Framework | Reference | How this work supports it |
|---|---|---|
| NIST CSF 2.0 | ID.AM-02, PR.AA-01, DE.CM-01 | Inventory of services using legacy authentication, managed credentials for services, monitoring of network authentication |
| NIST SP 800-53 Rev 5 | AU-2, AU-12, AU-6, IA-2, CM-7 | Event logging and generation, review of audit records, authentication, removal of unneeded protocols |
| ISO/IEC 27001:2022 Annex A | A.8.5 Secure authentication, A.8.15 Logging | Moving to stronger authentication and keeping the evidence trail |
| CIS Controls v8.1 | 8.2 Collect audit logs | Central collection of the NTLM Operational and Security logs |
| MITRE ATT&CK | T1557.001, T1550.002, T1187 | NTLM relay, pass the hash and forced authentication all rely on NTLM remaining available |
Practitioner checklist
- Subscribe the collector to Microsoft-Windows-NTLM/Operational on every domain controller and server, plus Security events 4624 and 4776.
- Set Audit NTLM authentication in this domain to Enable all on every domain controller.
- Set Outgoing NTLM traffic to remote servers to Audit all and Audit Incoming NTLM Traffic to Enable auditing for all accounts on all computers.
- Turn on the enhanced NTLM logging policies wherever the operating system supports them.
- Collect for at least one full business cycle before deciding anything.
- Trace each 8004 through 8003 to 8001 and record the client process and target string.
- Resolve PID 4 cases with Process Monitor on the client.
- Keep a register with owner, cause, fix and date for every caller, human and non-human.
- Add exceptions as exact NetBIOS names with an end date and a compensating control, then audit again before any deny.
Standards and references
- Microsoft Learn: Viewing events for assessing NTLM usage
- Microsoft Learn: Network security: Restrict NTLM: Audit NTLM authentication in this domain
- Microsoft Learn: Network security: Restrict NTLM: Outgoing NTLM traffic to remote servers
- Microsoft Learn: Network security: Restrict NTLM: Add server exceptions in this domain
- Microsoft Support: Overview of NTLM auditing enhancements in Windows 11, version 24H2, Windows Server 2019, and later versions
- Microsoft Tech Community (AskDS): NTLM blocking and you, application analysis and auditing methodologies
- Microsoft Learn: 4624(S) An account was successfully logged on
- Microsoft Learn: 4776(S, F) The computer attempted to validate the credentials for an account
Related NHI Mgmt Group resources: NTLM Deprecation and Elimination Guide · Kerberos and NTLM Event Detection Guide · NTLM Relay Guide · Windows Services and Service Account Security Guide