When it is written
Enhanced NTLM auditing writes a server event for every incoming NTLM authentication, on the computer that receives it, whatever its role: the text says "this workstation" on servers and domain controllers too. Microsoft splits each such audit into two event IDs with the same fields that differ only in level: 4022 (Information) when no reduction in security is detected, and 4023 (Warning) when Windows sees a downgrade such as NTLMv1, Extended Protection for Authentication marked as not supported or insecure, or no message integrity check (MIC). Status says whether the authentication succeeded: Microsoft says the server events report it.
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 ordinary half of the audit whose Warning half, 4023, the relay rule reads: the 4022 events of a server show which accounts, clients and processes normally use NTLM to reach it, which is what a new 4023 is compared with.
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 accepted the NTLM authentication (Process Name), usually the service the client connected to. On a Windows 11 test computer it held the image name without path or extension, the service name for a shared service host (svchost (EventLog)), and SYSTEM for authentications handled in kernel mode, such as SMB. | v0 |
Process PIDProcessPIDProcess Information | Process ID of that process, in hexadecimal (Process PID). | v0 |
UsernameRemote Client Information | Account the client authenticated as (Username). Computer accounts end with $. | v0 |
DomainDomainNameRemote Client Information | Domain of that account (Domain), as the client supplied it. | v0 |
Client MachineRemoteClientMachineRemote Client Information | Name of the client computer (Client Machine). KB5064479 shows the label without describing it. In NTLM the workstation name is one the client chooses to send (MS-NLMP), so expect it to be the client's own claim and compare it with ClientIP. | v0 |
Client IPClientIPRemote Client Information | Network address of the client (Client IP). Microsoft added it so that the event says where the authentication comes from. | v0 |
Client Network NameClientNetworkNameRemote Client Information | Network name of the client (Client Network Name). Microsoft's example shows the label without describing it; it read Null in the events of a Windows 11 test computer. | 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). An NTLMv1 authentication takes the Warning ID, 4023. | v0 |
Session Key StatusSessionKeyStatusNTLM Security | Whether the authentication produced a session key (Session Key Status): Present or Missing in Microsoft's example. | v0 |
Channel BindingChannelBindingStatusNTLM Security | Supported or Not Supported (Channel Binding): whether the authentication carried channel binding, which ties it to the client's TLS connection. | v0 |
Service BindingServiceBindingNTLM Security | Service principal name the client bound the authentication to (Service Binding), for example cifs/fs01.corp.example.com. When it names another computer, the authentication was meant for that computer. | v0 |
Target MachineTargetMachineNTLM Security | Target machine recorded with the authentication (Target Machine). Microsoft's example of the server event does not show this line, so its source is not documented. | v0 |
Target DomainTargetDomainNTLM Security | Target domain recorded with the authentication (Target Domain). Not described by Microsoft either. | v0 |
MIC StatusMic StatusNTLM Security | Protected or Unprotected (MIC Status): whether the client sent a message integrity check, which protects the NTLM messages from being changed. | v0 |
AvlFlagsAvFlagsNTLM Security | MsvAvFlags value the client sent, in hexadecimal (shown as AvlFlags). MS-NLMP defines 0x1 (account authentication is constrained), 0x2 (the client provides a MIC) and 0x4 (the target name came from an untrusted source). | v0 |
AvlFlags StringAvFlagsStrNTLM Security | The same flags as text (AvlFlags String). Microsoft does not document its wording. | v0 |
StatusNTLM Security | Result of the authentication as an NTSTATUS code in hexadecimal (Status): 0x0 when it succeeded. | v0 |
Status MessageStatusMsgNTLM Security | The same result as text (Status Message), which Event Viewer renders from the code. | v0 |
Values to know
Status
| Value | Meaning | Signal |
|---|---|---|
0x0 | The authentication succeeded | Expected |
Any other value | The authentication failedAn NTSTATUS code. Status Message shows it as text. Repeated failures for many accounts from one client are worth a look. | Failure |
Username
| Value | Meaning | Signal |
|---|---|---|
Ends with $ | A computer accountMicrosoft calls Kerberos the preferred authentication method for Active Directory environments, so NTLM by a computer account is expected to be less common; Microsoft gives no figures. Check that ClientIP is that computer's own address. | Worth knowing |
Any other account | A user or service account | Expected |
Service Binding ServiceBinding
| Value | Meaning | Signal |
|---|---|---|
A name of this computer | The client meant to reach this computer | Expected |
A name of another computer | The client bound the authentication to a different computerThe authentication was meant for the computer the service binding names. Read it together with the client address and the account. | Worth knowing |
Volume and noise
This is the busy half of the audit. Every NTLM authentication that reaches the computer without a detected downgrade produces one, so on file servers, web servers that accept Windows authentication and domain controllers it can be frequent, and it repeats for the same client, account and process. Microsoft's NTLM analysis guide lists the usual reasons NTLM is still used where Kerberos would work: applications with several security providers, missing service principal names, connections by IP address, and older code with NTLM-only parts.
Anonymous connections are not part of this baseline. On a Windows 11 test computer, NTLM sessions of ANONYMOUS LOGON were recorded as NTLMv1 without a session key and took the Warning ID, 4023; Microsoft notes the same NTLMv1 labelling for anonymous logons in the Security log's 4624.
Keeping it manageable
- No rule reads 4022. Collect it where you want an inventory of NTLM use or a baseline for the relay rule's 4023, such as domain controllers, certificate authorities and other Tier 0 servers, rather than from every computer.
- Summarize instead of storing every event where volume is a concern: the distinct pairs of
UsernameandClientIPper server and day are what a 4023 investigation needs. - Compare
ClientIPwith the address of the computer the account belongs to. A computer account (name ending with$) that arrives from an address other than its own computer's deserves a look, Information level or not. - Where only the Warning events are wanted, filter the Information ID out at collection time with an XPath filter such as
Microsoft-Windows-NTLM/Operational!*[System[(EventID=4023)]].
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>4022</EventID>
<Version>0</Version>
<Level>4</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>FS01.corp.example.com</Computer>
<Security />
</System>
<EventData>
<Data Name="ProcessName">SYSTEM</Data>
<Data Name="ProcessPID">0x4</Data>
<Data Name="Username">alice</Data>
<Data Name="DomainName">CORP</Data>
<Data Name="RemoteClientMachine">WS042</Data>
<Data Name="ClientIP">10.20.30.41</Data>
<Data Name="ClientNetworkName">Null</Data>
<Data Name="NegotiatedFlags">0xe2888215</Data>
<Data Name="NtlmVersion">NTLMv2</Data>
<Data Name="SessionKeyStatus">Present</Data>
<Data Name="ChannelBindingStatus">Supported</Data>
<Data Name="ServiceBinding">cifs/10.20.40.15</Data>
<Data Name="TargetMachine">FS01</Data>
<Data Name="TargetDomain">CORP</Data>
<Data Name="Mic Status">Protected</Data>
<Data Name="AvFlags">0x2</Data>
<Data Name="AvFlagsStr">MIC Provided</Data>
<Data Name="Status">0x0</Data>
<Data Name="StatusMsg">0</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 is the difference between events 4022 and 4023?
They are the same audit of an incoming NTLM authentication, with the same fields. Windows writes 4022 (Information) when it detects no reduction in security and 4023 (Warning) when it sees a downgrade, such as NTLMv1, Extended Protection for Authentication marked as not supported or insecure, or no message integrity check.
Why does event 4022 say "this workstation" on a server?
The event text is the same on every Windows role. Enhanced NTLM auditing writes the server event on whichever computer receives the NTLM authentication, including member servers and domain controllers.
Do I need to collect event 4022?
Not for the library's rules, which read the Warning event 4023. Collect 4022 where you want to know who uses NTLM to reach a server, for example before restricting NTLM, or as the baseline that a new 4023 is compared with. On busy servers, keep summaries rather than every event.
Does event 4022 show the client's IP address?
Yes, in Client IP. Microsoft added it so that the event says where the authentication comes from. Client Machine is a name, and in NTLM the workstation name is one the client chooses to send (MS-NLMP), so the address is the stronger of the two.
References
- Overview of NTLM auditing enhancements, KB5064479 (Microsoft)
- Viewing events for assessing NTLM usage (Microsoft)
- KB5021989: Extended Protection for Authentication (Microsoft)
- Audit use of NTLMv1 on a Windows Server-based domain controller, anonymous logons (Microsoft)
- [MS-NLMP]: AV_PAIR (Microsoft)
- [MS-NLMP]: AUTHENTICATE_MESSAGE (Microsoft)
- 4624(S): An account was successfully logged on (Microsoft)
- NTLM overview in Windows Server (Microsoft)