When it is written
A domain controller writes 8004 while Network security: Restrict NTLM: Audit NTLM authentication in this domain is set on it. The policy only audits and blocks nothing: each event is an NTLM authentication that the matching Network security: Restrict NTLM: NTLM authentication in this domain setting would deny. With Enable all that is all incoming NTLM traffic of the domain controller; the other options narrow it to domain accounts, to domain servers, or to domain accounts reaching domain servers. Only the domain controller that handled the authentication logs it, so collect the log from every domain controller.
The usual case is pass-through authentication: a user or a computer connects to a member server with NTLM, and the server hands the authentication to a domain controller over its Netlogon secure channel. Secure Channel name then names that member server, and Microsoft's NTLM analysis guide uses it to find the matching event 8003 on the server. A local account of the member server is checked by the server itself, so Microsoft notes that it may leave no 8004. The event has no result and no network address: it records that an NTLM authentication was handled, not whether it succeeded or from where.
Microsoft's guide calls the event's source NTLM. In the event template the provider is Microsoft-Windows-Security-Netlogon, which is what the event XML carries and what the rules match.
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 |
|---|---|---|
Secure Channel nameSChannelNameRead by 1 rule | Computer whose Netlogon secure channel carried the authentication to the domain controller (Secure Channel name). In pass-through authentication it is the member server the client connected to; Microsoft's NTLM analysis guide sends you to that server's event 8003 for the same authentication. | v0 |
User nameUserNameRead by 2 rules | Account that authenticated (User name). Computer accounts end with $. Read by the relay rule, and counted by the spraying rule. | v0 |
Domain nameDomainName | Domain of that account (Domain name), as given in the authentication. | v0 |
Workstation nameWorkstationNameRead by 1 rule | Computer the account is associated with in this authentication (Workstation name): the client the user works at, where Microsoft's guide looks for event 8001. In NTLM it is a name the client chooses to send (MS-NLMP), so it can be empty or false: treat it as a hint. | v0 |
Secure Channel typeSChannelType | Type of that secure channel, as a number (Secure Channel type). Microsoft's NTLM auditing pages do not describe it; the values match the Netlogon secure channel types of MS-NRPC, such as 2 for a domain member. | v0 |
Values to know
User name UserName
| Value | Meaning | Signal |
|---|---|---|
Ends with $ | A computer accountKerberos is the preferred method in Active Directory, so NTLM by a computer account through a member server is expected to be uncommon. It is what the relayed authentication of a coerced computer looks like when the target is a member server; the relay rule reads it. Give priority to the accounts of domain controllers. | Attack signal |
Any other account | A user or service accountOrdinary NTLM use. The password spraying rule counts these per server and workstation name: many accounts from one workstation name through one server in a short time has the shape of a spray. | Expected |
Secure Channel name SChannelName
| Value | Meaning | Signal |
|---|---|---|
A member server | The server that passed the authentication on (pass-through)Read the server's event 8003 and its logon event 4624 for the process and the source address. | Expected |
A Tier 0 server, such as a certificate authority | NTLM reached a server that controls the domainThe web enrollment service of a certificate authority is a common NTLM relay target. Review computer accounts that authenticate through such a server first. | Worth knowing |
Secure Channel type SChannelType
| Value | Meaning | Signal |
|---|---|---|
2 | WorkstationSecureChannel (a domain member to a domain controller)Microsoft's NTLM auditing pages do not list this field's values. The numbers match the Netlogon secure channel types of MS-NRPC; check what your domain controllers write before relying on them. | Expected |
3 or 4 | TrustedDnsDomainSecureChannel or TrustedDomainSecureChannel (a domain controller of a trusted domain)The authentication came over a trust, from a domain controller of another domain. | Worth knowing |
6 or 7 | ServerSecureChannel or CdcServerSecureChannel (from a domain controller, or a read-only domain controller)In MS-NRPC, 6 is the channel from a backup domain controller to the primary domain controller and 7 the channel from a read-only domain controller. | Worth knowing |
Volume and noise
With Enable all the event follows the NTLM traffic of the domain, and most of it is ordinary. Microsoft's NTLM analysis guide lists what to expect even where Kerberos would work: applications that offer several security providers, applications without correct service principal names, applications and users that reach servers by IP address, and legacy code with NTLM-only parts. Microsoft gives no breakdown by account type. It calls Kerberos the preferred authentication method for Active Directory environments, so expect computer accounts to be the smaller part and measure it in your own log: a computer account here is either a known exception (an appliance, a cluster, a connection by IP address) or worth a look.
Keeping it manageable
- Keep every event whose
UserNameends with$: the NTLM relay rule reads them, and they are expected to be a small part of the traffic. - Keep every event if you run the password spraying rule: it counts the distinct
UserNamevalues perSChannelNameandWorkstationName(10 or more within 30 minutes as a starting point), so filtering accounts at collection time breaks it. - Silence known applications in the SIEM by the pair of
UserNameandSChannelName, not by dropping the server, so a new account through the same server still shows. - Set the policy in a Group Policy object linked to the Domain Controllers organizational unit, such as the Default Domain Controllers Policy. Microsoft Defender for Identity reads the same event and asks for the same setting (Enable all). Its steps for collecting 8004 set two more policies in the same object, Outgoing NTLM traffic to remote servers (Audit all) and Audit Incoming NTLM Traffic (Enable auditing for all accounts), while the policy page of the domain audit setting names no dependency on them.
- The event carries no client address. Keep the Security log of the member servers that appear in
SChannelName: their logon event (4624) is where the source address of the same authentication is recorded, when the service that received the logon passed it to Windows.
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>8004</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>DC01.corp.example.com</Computer>
<Security />
</System>
<EventData>
<Data Name="SChannelName">FS01</Data>
<Data Name="UserName">alice</Data>
<Data Name="DomainName">CORP</Data>
<Data Name="WorkstationName">WS042</Data>
<Data Name="SChannelType">2</Data>
</EventData>
</Event>Attacks this event reveals
Detection rules that read this event:
Detection logic (hypotheses that join this event with others) for:
Frequently asked questions
How do I turn on event 8004?
Set "Network security: Restrict NTLM: Audit NTLM authentication in this domain" to Enable all in a Group Policy object linked to the domain controllers (Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options). It takes effect without a restart and blocks nothing. The events appear in the NTLM operational log (Applications and Services Logs > Microsoft > Windows > NTLM > Operational) of each domain controller, which is on by default.
Does event 8004 mean that NTLM was blocked?
No. The title says Blocked Audit because the event lists the NTLM authentications that would be blocked if "Network security: Restrict NTLM: NTLM authentication in this domain" were set to one of its deny options. The audit policy itself only logs. A domain controller that actually blocks NTLM writes other events.
Why does event 8004 show no IP address?
The event template has only the secure channel name, the account, the domain, the workstation name and the secure channel type. For the source address, read the logon event 4624 on the server named in Secure Channel name, whose Source Network Address is filled when the service that received the logon passed it to Windows, or, where enhanced NTLM auditing is available, the server's own event 4022 or 4023, which carries the client IP.
Is event 8004 still needed with enhanced NTLM auditing?
Enhanced NTLM auditing adds the domain controller events 4030 to 4033 on Windows Server 2025 and on Windows Server 2022 and 2019 with the updates released on or after October 13, 2026. They record the NTLM version and the result, which 8004 lacks, and an address: the server's in 4032 and 4033, that of the other domain's domain controller in 4030 and 4031. Microsoft says it does not affect the older NTLM audit events, which keep being logged while their policy is set. The library's relay and spraying rules read 8004; the enhanced events add NTLMv1 and the other downgrades.
References
- Viewing events for assessing NTLM usage (Microsoft)
- Network security: Restrict NTLM: Audit NTLM authentication in this domain (Microsoft)
- Overview of NTLM auditing enhancements, KB5064479 (Microsoft)
- Configure Windows event auditing, Configure NTLM auditing (Microsoft Defender for Identity)
- [MS-NRPC]: NETLOGON_SECURE_CHANNEL_TYPE (Microsoft)
- KB5005413: Mitigating NTLM relay attacks on Active Directory Certificate Services (Microsoft)
- NTLM overview in Windows Server (Microsoft)
- [MS-NLMP]: AUTHENTICATE_MESSAGE (Microsoft)