A searchable reference of 50 Windows Server event IDs that indicate security-relevant changes, authentication activity, persistence, or tampering. Each entry lists the log it appears in, what it records, and what to look at when you see it.
How to read the table
- Log is where the event is written. Security, System, Application, and Directory Service are classic logs. Names with a slash are logs under Applications and Services Logs.
- DC means the event is generated on domain controllers.
- Audit needed means the event is only generated if the matching audit policy subcategory is enabled. See the audit prerequisites section below.
- Event IDs can behave differently between Windows versions, so confirm in your own environment.
Quick reference table
| # | Event ID | Log | What it records | What to review |
|---|---|---|---|---|
| 1 | 4624 | Security | Account successfully logged on | Check Logon Type: 2 interactive, 3 network, 4 batch, 5 service, 7 unlock, 8 network cleartext, 9 new credentials, 10 remote desktop, 11 cached. Review type 8 and 10, and admin accounts logging on from unexpected hosts |
| 2 | 4625 | Security | Account failed to log on | Many failures from one source suggest password guessing. Status 0xC000006A is a wrong password, 0xC0000064 is an unknown user, 0xC0000234 is a locked-out account |
| 3 | 4648 | Security | Logon attempted using explicit credentials | Appears with runas, net use with credentials, and scheduled tasks. Review privileged accounts using it from unexpected hosts |
| 4 | 4672 | Security | Special privileges assigned to a new logon | Marks administrator-level logons. Review accounts that should not hold sensitive privileges |
| 5 | 4768 | Security (DC) | Kerberos ticket-granting ticket (TGT) requested | Result code 0x6 means the account does not exist. Ticket encryption type 0x17 is RC4, 0x12 is AES256 |
| 6 | 4769 | Security (DC) | Kerberos service ticket requested | Many RC4 (0x17) requests for service accounts from one account can indicate Kerberoasting |
| 7 | 4771 | Security (DC) | Kerberos pre-authentication failed | Failure code 0x18 means a bad password. Many from one source suggest guessing |
| 8 | 4776 | Security (DC) | Domain controller attempted to validate credentials (NTLM) | Error code 0xC000006A is a wrong password. Review NTLM use where Kerberos is expected |
| 9 | 4740 | Security (DC) | User account locked out | Caller Computer Name shows where the bad attempts came from |
| 10 | 4720 | Security | User account created | Unexpected new accounts, including local accounts on servers |
| 11 | 4724 | Security | Attempt to reset an account password | Resets by accounts that do not normally perform them |
| 12 | 4725 | Security | User account disabled | Unexpected disabling, or disabling of service and security accounts |
| 13 | 4728 | Security (DC) | Member added to a security-enabled global group | Watch Domain Admins, Enterprise Admins, and Schema Admins |
| 14 | 4732 | Security | Member added to a security-enabled local group | Watch local Administrators and Remote Desktop Users |
| 15 | 4738 | Security (DC) | User account changed | Review changes to flags such as password never expires or Kerberos pre-authentication not required |
| 16 | 4765 | Security (DC) | SID History added to an account | Rare outside domain migrations. Can grant hidden privileges |
| 17 | 4662 | Security (DC) | Operation performed on a directory object | Requests using replication GUIDs 1131f6aa-9c07-11d1-f79f-00c04fc2dcd2 and 1131f6ad-9c07-11d1-f79f-00c04fc2dcd2 by a non-DC account can indicate DCSync-style replication. Audit needed |
| 18 | 4688 | Security | New process created | Command line is recorded only if the policy Include command line in process creation events is enabled. Audit needed |
| 19 | 4697 | Security | Service installed on the system | Review service file name and account. Corresponds to 7045 in the System log. Audit needed |
| 20 | 4698 | Security | Scheduled task created | Review the task action and author. Audit needed |
| 21 | 4702 | Security | Scheduled task updated | Changes to existing tasks, which can hide persistence. Audit needed |
| 22 | 4719 | Security | System audit policy changed | Audit settings being weakened or disabled |
| 23 | 1102 | Security | Audit log cleared | Security log cleared. Always investigate |
| 24 | 1100 | Security | Event logging service shut down | Logging stopped, which creates a gap in records |
| 25 | 4616 | Security | System time changed | Can break Kerberos and obscure timelines. Routine Windows Time adjustments also generate it |
| 26 | 4657 | Security | Registry value modified | Useful on Run keys and service keys. Needs an audit entry (SACL) on the key. Audit needed |
| 27 | 4663 | Security | Attempt to access an object | File and folder access on sensitive data. Needs an audit entry (SACL) on the object. Audit needed |
| 28 | 5140 | Security | Network share accessed | Access to ADMIN$ and C$ from non-admin workstations suggests lateral movement. Audit needed |
| 29 | 5142 | Security | Network share created | Unexpected new shares. Audit needed |
| 30 | 4946 | Security | Windows Firewall exception rule added | New allow rules. 4947 is modified, 4948 is deleted. Audit needed |
| 31 | 7045 | System | New service installed (Service Control Manager) | Review the image path, such as user-writable folders and temp directories, and tools like PSEXESVC |
| 32 | 7040 | System | Service start type changed | Security services changed to Disabled |
| 33 | 7034 | System | Service terminated unexpectedly | Repeats for security agents or the Event Log service |
| 34 | 104 | System | A log file was cleared (Microsoft-Windows-Eventlog) | Logs other than Security being cleared. Always investigate |
| 35 | 41 | System | Kernel-Power: system rebooted without a clean shutdown | Power loss, crash, or forced reset |
| 36 | 6008 | System | Previous system shutdown was unexpected | Pair with 41 and 1074 to establish what happened |
| 37 | 1074 | System | Shutdown or restart initiated by a process or user | Records the account, process, and reason given |
| 38 | 5829 | System (DC) | Netlogon: vulnerable secure channel connection allowed (CVE-2020-1472, Zerologon) | Identifies devices still making vulnerable connections. Related events: 5827 and 5828 (denied), 5830 and 5831 (allowed by policy) |
| 39 | 1000 | Application | Application Error | Repeated crashes of the same faulting module, especially in security agents or network-facing services |
| 40 | 11707 | Application (MsiInstaller) | Product installed successfully | Track unapproved software. 11724 records successful removal |
| 41 | 2889 | Directory Service (DC) | LDAP client bound without signing, or used a cleartext simple bind | Identifies clients that break when LDAP signing is required. Needs LDAP diagnostic logging at level 2 |
| 42 | 2887 | Directory Service (DC) | Summary of unsigned and cleartext LDAP binds in the previous 24 hours | Quick indicator of whether such binds still occur |
| 43 | 1116 | Microsoft-Windows-Windows Defender/Operational | Malware or unwanted software detected | Review threat name, path, and user |
| 44 | 5001 | Microsoft-Windows-Windows Defender/Operational | Real-time protection disabled | Unexpected disabling of protection |
| 45 | 5007 | Microsoft-Windows-Windows Defender/Operational | Defender configuration changed | Review for added exclusions and disabled features |
| 46 | 1121 | Microsoft-Windows-Windows Defender/Operational | Attack surface reduction (ASR) rule blocked an action | 1122 records the same event in audit mode |
| 47 | 4104 | Microsoft-Windows-PowerShell/Operational | PowerShell script block executed | Records the script text. Full logging needs the Script Block Logging policy. PowerShell 5.0 and later also log some blocks flagged as suspicious by default |
| 48 | 4103 | Microsoft-Windows-PowerShell/Operational | PowerShell module logging, pipeline execution details | Needs the Module Logging policy |
| 49 | 1149 | Microsoft-Windows-TerminalServices-RemoteConnectionManager/Operational | Remote Desktop user authentication succeeded | Contains the source IP. Logged when network-level authentication succeeds, before the session is created |
| 50 | 5861 | Microsoft-Windows-WMI-Activity/Operational | Permanent WMI event subscription registered | A known persistence technique. Some management software also creates subscriptions |
Audit policy prerequisites
Many Security log events are generated only when the matching audit subcategory is enabled. Check current settings with auditpol and enable the subcategories you need through Group Policy.
| Subcategory | Events from this list |
|---|---|
| Audit Logon | 4624, 4625, 4648 |
| Audit Special Logon | 4672 |
| Audit Kerberos Authentication Service | 4768, 4771 |
| Audit Kerberos Service Ticket Operations | 4769 |
| Audit Credential Validation | 4776 |
| Audit User Account Management | 4720, 4724, 4725, 4738, 4740, 4765 |
| Audit Security Group Management | 4728, 4732 |
| Audit Directory Service Access | 4662 |
| Audit Process Creation | 4688 |
| Audit Security System Extension | 4697 |
| Audit Other Object Access Events | 4698, 4702 |
| Audit Audit Policy Change | 4719 |
| Audit Security State Change | 4616 |
| Audit Registry | 4657 |
| Audit File System | 4663 |
| Audit File Share | 5140, 5142 |
| Audit MPSSVC Rule-Level Policy Change | 4946, 4947, 4948 |
Events 1100 and 1102 are written without a separate audit subcategory.
Commands
Check and set auditing
# Show every audit subcategory and its current setting
auditpol /get /category:*
# Enable success and failure auditing for process creation
auditpol /set /subcategory:"Process Creation" /success:enable /failure:enable
To include the command line in 4688 events, set this registry value (or use the matching Group Policy setting):
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\Audit' -Name ProcessCreationIncludeCmdLine_Enabled -PropertyType DWord -Value 1 -Force
To log events 2889 on a domain controller, set LDAP Interface Events diagnostic logging to level 2:
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\NTDS\Diagnostics' -Name '16 LDAP Interface Events' -Value 2
Query events
# Log tampering and audit changes in the last 7 days
Get-WinEvent -FilterHashtable @{
LogName = 'Security'
Id = 1102, 4719
StartTime = (Get-Date).AddDays(-7)
}
# Newly installed services in the last 7 days
Get-WinEvent -FilterHashtable @{
LogName = 'System'
ProviderName = 'Service Control Manager'
Id = 7045
StartTime = (Get-Date).AddDays(-7)
}
# Additions to privileged groups (run on a domain controller for 4728)
Get-WinEvent -FilterHashtable @{
LogName = 'Security'
Id = 4728, 4732
} -MaxEvents 50
# Most recent PowerShell script block events
Get-WinEvent -FilterHashtable @{
LogName = 'Microsoft-Windows-PowerShell/Operational'
Id = 4104
} -MaxEvents 20
# Defender protection changes
Get-WinEvent -FilterHashtable @{
LogName = 'Microsoft-Windows-Windows Defender/Operational'
Id = 5001, 5007
}
Reading the Security log requires an elevated session. Querying a log or event ID that has no matching events returns an error in PowerShell. Add -ErrorAction SilentlyContinue if you want it to return nothing instead.
Notes
- Domain controller events (4662, 4728, 4738, 4740, 4765, 4768, 4769, 4771, 4776, 5829, 2887, 2889) must be collected from every domain controller, because each DC logs only what it handles.
- Forward events to a central collector or SIEM. A log that sits only on the server it describes can be cleared by an attacker (1102 and 104 record that, but only if they survive).
- Increase Security log maximum size from the default before enabling detailed auditing, or older events will be overwritten quickly.
Sources
- Microsoft Learn: Windows security auditing events reference and advanced audit policy documentation
- Microsoft Learn: Microsoft Defender Antivirus event IDs and attack surface reduction rule reference
- Microsoft Support: Netlogon events for CVE-2020-1472 (Zerologon)
- Microsoft Support: LDAP signing and channel binding events 2886, 2887, and 2889