When it is written
Enhanced NTLM auditing writes a client event for every outgoing NTLM authentication, on the computer that sends it, whatever its role. Microsoft splits each such audit into two event IDs with the same fields that differ only in level: 4020 (Information) when no reduction in security is detected, and 4021 (Warning) when Windows sees a downgrade of NTLM security. Microsoft's examples of a downgrade: NTLMv1 was used, Extended Protection for Authentication was marked as not supported or insecure, or an NTLM security feature such as the message integrity check (MIC) was not used.
The client event is the only one with a reason: Reason ID and Reason say why NTLM was used instead of Kerberos, for example because the target name was an IP address, could not be resolved, or no domain controller could be reached. It also names the process that sent the authentication, the account, whether the account's own sign-in or explicitly supplied credentials were used, and the target.
The event exists on Windows 11 version 24H2 and later and Windows Server 2025, and on Windows Server 2022 and 2019 with the Windows updates released on or after October 13, 2026. It is on by default and controlled by the NTLM Enhanced Logging policy (Administrative Templates > System > NTLM). No detection rule of the library reads it: it is the sending side of the authentications that the server event 4023 and the domain controller events 4031 and 4033 record.
How to turn it on
Microsoft-Windows-NTLM writes the event to the NTLM operational log (Event Viewer > Applications and Services Logs > Microsoft > Windows > NTLM > Operational), which is on by default. Microsoft
The log itself is on by default. What Windows writes to it depends on two sets of policies.
Enhanced NTLM auditing exists on Windows 11 version 24H2 and later and Windows Server 2025, and on Windows Server 2022 and 2019 with the Windows updates released on or after October 13, 2026. It writes an event for each NTLM authentication: 4020 and 4021 on the client that sends it, 4022 and 4023 on the computer that receives it, and on domain controllers 4030 to 4033 for the authentications they process for the domain. Each audit comes as two event IDs with the same fields: an Information one, and a Warning one when Windows sees a downgrade of NTLM security such as NTLMv1, Extended Protection for Authentication marked as not supported or insecure, or no message integrity check. Microsoft says these events are enabled by default. Two Administrative Templates policies control them: NTLM Enhanced Logging (System > NTLM) for the client and server events, and Log Enhanced Domain-wide NTLM Logs (System > Netlogon) for the domain controller events. Enhanced auditing does not change the older audit events below.
The Restrict NTLM audit policies (Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options) write the older audit events, and only where they are set; none of them audits by default. Network security: Restrict NTLM: Audit NTLM authentication in this domain on domain controllers writes event 8004; its Enable all option logs all incoming NTLM traffic of the domain controller, and it takes effect without a restart. Network security: Restrict NTLM: Audit Incoming NTLM Traffic makes a server log the incoming NTLM authentications the matching deny option would block, and Network security: Restrict NTLM: Outgoing NTLM traffic to remote servers set to Audit all makes a client log each NTLM authentication it sends to a remote server. Microsoft advises watching the size of the log while these policies are on: wevtutil gl shows the maximum size (maxSize, in bytes) and wevtutil sl "Microsoft-Windows-NTLM/Operational" /ms:<bytes> changes it.
wevtutil gl "Microsoft-Windows-NTLM/Operational"wevtutil qe "Microsoft-Windows-NTLM/Operational" /c:5 /rd:true /f:textFields
In Event Viewer order. The field names are those of the event XML, from the event template that ships with Windows.
| Field | What it holds | Since |
|---|---|---|
Process NameProcessNameProcess Information | Process on this computer that sent the NTLM authentication (Process Name). On a Windows 11 test computer it held the image name without path or extension, with the service name for a shared service host, such as svchost (EventLog). | v0 |
Process PIDProcessPIDProcess Information | Process ID of that process, in hexadecimal (Process PID). | v0 |
UsernameClient Information | Account whose credentials were sent (Username). Computer accounts end with $. | v0 |
DomainDomainNameClient Information | Domain of that account (Domain). | v0 |
HostnameClient Information | Host name recorded for the client (Hostname), under Client Information. Microsoft's example shows the label without describing it; it is normally this computer. | v0 |
Sign-On TypeSingleSignOnClient Information | How the credentials were obtained (Sign-On Type): Single Sign-On for the credentials of the process's own sign-in session, or explicitly supplied credentials. Microsoft's example writes Supplied Creds; a Windows 11 test computer wrote Supplied Credentials. | v0 |
Target MachineTargetMachineTarget Information | Computer the authentication was sent to (Target Machine), as the client recorded it. | v0 |
Target DomainTargetDomainTarget Information | Domain of that computer (Target Domain). | v0 |
Target ResourceTargetServiceTarget Information | Service principal name of the target (Target Resource), for example HTTP/app01.corp.example.com. When it holds an IP address instead of a name, Kerberos could not be used. | v0 |
Target IPTargetIPTarget Information | Network address of the target (Target IP). It read Null on a Windows 11 test computer, so do not rely on it being filled. | v0 |
Target Network NameTargetNetworkNameTarget Information | Network name of the target (Target Network Name). Microsoft's example shows the label without describing it; it read Null on a Windows 11 test computer. | v0 |
Reason IDNtlmUsageIdNTLM Usage | Why NTLM was used, as a number (Reason ID). KB5064479 lists 0 (unknown) to 11; 3 is reserved. On a Windows 11 test computer the number did not always match the text of the next field, so read both. | v0 |
ReasonNtlmUsageReasonNTLM Usage | The reason as text (Reason), for example The target name contains an IP address. | v0 |
Negotiated FlagsNegotiatedFlagsNTLM Security | NTLM negotiate flags agreed for the authentication, in hexadecimal (the NEGOTIATE flags of MS-NLMP). | v0 |
NTLM VersionNtlmVersionNTLM Security | NTLMv2 or NTLMv1 (NTLM Version). NTLMv1 is one reason for the Warning ID. | v0 |
Session Key StatusSessionKeyStatusNTLM Security | Present or Missing (Session Key Status): whether the authentication produced a session key. | v0 |
Channel BindingChannelBindingStatusNTLM Security | Supported or Not Supported (Channel Binding): whether the authentication carried channel binding, which ties it to the TLS connection it runs over. | v0 |
Service BindingServiceBindingNTLM Security | Service principal name the authentication was bound to (Service Binding). It normally names the same service as Target Resource. | v0 |
MIC StatusMic StatusNTLM Security | Protected or Unprotected (MIC Status): whether a message integrity check protected the NTLM messages. A missing MIC is one reason for the Warning ID. | v0 |
AvFlagsAvlFlagsNTLM Security | MsvAvFlags value of the authentication, in hexadecimal (shown as AvFlags). MS-NLMP defines 0x1 (account authentication is constrained), 0x2 (a MIC is provided) and 0x4 (the target name came from an untrusted source). | v0 |
AvFlags StringAvlFlagsStrNTLM Security | The same flags as text (AvFlags String), such as MIC Provided on a Windows 11 test computer. Microsoft does not document its wording. | v0 |
Values to know
Reason ID NtlmUsageId
| Value | Meaning | Signal |
|---|---|---|
1 | NTLM was called directly by the calling applicationThe application asks for NTLM instead of Negotiate. Only the application's own configuration or an update changes it. | Worth knowing |
2 | Authenticating a local accountThe account belongs to a computer and not to the domain. | Expected |
5 | The target name was missing or empty | Worth knowing |
6 | The target name could not be resolved by Kerberos or other protocolsOften a missing service principal name for the target. | Worth knowing |
7 | The target name contains an IP addressConnecting by name instead of by address lets Kerberos be used. | Noise |
8 | The target name was found to have been duplicated in Active DirectoryA duplicate service principal name keeps Kerberos from working for that name. | Worth knowing |
9 | No line of sight could be established with a domain controller | Worth knowing |
10 | NTLM was called via a loopback interface | Noise |
11 | NTLM was called with a null session | Worth knowing |
NTLM Version NtlmVersion
| Value | Meaning | Signal |
|---|---|---|
NTLMv1 | NTLM version 1A legacy protocol Microsoft deprecated in June 2024 and removed starting with Windows 11, version 24H2 and Windows Server 2025, and one reason for the Warning ID. Here the computer itself sent it, so expect the value from the Windows Server 2022 and 2019 computers that write this event rather than from the versions without NTLMv1: find the setting or application that makes it do so. | Attack signal |
NTLMv2 | NTLM version 2In a 4021 the downgrade is elsewhere. Read Channel Binding and MIC Status. | Expected |
Sign-On Type SingleSignOn
| Value | Meaning | Signal |
|---|---|---|
Single Sign-On | The process used the credentials of its own sign-in session | Expected |
Supplied Credentials | The process was given credentials explicitlyMicrosoft's example writes Supplied Creds; a Windows 11 test computer wrote Supplied Credentials. Compare the account with the account of the session the process runs in. | Worth knowing |
MIC Status Mic Status
| Value | Meaning | Signal |
|---|---|---|
Protected | The authentication carried a message integrity check | Expected |
Unprotected | No message integrity checkThe NTLM messages were not protected against being changed on the way. A reason for the Warning ID. | Worth knowing |
Volume and noise
Each event is an NTLM authentication this computer sent with weakened security, so the volume follows how many of its applications still rely on NTLM in that form. They repeat with the same process, target and reason, which makes them easy to group. Applications that call NTLM directly, connections to a server by IP address and local accounts are reasons Microsoft lists for NTLM being used at all; whether the event is a Warning depends on the security of the authentication, not on the reason.
Keeping it manageable
- No rule reads 4020 or 4021. Collect them where they answer questions: from administrative workstations and servers, or on demand from the client named by a server's 4023 or a domain controller's 4033, to find the process behind the authentication.
- Group the events by
ProcessName,TargetMachineandNtlmUsageReasonand work through the groups: the reason says what to fix (a connection by IP address, a target name Kerberos cannot resolve, a name duplicated in Active Directory). - Read the
NtlmUsageReasontext rather than onlyNtlmUsageId: on a Windows 11 test computer the two did not always match Microsoft's table. - Where volume is the limit, keep the Warning events only, with an XPath filter, here in the form of an Azure Monitor data collection rule (a Windows Event Forwarding subscription takes the expression after the
!in aSelectof that log):Microsoft-Windows-NTLM/Operational!*[System[(EventID=4021)]].
Sample event
Version 0, with made-up values.
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-NTLM" Guid="{ac43300d-5fcc-4800-8e99-1bd3f85f0320}" />
<EventID>4021</EventID>
<Version>0</Version>
<Level>3</Level>
<Task>2</Task>
<Opcode>0</Opcode>
<Keywords>0x8000000000000000</Keywords>
<TimeCreated SystemTime="2026-11-18T09:30:12.4567890Z" />
<EventRecordID>1048576</EventRecordID>
<Correlation />
<Execution ProcessID="712" ThreadID="2408" />
<Channel>Microsoft-Windows-NTLM/Operational</Channel>
<Computer>WS042.corp.example.com</Computer>
<Security />
</System>
<EventData>
<Data Name="ProcessName">invclient</Data>
<Data Name="ProcessPID">0x2f1c</Data>
<Data Name="Username">alice</Data>
<Data Name="DomainName">CORP</Data>
<Data Name="Hostname">WS042</Data>
<Data Name="SingleSignOn">Single Sign-On</Data>
<Data Name="TargetMachine">APP01</Data>
<Data Name="TargetDomain">CORP</Data>
<Data Name="TargetService">HTTP/10.20.40.20</Data>
<Data Name="TargetIP">10.20.40.20</Data>
<Data Name="TargetNetworkName">Null</Data>
<Data Name="NtlmUsageId">7</Data>
<Data Name="NtlmUsageReason">The target name contains an IP address.</Data>
<Data Name="NegotiatedFlags">0xe2888215</Data>
<Data Name="NtlmVersion">NTLMv2</Data>
<Data Name="SessionKeyStatus">Present</Data>
<Data Name="ChannelBindingStatus">Not Supported</Data>
<Data Name="ServiceBinding">HTTP/10.20.40.20</Data>
<Data Name="Mic Status">Protected</Data>
<Data Name="AvlFlags">0x2</Data>
<Data Name="AvlFlagsStr">MIC Provided</Data>
</EventData>
</Event>Attacks this event reveals
No detection rule or detection logic in our library reads this event yet. It is documented here because it sits next to the events they read: it explains them, follows from them or is the trace a defender looks for around them (see Related events).
Frequently asked questions
What does the Reason ID in event 4021 mean?
It says why NTLM was used instead of Kerberos. KB5064479 lists the values: 1 the application called NTLM directly, 2 a local account, 4 a cloud account, 5 no target name, 6 a target name that Kerberos could not resolve, 7 a target name that is an IP address, 8 a target name duplicated in Active Directory, 9 no domain controller reachable, 10 a loopback call, 11 a null session, and 0 unknown. Read the Reason text as well: on a test computer the number and the text did not always agree.
What is the difference between events 4020 and 4021?
They are the same client audit with the same fields. Windows writes 4020 (Information) for an outgoing NTLM authentication without a detected reduction in security and 4021 (Warning) when it sees a downgrade, such as NTLMv1, Extended Protection for Authentication marked as not supported or insecure, or no message integrity check.
How do I find the process behind a server's NTLM event 4023?
The server's 4023 gives the client's machine name and IP address. On that client, if it runs a Windows version with enhanced NTLM auditing, look for 4020 or 4021 at the same time with the same account and a target that names the server: Process Name is the process that sent the authentication.
Is event 4021 on by default?
Yes, where enhanced NTLM auditing exists: Windows 11 version 24H2 and later, Windows Server 2025, and Windows Server 2022 and 2019 with the Windows updates released on or after October 13, 2026. It is written to the NTLM operational log and controlled by the NTLM Enhanced Logging policy under Administrative Templates > System > NTLM.