When it is written
Enhanced NTLM auditing makes a domain controller log the NTLM authentications it processes for its domain, successful and unsuccessful. For an authentication across domains Microsoft describes two records. The domain controller of the server's domain writes the same-domain event (4032 or 4033). A domain controller of the account's domain, which receives the request from the other domain over the trust, writes this one (4030 or 4031), and Forwarded From names the domain controller of the other domain that passed it on.
Microsoft splits each audit into two event IDs with the same fields that differ only in level: 4030 (Information) for an authentication without a detected reduction in security, and 4031 (Warning) when the domain controller sees a downgrade: NTLMv1, Extended Protection for Authentication marked as not supported or insecure, or an NTLM security feature such as the message integrity check (MIC) not used. The event exists on 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 Log Enhanced Domain-wide NTLM Logs policy (Administrative Templates > System > Netlogon). Microsoft's article names the source Security-Netlogon; the provider is Microsoft-Windows-Security-Netlogon.
Microsoft's article shows this event with the opening sentence of 4032 and with Negotiated Flags, Session Key Status and Channel Binding lines. The template that ships with Windows has the wording of the title, none of those three lines, and Target Machine and Target Domain instead. The fields below are the template's.
How to turn it on
Microsoft-Windows-Security-Netlogon 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 |
|---|---|---|
DCName | Name of the domain controller that processed the authentication and wrote the event: the DC of the event's first sentence. | v0 |
Client NameAccountNameClient Information | Account that authenticated (Client Name), an account of this domain. Computer accounts end with $. | v0 |
Client DomainAccountDomainClient Information | Domain of that account (Client Domain). | v0 |
Client MachineAccountMachineClient Information | Workstation the account authenticated from (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 that it can be empty or false. The event has no client address. | v0 |
Server NameServerNameServer Information | Server the client authenticated to (Server Name), in the other domain. | v0 |
Server DomainServerDomainServer Information | Domain of that server (Server Domain). | v0 |
Secure Channel TypeForwarderTypeForwarded From | Type of the Netlogon secure channel the request arrived on (Secure Channel Type). Microsoft's example shows a placeholder only, so the wording of its values is not documented. | v0 |
Farside NameForwarderNameForwarded From | Domain controller of the other domain that passed the request on (Farside Name). | v0 |
Farside DomainForwarderDomainForwarded From | Domain of that domain controller (Farside Domain). | v0 |
Farside IPForwarderIPForwarded From | Address of that domain controller (Farside IP). It is not the client's address. | v0 |
NTLM VersionNtlmVersionNTLM Security | NTLMv2 or NTLMv1 (NTLM Version). Read it to tell NTLMv1 from the other reasons for the Warning ID. | v0 |
Service BindingServiceBindingNTLM Security | Service principal name the client bound the authentication to (Service Binding), for example cifs/resfs01.res.example.com. | v0 |
Target MachineTargetMachineNTLM Security | Target machine recorded with the authentication (Target Machine). Not in Microsoft's example, so its source is not documented. | v0 |
Target DomainTargetDomainNTLM Security | Target domain recorded with the authentication (Target Domain). Not in Microsoft's example either. | v0 |
Mic StatusNTLM Security | Protected or Unprotected (shown as Mic Status): whether the client sent a message integrity check. A missing MIC is one reason for the Warning ID. | v0 |
Flags valuesAvFlagsNTLM Security | MsvAvFlags value of the authentication, in hexadecimal (shown as Flags values). 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 |
FlagsAvFlagsStrNTLM Security | The same flags as text (shown as Flags). 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 |
StatusMsg | The same result as text. The template defines the field but this event's message does not show it, so it appears in the event XML only. | v0 |
Values to know
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. The NTLMv1 rule reads this event; the line tells NTLMv1 from the other downgrades. | Attack signal |
NTLMv2 | NTLM version 2In a Warning event the downgrade is elsewhere. Read Mic Status. | Worth knowing |
Mic Status
| Value | Meaning | Signal |
|---|---|---|
Protected | The client sent a message integrity check | Expected |
Unprotected | No message integrity checkThe NTLM messages were not protected against being changed between client and server. A reason for the Warning ID. | Attack signal |
Status
| Value | Meaning | Signal |
|---|---|---|
0x0 | The authentication succeeded | Expected |
Any other value | The authentication failedAn NTSTATUS code. Microsoft says the domain controller logs failed attempts too. | Failure |
Volume and noise
Only domain controllers that run a version with enhanced NTLM auditing write it, and only for authentications that cross a trust. Expect the same legacy clients and appliances as on the servers: devices that still send NTLMv1, and clients that send no message integrity check. They repeat with the same client machine and server, which makes them easy to baseline.
Keeping it manageable
- Read
NtlmVersionto tell NTLMv1 from the other reasons for the Warning ID: the rule matches the event ID, and an NTLMv2 authentication without a MIC is logged the same way. - Silence known legacy pairs of
AccountMachineandServerNamein the SIEM while their migration is tracked, rather than dropping events at collection time. - Collect the log from the domain controllers of every domain in the forest and across your trusts: the account's domain writes 4031 and the server's domain writes 4033 for the same authentication.
- No rule reads the Information-level 4030. Where volume is the limit, keep the Warning events only:
Microsoft-Windows-NTLM/Operational!*[System[(EventID=4031 or EventID=4033)]].
Sample event
Version 0, with made-up values.
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-Security-Netlogon" Guid="{e5ba83f6-07d0-46b1-8bc7-7e669a1d31dc}" />
<EventID>4031</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>DC01.corp.example.com</Computer>
<Security />
</System>
<EventData>
<Data Name="DCName">DC01</Data>
<Data Name="AccountName">alice</Data>
<Data Name="AccountDomain">CORP</Data>
<Data Name="AccountMachine">WS042</Data>
<Data Name="ServerName">RESFS01</Data>
<Data Name="ServerDomain">RES</Data>
<Data Name="ForwarderType">TrustedDnsDomainSecureChannel</Data>
<Data Name="ForwarderName">RESDC01</Data>
<Data Name="ForwarderDomain">res.example.com</Data>
<Data Name="ForwarderIP">10.40.0.10</Data>
<Data Name="NtlmVersion">NTLMv2</Data>
<Data Name="ServiceBinding">cifs/resfs01.res.example.com</Data>
<Data Name="TargetMachine">RESFS01</Data>
<Data Name="TargetDomain">RES</Data>
<Data Name="Mic Status">Unprotected</Data>
<Data Name="AvFlags">0x0</Data>
<Data Name="AvFlagsStr">-</Data>
<Data Name="Status">0x0</Data>
<Data Name="StatusMsg">0</Data>
</EventData>
</Event>Attacks this event reveals
Detection rules that read this event:
Frequently asked questions
What is the difference between events 4031 and 4033?
Both are Warning events of enhanced NTLM auditing on domain controllers. 4033 is written by a domain controller of the server's domain, which includes every authentication where the account and the server are in the same domain. 4031 is written for a cross-domain authentication by a domain controller of the account's domain, and names the domain controller of the other domain that forwarded it. One cross-domain authentication can produce both.
Does event 4031 show the client's IP address?
No. It names the client machine, and in NTLM the workstation name is one the client chooses to send (MS-NLMP). Farside IP is the address of the forwarding domain controller in the other domain. For the client's address, read the server's own event 4022 or 4023, or its logon event 4624, whose Source Network Address is filled when the service that received the logon passed it to Windows.
How do I find NTLMv1 across trusts?
Collect events 4031 and 4033 from the domain controllers of every domain and read their NTLM Version line. They are on by default on Windows Server 2025, and on Windows Server 2022 and 2019 with the updates released on or after October 13, 2026.
References
- Overview of NTLM auditing enhancements, KB5064479 (Microsoft)
- Audit use of NTLMv1 on a Windows Server-based domain controller (Microsoft)
- [MS-NLMP]: AV_PAIR (Microsoft)
- [MS-NLMP]: AUTHENTICATE_MESSAGE (Microsoft)
- 4624(S): An account was successfully logged on (Microsoft)
- Deprecated features in the Windows client (Microsoft)