Event ID 8004: NTLM authentication was blocked
Written when NTLM authentication is denied by a Restrict NTLM 'deny' policy. The enforced counterpart to the audit events: the authentication did not succeed.
- Channel
- Microsoft-Windows-NTLM/Operational
- Logged by default
- No
- Written on
- Target host, Domain controller
- Volume
- Moderate
- Provider
- Microsoft-Windows-NTLM
- Needs a SACL
- No
To have this event
- GPO: Network security: Restrict NTLM policies set to Deny (not just Audit)
Key fields
Exact XML field names, as they appear in <Data Name="…"> and in SIEM field extractions.
| Field | What it tells you |
|---|---|
| SecureChannelName | Server/service the blocked authentication targeted |
| UserName | Account whose NTLM authentication was blocked |
| DomainName | Domain of the account |
| WorkstationName | Client workstation involved |
Analyst notes
- 018004 is an enforced block; a burst can indicate either a misconfigured app still using NTLM or an attacker's NTLM-based attempt being denied.
- 02Investigate the account and target before adding an exception, since each exception re-opens an NTLM path.
- 03Requires a Restrict NTLM deny policy in force; confirm exact field names from the event XML.
Pull this event
Retrieval queries for a live host, a collected .evtx file and common SIEMs. Filter further on the key fields above.
Get-WinEvent -LogName 'Microsoft-Windows-NTLM/Operational' -FilterXPath "*[System[(EventID=8004)]]" -MaxEvents 50 |
Select-Object TimeCreated, Id, MachineName, Message-FilterXPath supports exact matches only. For substring matching, filter in Where-Object.
ATT&CK mapping
Techniques this event can help detect. Most of these depend on specific field values; the event alone does not mean the technique happened.
Related events
Common questions
- What does Windows event ID 8004 mean?
- Written when NTLM authentication is denied by a Restrict NTLM 'deny' policy. The enforced counterpart to the audit events: the authentication did not succeed. It is written to the NTLM Operational log (Microsoft-Windows-NTLM/Operational).
- Is event 8004 logged by default?
- No. It must be enabled before it is recorded.
- Where is event 8004 recorded?
- In the Microsoft-Windows-NTLM/Operational channel on the target host or domain controller.
Decode a real event
Paste the XML and every value gets explained. Nothing leaves your browser.
Open decoderWritten when NTLM authentication is denied by a Restrict NTLM 'deny' policy. The enforced counterpart to the audit events: the authentication did not succeed. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.