Windows Security & Sysmon Event IDs
50 events that matter in detection and incident response. Each page explains what the event proves, which fields to read, how attackers cause it, and how to query for it in Splunk, Sentinel and PowerShell.
50 events.
- 104 Critical
Event Log Cleared (System)
System · Defense Evasion
- 1102 Critical
Security Log Cleared
Security · Defense Evasion
- 1116 High
Defender Malware Detected
Windows Defender · Process Execution
- 4103 Medium
PowerShell Module Logging
PowerShell · Process Execution
- 4104 High
PowerShell Script Block Logging
PowerShell · Process Execution
- 4624 Medium
Successful Logon
Security · Authentication
- 4625 Medium
Failed Logon
Security · Authentication
- 4634 Low
Account Logoff
Security · Authentication
- 4647 Low
User-Initiated Logoff
Security · Authentication
- 4648 High
Explicit Credential Logon
Security · Lateral Movement
- 4662 High
Directory Object Operation
Security · Privilege Escalation
- 4663 Medium
Object Access Attempt
Security · Process Execution
- 4672 High
Special Privileges Assigned
Security · Privilege Escalation
- 4688 Medium
Process Creation
Security · Process Execution
- 4689 Low
Process Exit
Security · Process Execution
- 4697 High
Service Installed (Security)
Security · Persistence
- 4698 High
Scheduled Task Created
Security · Persistence
- 4699 Medium
Scheduled Task Deleted
Security · Persistence
- 4702 Medium
Scheduled Task Updated
Security · Persistence
- 4719 High
Audit Policy Changed
Security · Defense Evasion
- 4720 High
User Account Created
Security · Account Management
- 4722 Medium
User Account Enabled
Security · Account Management
- 4723 Low
Password Change Attempt
Security · Account Management
- 4724 High
Password Reset Attempt
Security · Account Management
- 4725 Medium
User Account Disabled
Security · Account Management
- 4726 High
User Account Deleted
Security · Account Management
- 4728 Critical
Member Added to Global Group
Security · Privilege Escalation
- 4732 High
Member Added to Local Group
Security · Privilege Escalation
- 4738 Medium
User Account Changed
Security · Account Management
- 4740 Medium
Account Locked Out
Security · Account Management
- 4742 High
Computer Account Changed
Security · Persistence
- 4768 Medium
Kerberos TGT Requested
Security · Kerberos
- 4769 High
Kerberos Service Ticket Requested
Security · Kerberos
- 4770 Low
Kerberos Ticket Renewed
Security · Kerberos
- 4771 Medium
Kerberos Pre-Authentication Failed
Security · Kerberos
- 4776 Medium
NTLM Credential Validation
Security · Authentication
- 4778 Medium
RDP Session Reconnected
Security · Lateral Movement
- 4946 Medium
Firewall Rule Added
Security · Defense Evasion
- 4948 Medium
Firewall Rule Deleted
Security · Defense Evasion
- 5025 Critical
Windows Firewall Stopped
Security · Defense Evasion
- 5140 Medium
Network Share Accessed
Security · Lateral Movement
- 5145 High
Detailed File Share Access
Security · Lateral Movement
- 5156 Low
WFP Connection Permitted
Security · Lateral Movement
- 7040 High
Service Start Type Changed
System · Defense Evasion
- 7045 High
New Service Installed (System)
System · Persistence
- Sysmon 1 High
Process Creation
Sysmon · Process Execution
- Sysmon 3 High
Network Connection
Sysmon · Lateral Movement
- Sysmon 7 Medium
Image Loaded
Sysmon · Defense Evasion
- Sysmon 11 Medium
File Created
Sysmon · Persistence
- Sysmon 22 Medium
DNS Query
Sysmon · Process Execution
How to use this library
Start from the number in your alert, or search for a technique such as Kerberoasting, a field such as SubStatus, or an ATT&CK ID. Every page has the same parts, so you can go straight to the one you need: the fields to read, a query to run, the attacks that cause the event, and the harmless causes to rule out.
Priority tells you how urgently a single occurrence deserves attention. Typical volume tells you how much to expect once it is enabled. A cleared log is critical and rare. A successful logon is constant, and only a pattern of them is meaningful.
Enabling what you need
Many of these events are off by default. Set audit policy through advanced audit policy configuration in Group Policy, and check the
effective result with auditpol /get /category:*. Events such as 4662 and 4663 also need an audit entry (SACL) on the
object. Increase the size of the Security log and forward events, because a default log on a busy server can be overwritten within
hours.
About the queries
- Splunk searches assume an index named
windowsand events collected as XML (renderXml=true), where field names match the event XML. With classic rendering, names differ, for exampleAccount_Name. - KQL uses
SecurityEventfor the Security log andEventfor other channels. Fields that have no column of their own are extracted fromEventData. If you collect withWindowsEventor an ASIM parser, adapt the names. - PowerShell reads the local log and needs an elevated prompt for the Security log. Add
-ComputerNameto query another host. - Thresholds are starting points. Run each query over a quiet week first, and exclude what you can explain.
A note on MITRE ATT&CK IDs
Recent ATT&CK releases revoked several IDs that older guides still use. Clearing event logs moved from T1070.001 to T1685.005, and the T1562 techniques for impairing defenses were replaced by T1685 and T1686. This library uses the current IDs and names the former ones where they changed.