1. Resources
  2. Detection sources
  3. Event ID 4023

Event ID 4023: A remote client is using NTLM to authenticate to this workstation

Written by enhanced NTLM auditing on the computer that receives an NTLM authentication with weakened security: NTLMv1, no channel binding or no message integrity check. Names the account, the client's name and address, and the process.

Log source
NTLM operational log
Detection value
Supporting
Volume
Medium (estimate)
Last updated
Log
NTLM operational log (Microsoft-Windows-NTLM, on by default)
Logged on
All Windows computers
Event versions
0
Detects
1 attack (1 rule)
MITRE ATT&CK
1 technique in 2 tactics
Threat groups
2 groups that MITRE ATT&CK records using these techniques
Fields the rules read
The event ID and the provider only

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 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. Status says whether the authentication succeeded.

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). Microsoft's article names the event source NTLM; the provider in the event template is Microsoft-Windows-NTLM.

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.

Show the log's settings (on or off, maximum size, retention)
wevtutil gl "Microsoft-Windows-NTLM/Operational"
Based on vendor documentation.
Show the five most recent events of the log
wevtutil qe "Microsoft-Windows-NTLM/Operational" /c:5 /rd:true /f:text
Based on vendor documentation.

Fields

In Event Viewer order. The field names are those of the event XML, from the event template that ships with Windows.

FieldWhat it holdsSince
Process NameProcessNameProcess InformationProcess on this computer that accepted the NTLM authentication (Process Name), usually the service the client connected to. For the older NTLM audit events, Microsoft notes that authentication over SMB is handled in kernel mode and shows as process ID 4 (System).v0
Process PIDProcessPIDProcess InformationProcess ID of that process, in hexadecimal (Process PID).v0
UsernameRemote Client InformationAccount the client authenticated as (Username). Computer accounts end with $.v0
DomainDomainNameRemote Client InformationDomain of that account (Domain), as the client supplied it.v0
Client MachineRemoteClientMachineRemote Client InformationName 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 InformationNetwork address of the client (Client IP). Microsoft added it so that the event says where the authentication comes from; compare it with the address of the computer the account belongs to.v0
Client Network NameClientNetworkNameRemote Client InformationNetwork name of the client (Client Network Name). Microsoft's example shows the label without describing it: check what your servers write before relying on it.v0
Negotiated FlagsNegotiatedFlagsNTLM SecurityNTLM negotiate flags agreed for the authentication, in hexadecimal (the NEGOTIATE flags of MS-NLMP).v0
NTLM VersionNtlmVersionNTLM SecurityNTLMv2 or NTLMv1 (NTLM Version). NTLMv1 is one reason for the Warning ID.v0
Session Key StatusSessionKeyStatusNTLM SecurityPresent or Missing (Session Key Status): whether the authentication produced a session key.v0
Channel BindingChannelBindingStatusNTLM SecuritySupported or Not Supported (Channel Binding): whether the authentication carried channel binding, which ties it to the client's TLS connection.v0
Service BindingServiceBindingNTLM SecurityService principal name the client bound the authentication to (Service Binding), for example HTTP/app01.corp.example.com. When it names another computer, the authentication was meant for that computer.v0
Target MachineTargetMachineNTLM SecurityTarget 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 SecurityTarget domain recorded with the authentication (Target Domain). Not described by Microsoft either.v0
MIC StatusMic StatusNTLM SecurityProtected or Unprotected (MIC Status): whether the client sent a message integrity check, which protects the NTLM messages from being changed. A missing MIC is one reason for the Warning ID.v0
AvlFlagsAvFlagsNTLM SecurityMsvAvFlags 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 SecurityThe same flags as text (AvlFlags String). Microsoft does not document its wording.v0
StatusNTLM SecurityResult of the authentication as an NTSTATUS code in hexadecimal (Status): 0x0 when it succeeded.v0
Status MessageStatusMsgNTLM SecurityThe same result as text (Status Message), which Event Viewer renders from the code.v0

Values to know

NTLM Version NtlmVersion

ValueMeaningSignal
NTLMv2NTLM version 2In a 4023 the downgrade is elsewhere. Read Channel Binding and MIC Status.Expected
NTLMv1NTLM 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. Find the client and move it to NTLMv2 or Kerberos.Attack signal

Channel Binding ChannelBindingStatus

ValueMeaningSignal
SupportedThe authentication carried channel bindingExpected
Not SupportedNo channel bindingThe authentication is not tied to the client's own TLS connection. Extended Protection for Authentication relies on that binding to make credentials harder to forward to another server.Attack signal

MIC Status Mic Status

ValueMeaningSignal
ProtectedThe client sent a message integrity checkExpected
UnprotectedNo message integrity checkWithout the MIC the NTLM messages are not protected against being changed between client and server. A reason for the Warning ID.Attack signal

Status

ValueMeaningSignal
0x0The authentication succeededExpected
Any other valueThe authentication failedAn NTSTATUS code. Status Message shows it as text.Failure

Volume and noise

Expect it from clients and appliances that still send NTLMv1 or no MIC, and from clients and services that do not support Extended Protection for Authentication, which applications have to opt in to. On a server that many such clients reach the event can be frequent, and it repeats for the same client, account and process. It says that an authentication was weaker than it should be, not that it was relayed: the client address and the service binding tell the two apart.

Keeping it manageable

  • Collect it first from domain controllers, certificate authorities and other Tier 0 servers, where a weakened NTLM authentication matters most.
  • Baseline it per server by client machine, account and process, and review new client addresses and computer or privileged accounts first: the relay rule reads every 4023, so this is where you cut the noise.
  • Compare ClientIP with the address of the computer the account belongs to. A computer account (name ending with $) whose authentication arrives from another address is what a relay looks like.
  • No rule reads the Information-level 4022. Where volume is the limit, collect 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 a Select of that log): 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>4023</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>APP01.corp.example.com</Computer>
    <Security />
  </System>
  <EventData>
    <Data Name="ProcessName">C:\Windows\System32\inetsrv\w3wp.exe</Data>
    <Data Name="ProcessPID">0x1a2c</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">WS042</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/app01.corp.example.com</Data>
    <Data Name="TargetMachine">APP01</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

Detection rules that read this event:

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.

Does event 4023 mean an NTLM relay attack?

No. It means that an NTLM authentication reached the computer without one of the protections that make relaying harder. Most of them come from legacy clients and services. Compare the client IP with the address of the account's own computer, check that the service binding names this computer, and give priority to computer accounts and privileged accounts.

Which Windows versions write event 4023?

Windows 11 version 24H2 and later and Windows Server 2025, and Windows Server 2022 and 2019 with the Windows updates released on or after October 13, 2026. Enhanced NTLM auditing is on by default there and is controlled by the NTLM Enhanced Logging policy under Administrative Templates > System > NTLM.

How do I find NTLMv1 with event 4023?

Read the NTLM Version line: the Warning ID also covers NTLMv2 authentications without channel binding or a MIC. For the whole domain without collecting every server, use the domain controllers' events 4031 and 4033, which carry the NTLM version of the authentications they process.

References