Windows security event IDs for incident response
The Windows security event IDs that matter in an investigation, grouped by the question they answer: who logged on, how the domain authenticated them, which accounts changed, what ran, what persisted, what happened in PowerShell and Remote Desktop, and whether anyone cleared the logs.
How to use this reference
Windows writes hundreds of event IDs. A few dozen answer nearly every question in an intrusion, and they are listed here in the order an investigation usually needs them. Each linked event has its own page with the fields, what the event proves and what it does not, the attacker patterns it reveals, an example from one of our lab cases where we have one, and a query to find it in Arcsentry.
Two facts shape any event log investigation. First, what is logged depends on the audit policy: logons and account changes are on by default, but process creation, command lines and full PowerShell logging are not. Second, logs roll over: the Security log keeps only as much history as its size allows, often days on a busy machine. Collect early, and check the oldest record in each log before saying something did not happen.
The log files are in C:\Windows\System32\winevt\Logs; see Windows event logs for how they are stored and collected, and Windows logon types for the field you will filter on most. A one-line-per-event version for printing is in the Windows event ID cheat sheet.
Who logged on, from where, and how?
The logon events are the backbone of almost every Windows investigation. Start with 4624 and 4625, filter by logon type, and follow the Logon ID into everything the session did. Log: Security.
| Event ID | Windows message | What it answers |
|---|---|---|
| 4624 | An account was successfully logged on | Every logon session: account, logon type, source address, protocol, Logon ID. |
| 4625 | An account failed to log on | Failed attempts with a status code: password guessing, spraying, stale passwords. |
| 4634 | An account was logged off | End of a session; pair with 4624 by Logon ID for duration. |
| 4647 | User initiated logoff | A user chose to sign out of an interactive or RDP session. |
| 4648 | A logon was attempted using explicit credentials | A process used another account's credentials: the outgoing side of lateral movement. |
| 4672 | Special privileges assigned to new logon | The session is administrative. |
| 4778 / 4779 | A session was reconnected / disconnected | RDP and fast user switching reconnects and disconnects. |
How did the domain authenticate them?
Domain controllers log authentication rather than logons. Their events survive when workstations are reimaged, and they show where an account was used across the whole domain. Log: Security (domain controllers).
| Event ID | Windows message | What it answers |
|---|---|---|
| 4768 | A Kerberos authentication ticket (TGT) was requested | First step of a Kerberos logon; AS-REP roasting, user enumeration. |
| 4769 | A Kerberos service ticket was requested | Every service an account reached; Kerberoasting, lateral movement map. |
| 4771 | Kerberos pre-authentication failed | Wrong passwords for domain accounts, with the client address. |
| 4776 | The computer attempted to validate the credentials for an account | NTLM authentication; password spraying, pass the hash. |
What changed in Active Directory?
Directory auditing needs both the audit subcategory and a SACL on the objects, so check coverage first. Where it is on, these events catch DCSync, malicious Group Policy and quiet permission changes. Log: Security (domain controllers).
| Event ID | Windows message | What it answers |
|---|---|---|
| 4662 | An operation was performed on an object | Reads, writes and extended rights on directory objects; DCSync replication requests. |
| 5136 | A directory service object was modified | The attribute and value changed: GPOs, permissions, SPNs, delegation, shadow credentials. |
Were accounts or groups changed?
Attackers create accounts and add them to privileged groups for persistence. These events are low-volume and easy to review in full. Log: Security.
| Event ID | Windows message | What it answers |
|---|---|---|
| 4720 | A user account was created | New accounts, with who created them. |
| 4722 / 4725 / 4726 | Account enabled / disabled / deleted | The rest of an account's life cycle. |
| 4724 / 4738 | Password reset / account changed | Administrative password resets and attribute changes. |
| 4732 | A member was added to a security-enabled local group | Additions to Administrators and Remote Desktop Users. |
| 4728 / 4756 | Member added to a global / universal group | Domain Admins, Enterprise Admins and other domain groups. |
| 4740 | A user account was locked out | Lockouts, with the caller computer that caused them. |
| 4798 / 4799 | Local group membership enumerated | net user and net localgroup reconnaissance, with the calling process. |
Which shares and files did they reach?
File share auditing is off by default, but where it is on it records lateral movement over admin shares and the files taken from file servers. Log: Security (the computer hosting the share).
| Event ID | Windows message | What it answers |
|---|---|---|
| 5140 | A network share object was accessed | An account opening C$, ADMIN$, IPC$ or a business share, once per session. |
| 5145 | A network share object was checked to see whether client can be granted desired access | Each file and named pipe touched inside a share: svcctl for remote services, files read or written. |
| 4663 | An attempt was made to access an object | File access on the host itself, where object auditing is configured. |
What ran, and what was set to run again?
Execution and persistence. Process creation is off by default; services are always logged in the System log. Log: Security and System.
| Event ID | Windows message | What it answers |
|---|---|---|
| 4688 | A new process has been created | Every process, with its command line if that policy is on. |
| 4673 | A privileged service was called | Processes using powerful privileges such as SeDebugPrivilege. |
| 7045 | A service was installed in the system | New services (System log): persistence and PsExec-style execution. |
| 4697 | A service was installed in the system | The Security-log version of 7045, when enabled. |
| 4698 / 4702 | A scheduled task was created / updated | Task XML with the command and account. |
What did they do in PowerShell?
PowerShell logs the code it runs after decoding it, which makes these the most readable record of hands-on-keyboard activity. Log: Microsoft-Windows-PowerShell/Operational.
| Event ID | Windows message | What it answers |
|---|---|---|
| 4104 | Creating Scriptblock text | The decoded PowerShell code itself. |
| 4103 | Module logging (pipeline execution) | Commands and parameters as they ran. |
Did they use Remote Desktop?
RDP leaves records in several operational logs as well as Security, and they often survive when Security has rolled over. The Remote Desktop event logs guide covers all of them together. Log: TerminalServices and RemoteConnectionManager logs.
| Event ID | Windows message | What it answers |
|---|---|---|
| 21 / 24 / 25 | Session logon / disconnect / reconnect | TerminalServices-LocalSessionManager: RDP sessions with source address. |
| 1149 | Remote Desktop Services: User authentication succeeded | TerminalServices-RemoteConnectionManager: who connected from where. |
| 1024 / 1026 | RDP client connecting / disconnected | TerminalServices-RDPClient on the source machine: where the user connected to. |
Did the computer crash, restart or change its services?
The System log needs no audit policy. It shows restarts, crashes and service changes, which explain gaps in the evidence and sometimes reveal an attacker switching defences off. Log: System.
| Event ID | Windows message | What it answers |
|---|---|---|
| 41 / 6008 | Kernel-Power: rebooted without a clean shutdown / previous shutdown unexpected | Crashes, power loss, forced power-off. |
| 1074 / 6006 / 6005 | Restart requested / event log stopped / started | Who restarted the computer, and the clean stop and start. |
| 7034 / 7031 | A service terminated unexpectedly | Crashing services, including security tools and script services. |
| 7036 / 7040 | Service state changed / start type changed | Services stopped or disabled. |
Which programs connected where?
Off by default and very noisy, but where it is on, filtering platform auditing ties every connection to the program that made it. Log: Security.
| Event ID | Windows message | What it answers |
|---|---|---|
| 5156 / 5157 | The Windows Filtering Platform permitted / blocked a connection | Program, direction, addresses and ports. |
Did they try to hide it?
Clearing a log removes its records but leaves a record of the clearing. Log: Security and System.
| Event ID | Windows message | What it answers |
|---|---|---|
| 1102 | The audit log was cleared | Security log cleared, with the account that did it. |
| 104 | The log file was cleared | Any other log cleared (System log). |
| 4719 | System audit policy was changed | Auditing turned off or reduced. |
Audit policy: what has to be on
Most of these events depend on the Advanced Audit Policy (Computer Configuration › Windows Settings › Security Settings › Advanced Audit Policy Configuration). This baseline produces every Security-log event on this page. If you are investigating rather than configuring, check the host's effective policy first, because it tells you which absences mean something: Arcsentry parses it from the SECURITY hive as the Local Audit Policy artifact.
| Category › Subcategory | Setting | Events it produces | Out of the box |
|---|---|---|---|
| Logon/Logoff › Audit Logon | Success, Failure | 4624, 4625, 4648 | Usually on |
| Logon/Logoff › Audit Logoff | Success | 4634, 4647 | Usually on |
| Logon/Logoff › Audit Special Logon | Success | 4672 | Usually on |
| Logon/Logoff › Audit Other Logon/Logoff Events | Success, Failure | 4778, 4779 | Off |
| Account Logon › Audit Credential Validation | Success, Failure | 4776 | Usually on for domain controllers |
| Account Logon › Audit Kerberos Authentication Service | Success, Failure | 4768, 4771 | Usually on for domain controllers |
| Account Logon › Audit Kerberos Service Ticket Operations | Success, Failure | 4769 | Usually on for domain controllers |
| Account Management › Audit User Account Management | Success, Failure | 4720, 4722, 4724, 4726, 4738, 4740 | Usually on |
| Account Management › Audit Security Group Management | Success | 4728, 4732, 4756 | Usually on |
| Detailed Tracking › Audit Process Creation | Success, plus the command-line policy | 4688 | Off |
| Object Access › Audit Other Object Access Events | Success | 4698, 4702 | Off |
| System › Audit Security System Extension | Success | 4697 | Off |
| Policy Change › Audit Audit Policy Change | Success | 4719 | Usually on |
"Out of the box" is the usual state on current Windows without Group Policy changes; it varies by edition and role, and domain policy often differs in both directions. On a live host, auditpol /get /category:* shows the effective settings. Three logs need no audit policy at all: the System log (7045 services, 104 log cleared), the Remote Desktop operational logs (21, 24, 25, 1149) and, partly, the PowerShell operational log (4104 for suspicious blocks even without the policy).
Which computer has which events
The same intrusion leaves different events on different machines. Knowing where to look decides what to collect:
| Computer | Events to expect | Why |
|---|---|---|
| The workstation or server that was accessed | 4624, 4625, 4634, 4672, 4688, 4720 and 4732 (local accounts), 4698, 7045, 4104, 21/24/25/1149, 1102 | Logons are recorded where the session is created; local accounts, processes, tasks and services where they live |
| The machine the attacker came from | 4648, RDP client events (1024, 1102 in the RDPClient log), 4688 for the tools used | Outgoing credential use and connections are recorded on the source |
| Domain controllers | 4768, 4769, 4771, 4776, 4740, and 4720, 4728, 4732, 4756 for domain accounts and groups | Domain authentication and domain account changes are recorded by the domain controller that handled them; lockouts on the PDC emulator |
In practice the first collection should include the affected hosts, the hosts they connected to, and every domain controller. Domain controllers are the one place where an account's activity across the whole estate can be read, even for workstations that have since been rebuilt.
Sysmon events
Many organisations add Microsoft Sysinternals Sysmon, which writes its own operational log (Microsoft-Windows-Sysmon/Operational) with more detail than the built-in events. Arcsentry parses it with the other event logs. The Sysmon events that come up most in investigations are below; the Sysmon event IDs reference covers all of them, with configuration advice.
| Sysmon event | Records | Built-in equivalent |
|---|---|---|
| 1 | Process creation, with hashes, parent command line and process GUIDs | 4688 |
| 3 | Network connection by a process (source, destination, port) | None (Windows Filtering Platform 5156 is the nearest) |
| 7 | Image (DLL) loaded | None |
| 8 | CreateRemoteThread: one process starting a thread in another (injection) | None |
| 10 | Process access, for example a tool opening lsass.exe to read credentials | 4656 or 4663 with object access auditing on LSASS, rarely enabled |
| 11 | File created | Object access auditing (4663), rarely enabled; the USN Journal records creations regardless |
| 12, 13, 14 | Registry key and value created, set, renamed | 4657 with registry auditing |
| 22 | DNS query by a process | DNS client operational log |
What Sysmon records depends entirely on its configuration file, so check the configuration in force before reading an absence as meaningful. Where Sysmon was not installed, the built-in events on this page and artifacts such as Prefetch, Amcache, SRUM and the USN Journal cover much of the same ground with less detail.
Log size and retention
Every log is a fixed-size file that overwrites its oldest records when full. The defaults are small: 20 MB for the Security log on client Windows, a little more on servers, and similar sizes for most operational logs. On a domain controller or a busy file server, 20 MB can be a few hours. Before relying on an absence, read the oldest and newest record of each log you have; Arcsentry shows each evidence item's time range, and a query sorted by time ascending shows the first surviving record. Where logs are forwarded to a SIEM, the forwarded copy often goes back much further than the host.
Reading events as a sequence
No single event proves an intrusion. The pattern does: failed logons from one address ending in a success, a new account created and added to Administrators a minute later, a service and a scheduled task pointing at the same script, an RDP connection to the next machine, and the Security log cleared at the end. In our Halden Freight office case those steps were 4625, 4624, 4720, 4732, 7045, 4698, 4648 and the RDP events, across two hosts and ten minutes.
Three habits make the sequence visible:
- Follow the Logon ID. Every event inside a session (4672, 4688, 4720, 4698) carries the Logon ID of its 4624, which ties actions to the logon that made them.
- Look at both ends. Lateral movement leaves 4648 and RDP client events on the source and 4624 and RemoteConnectionManager events on the target.
- Corroborate with artifacts. An event says something was attempted or started; Prefetch, Amcache, the USN Journal and the registry say whether it worked and what it left.
Collecting and searching event logs with Arcsentry
Arcsentry Collector gathers every .evtx file in its Windows triage profiles, live or from a disk image, and Arcsentry also reads the event logs inside KAPE, Velociraptor and UAC collections. Each channel becomes its own event type (for example evtx_security, evtx_system and evtx_microsoft_windows_powershell_operational), with logon type, logon ID, account, source address and status in common fields across hosts. Logon, logoff and Remote Desktop events are rebuilt into sessions automatically, and the AI investigator works through them the way an analyst would, citing each event it relies on.
Frequently asked
What are the most important Windows event IDs for incident response?
4624 and 4625 (logons), 4648 (explicit credentials), 4672 (admin logons), 4688 (process creation), 4720 and 4732 (accounts and groups), 4698 and 7045 (scheduled tasks and services), 4104 (PowerShell), the Remote Desktop events 21, 25 and 1149, and 1102 and 104 (logs cleared). On domain controllers add 4768, 4769, 4771 and 4776.
Where are Windows event logs stored?
In C:\Windows\System32\winevt\Logs, one .evtx file per channel: Security.evtx, System.evtx, Application.evtx and the operational channels such as Microsoft-Windows-PowerShell%4Operational.evtx.
Which Windows events are not logged by default?
Process creation (4688) and its command lines, full PowerShell script block logging (4104), scheduled task auditing (4698) and the Security-log service event (4697) need policy changes. Logons, account management and the System log's service installs (7045) are on by default on current Windows.
What is the difference between the Security log and the System log?
The Security log holds audit events controlled by the audit policy: logons, authentication, account and group changes, process creation and object access. The System log holds events from Windows components and services, such as service installations (7045), service failures and log clearing (104). Only accounts with the auditing right can read or clear the Security log.
Can Windows event IDs prove who was at the keyboard?
No. Events show which account did something, from which session and address. Whether the account's owner or someone with their credentials was at the keyboard has to be shown from other evidence: the source machine, the time pattern, what the session did and what the owner says.
How long are Windows Security logs kept?
Until the log reaches its maximum size, after which the oldest events are overwritten. The default is small (20 MB on client Windows), so a busy computer may keep only days. Check the oldest record before concluding that something did not happen, and collect logs early.
Search every event log from every host in one place.
Tell us what you want to investigate. A person replies within one business day with the download and a trial licence.
Request a trial