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.

Security, System and operational logsChecked 1 December 2026

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 IDWindows messageWhat it answers
4624An account was successfully logged onEvery logon session: account, logon type, source address, protocol, Logon ID.
4625An account failed to log onFailed attempts with a status code: password guessing, spraying, stale passwords.
4634An account was logged offEnd of a session; pair with 4624 by Logon ID for duration.
4647User initiated logoffA user chose to sign out of an interactive or RDP session.
4648A logon was attempted using explicit credentialsA process used another account's credentials: the outgoing side of lateral movement.
4672Special privileges assigned to new logonThe session is administrative.
4778 / 4779A session was reconnected / disconnectedRDP 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 IDWindows messageWhat it answers
4768A Kerberos authentication ticket (TGT) was requestedFirst step of a Kerberos logon; AS-REP roasting, user enumeration.
4769A Kerberos service ticket was requestedEvery service an account reached; Kerberoasting, lateral movement map.
4771Kerberos pre-authentication failedWrong passwords for domain accounts, with the client address.
4776The computer attempted to validate the credentials for an accountNTLM 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 IDWindows messageWhat it answers
4662An operation was performed on an objectReads, writes and extended rights on directory objects; DCSync replication requests.
5136A directory service object was modifiedThe 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 IDWindows messageWhat it answers
4720A user account was createdNew accounts, with who created them.
4722 / 4725 / 4726Account enabled / disabled / deletedThe rest of an account's life cycle.
4724 / 4738Password reset / account changedAdministrative password resets and attribute changes.
4732A member was added to a security-enabled local groupAdditions to Administrators and Remote Desktop Users.
4728 / 4756Member added to a global / universal groupDomain Admins, Enterprise Admins and other domain groups.
4740A user account was locked outLockouts, with the caller computer that caused them.
4798 / 4799Local group membership enumeratednet 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 IDWindows messageWhat it answers
5140A network share object was accessedAn account opening C$, ADMIN$, IPC$ or a business share, once per session.
5145A network share object was checked to see whether client can be granted desired accessEach file and named pipe touched inside a share: svcctl for remote services, files read or written.
4663An attempt was made to access an objectFile 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 IDWindows messageWhat it answers
4688A new process has been createdEvery process, with its command line if that policy is on.
4673A privileged service was calledProcesses using powerful privileges such as SeDebugPrivilege.
7045A service was installed in the systemNew services (System log): persistence and PsExec-style execution.
4697A service was installed in the systemThe Security-log version of 7045, when enabled.
4698 / 4702A scheduled task was created / updatedTask 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 IDWindows messageWhat it answers
4104Creating Scriptblock textThe decoded PowerShell code itself.
4103Module 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 IDWindows messageWhat it answers
21 / 24 / 25Session logon / disconnect / reconnectTerminalServices-LocalSessionManager: RDP sessions with source address.
1149Remote Desktop Services: User authentication succeededTerminalServices-RemoteConnectionManager: who connected from where.
1024 / 1026RDP client connecting / disconnectedTerminalServices-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 IDWindows messageWhat it answers
41 / 6008Kernel-Power: rebooted without a clean shutdown / previous shutdown unexpectedCrashes, power loss, forced power-off.
1074 / 6006 / 6005Restart requested / event log stopped / startedWho restarted the computer, and the clean stop and start.
7034 / 7031A service terminated unexpectedlyCrashing services, including security tools and script services.
7036 / 7040Service state changed / start type changedServices 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 IDWindows messageWhat it answers
5156 / 5157The Windows Filtering Platform permitted / blocked a connectionProgram, 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 IDWindows messageWhat it answers
1102The audit log was clearedSecurity log cleared, with the account that did it.
104The log file was clearedAny other log cleared (System log).
4719System audit policy was changedAuditing 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 › SubcategorySettingEvents it producesOut of the box
Logon/Logoff › Audit LogonSuccess, Failure4624, 4625, 4648Usually on
Logon/Logoff › Audit LogoffSuccess4634, 4647Usually on
Logon/Logoff › Audit Special LogonSuccess4672Usually on
Logon/Logoff › Audit Other Logon/Logoff EventsSuccess, Failure4778, 4779Off
Account Logon › Audit Credential ValidationSuccess, Failure4776Usually on for domain controllers
Account Logon › Audit Kerberos Authentication ServiceSuccess, Failure4768, 4771Usually on for domain controllers
Account Logon › Audit Kerberos Service Ticket OperationsSuccess, Failure4769Usually on for domain controllers
Account Management › Audit User Account ManagementSuccess, Failure4720, 4722, 4724, 4726, 4738, 4740Usually on
Account Management › Audit Security Group ManagementSuccess4728, 4732, 4756Usually on
Detailed Tracking › Audit Process CreationSuccess, plus the command-line policy4688Off
Object Access › Audit Other Object Access EventsSuccess4698, 4702Off
System › Audit Security System ExtensionSuccess4697Off
Policy Change › Audit Audit Policy ChangeSuccess4719Usually 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:

ComputerEvents to expectWhy
The workstation or server that was accessed4624, 4625, 4634, 4672, 4688, 4720 and 4732 (local accounts), 4698, 7045, 4104, 21/24/25/1149, 1102Logons are recorded where the session is created; local accounts, processes, tasks and services where they live
The machine the attacker came from4648, RDP client events (1024, 1102 in the RDPClient log), 4688 for the tools usedOutgoing credential use and connections are recorded on the source
Domain controllers4768, 4769, 4771, 4776, 4740, and 4720, 4728, 4732, 4756 for domain accounts and groupsDomain 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 eventRecordsBuilt-in equivalent
1Process creation, with hashes, parent command line and process GUIDs4688
3Network connection by a process (source, destination, port)None (Windows Filtering Platform 5156 is the nearest)
7Image (DLL) loadedNone
8CreateRemoteThread: one process starting a thread in another (injection)None
10Process access, for example a tool opening lsass.exe to read credentials4656 or 4663 with object access auditing on LSASS, rarely enabled
11File createdObject access auditing (4663), rarely enabled; the USN Journal records creations regardless
12, 13, 14Registry key and value created, set, renamed4657 with registry auditing
22DNS query by a processDNS 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