Windows Security Event IDs Cheat Sheet
Windows records security activity in the Security log, and service changes in the System log. Open them with Event Viewer (eventvwr.msc), or search them with PowerShell. Some events only appear if the matching audit policy is turned on.
Logon and logoff
| Event ID | Log | Meaning | What to look for |
|---|---|---|---|
| 4624 | Security | An account successfully logged on | Logon type, source IP, unusual hours, admin accounts |
| 4625 | Security | An account failed to log on | Many in a short time = password guessing |
| 4634 | Security | An account was logged off | Match with 4624 using the Logon ID to see session length |
| 4647 | Security | User started a logoff | Interactive user signed out |
| 4648 | Security | A logon was attempted using explicit credentials | "Run as" or tools using other credentials. Can show lateral movement |
| 4672 | Security | Special privileges assigned to a new logon | An admin-level logon. Check it is expected |
| 4778 | Security | A session was reconnected to a Window Station | RDP or fast user switching reconnects |
| 4779 | Security | A session was disconnected from a Window Station | RDP or fast user switching disconnects |
Logon types (in 4624 and 4625)
| Type | Name | Example |
|---|---|---|
| 2 | Interactive | Someone typed a password at the keyboard |
| 3 | Network | Access to a shared folder or other network resource |
| 4 | Batch | A scheduled task ran |
| 5 | Service | A service started under an account |
| 7 | Unlock | The screen was unlocked |
| 8 | NetworkCleartext | Network logon with the password sent in clear text (for example basic authentication) |
| 9 | NewCredentials | runas /netonly style logon |
| 10 | RemoteInteractive | Remote Desktop (RDP) |
| 11 | CachedInteractive | Logon with cached domain credentials, no domain controller reached |
Many type 3 or type 10 failures from one IP usually mean someone is guessing passwords over the network or RDP.
Common 4625 failure codes
Look at the Sub Status field for the exact reason.
| Code | Meaning |
|---|---|
0xC0000064 |
User name does not exist |
0xC000006A |
User name is correct but the password is wrong |
0xC0000234 |
Account is locked out |
0xC0000072 |
Account is disabled |
0xC0000071 |
Password has expired |
0xC0000193 |
Account has expired |
0xC000006F |
Logon outside allowed hours |
Many 0xC0000064 codes with different user names suggest an attacker guessing user names. Many 0xC000006A codes on one account suggest password guessing.
Account management
| Event ID | Meaning | What to look for |
|---|---|---|
| 4720 | A user account was created | New accounts nobody asked for |
| 4722 | A user account was enabled | Old or disabled accounts suddenly turned back on |
| 4723 | A user tried to change their own password | Normal, unless unexpected |
| 4724 | An attempt was made to reset another account's password | Who reset it, and was it approved? |
| 4725 | A user account was disabled | Could be cleanup or an attacker locking out admins |
| 4726 | A user account was deleted | Check it was approved |
| 4738 | A user account was changed | Changes to flags, such as "password never expires" |
| 4740 | A user account was locked out | Often follows many 4625 events |
| 4767 | A user account was unlocked | Who unlocked it |
Group membership
| Event ID | Meaning | What to look for |
|---|---|---|
| 4728 | A member was added to a security-enabled global group | Additions to Domain Admins and other admin groups |
| 4732 | A member was added to a security-enabled local group | Additions to the local Administrators group |
| 4756 | A member was added to a security-enabled universal group | Additions to Enterprise Admins |
Any new member of an admin group should be checked right away.
Kerberos and NTLM (domain controllers)
| Event ID | Meaning | What to look for |
|---|---|---|
| 4768 | A Kerberos authentication ticket (TGT) was requested | Result code 0x6 = unknown user name |
| 4769 | A Kerberos service ticket was requested | Many requests with encryption type 0x17 (RC4) can be a sign of Kerberoasting |
| 4771 | Kerberos pre-authentication failed | Failure code 0x18 = wrong password. Many = password guessing |
| 4776 | The computer attempted to validate the credentials for an account (NTLM) | Many failures from one workstation |
Processes, services and tasks
| Event ID | Log | Meaning | What to look for |
|---|---|---|---|
| 4688 | Security | A new process has been created | powershell.exe, cmd.exe or unknown programs started by Office apps or web servers |
| 4689 | Security | A process has exited | Short-lived suspicious processes |
| 4697 | Security | A service was installed in the system | New services are a common way to keep access |
| 7045 | System | A new service was installed (Service Control Manager) | Services with random names or running from temp folders |
| 4698 | Security | A scheduled task was created | Tasks that run scripts or unknown programs |
To see the full command line in 4688, turn on the policy "Include command line in process creation events".
Log tampering and policy changes
| Event ID | Log | Meaning | What to look for |
|---|---|---|---|
| 1102 | Security | The audit log was cleared | Almost always worth investigating. Attackers clear logs to hide |
| 104 | System | The System log file was cleared | Same concern as 1102 |
| 4719 | Security | System audit policy was changed | Someone turning off logging |
Searching with PowerShell
# Last 20 failed logons
Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4625} -MaxEvents 20
# Successful logons in the last 24 hours
Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4624; StartTime=(Get-Date).AddDays(-1)}
# Several IDs at once: new users and admin group changes
Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4720,4728,4732}
# New services in the System log
Get-WinEvent -FilterHashtable @{LogName='System'; Id=7045}
Reading the Security log needs an administrator PowerShell window.
With the built-in wevtutil tool:
wevtutil qe Security /q:"*[System[(EventID=4625)]]" /c:10 /rd:true /f:text
Common patterns
| Pattern | What it may mean |
|---|---|
| Many 4625, then a 4624 for the same account | Password guessing that succeeded |
| 4625 with many different user names from one IP | Password spraying |
| 4740 lockouts on many accounts | Brute force or spraying across the domain |
| 4720 then 4732 or 4728 shortly after | New account given admin rights. Possible persistence |
| 4624 type 10 from an unknown IP | Remote Desktop access to check |
| 7045 or 4697 with an odd service name | Possible malware or remote admin tool |
| 1102 at any time | Someone cleared the evidence. Escalate |
Tips
- Note the time zone. Event Viewer shows local time.
- Use the Logon ID to link a logon (4624) to the actions in that session.
- Export the logs (
.evtx) before investigating, so the original evidence is kept.
SECUREK Learn · learn.securek.co/cheat-sheets/windows-security-event-ids
Spotted a mistake or something unclear? Report a mistake