Module 03 / 05
Windows Event IDs and Sysmon
Windows Security logs are the bread and butter of most SOC queues, and interviewers expect you to know the core Event IDs without looking them up. This module covers the ones that matter most, the fields inside them that change the verdict, and where Sysmon fills the gaps.
Topic 1
4624 / 4625 and Logon Types
Concept
4624 is a successful logon and 4625 is a failed logon, both in the Security log of the machine that performed the authentication (for domain accounts the DC also logs Kerberos 4768/4769 or NTLM 4776). The most important fields are TargetUserName, LogonType, IpAddress, WorkstationName, and for failures Status and SubStatus.
The Logon Type tells you how the logon happened. 2 Interactive is someone at the keyboard (or console). 3 Network is access to a resource over the network, like an SMB share or many authentication checks. 10 RemoteInteractive is RDP. Less common but worth knowing: 4 Batch (scheduled task), 5 Service (a service starting under an account), 7 Unlock (workstation unlock), 11 CachedInteractive (logon with cached domain credentials when no DC is reachable).
One RDP subtlety catches many candidates: with Network Level Authentication (the default), credentials are checked before the RDP session starts, so failed RDP attempts usually log as 4625 with Logon Type 3, not 10. A successful RDP session produces 4624 Logon Type 10 (often preceded by a type 3).
For 4625, Status is the top-level reason and SubStatus the specific one. A wrong-password failure is commonly logged as Status 0xC000006D with SubStatus 0xC000006A. Key codes: 0xC000006A wrong password for a valid user, 0xC0000064 user name does not exist, 0xC0000234 account locked out. Others worth recognising: 0xC0000072 disabled account, 0xC0000071 expired password.
- 4624 success, 4625 failure, 4634/4647 logoff.
- Logon types: 2 interactive, 3 network, 4 batch, 5 service, 7 unlock, 10 RDP, 11 cached.
- Failed RDP with NLA logs as 4625 type 3; successful RDP is 4624 type 10.
- 0xC000006A bad password (user exists), 0xC0000064 no such user, 0xC0000234 locked out.
- Many 0xC0000064 across many names = spraying / user enumeration. Many 0xC000006A on one account = password guessing.
- The pattern that matters: many 4625 followed by a 4624 from the same source.
Real log example
2026-11-18T02:14:01Z EventID=4625 TargetUserName=admin LogonType=3 IpAddress=203.0.113.45 Status=0xC000006D SubStatus=0xC0000064
2026-11-18T02:14:02Z EventID=4625 TargetUserName=backup LogonType=3 IpAddress=203.0.113.45 Status=0xC000006D SubStatus=0xC0000064
2026-11-18T02:14:04Z EventID=4625 TargetUserName=administrator LogonType=3 IpAddress=203.0.113.45 Status=0xC000006D SubStatus=0xC000006A
2026-11-18T02:14:05Z EventID=4625 TargetUserName=administrator LogonType=3 IpAddress=203.0.113.45 Status=0xC000006D SubStatus=0xC000006A
... 36 more 4625 SubStatus=0xC000006A for administrator ...
2026-11-18T02:19:43Z EventID=4624 TargetUserName=administrator LogonType=3 IpAddress=203.0.113.45 AuthenticationPackageName=NTLM
2026-11-18T02:19:44Z EventID=4624 TargetUserName=administrator LogonType=10 IpAddress=203.0.113.45 WorkstationName=KALI
2026-11-18T02:19:44Z EventID=4672 SubjectUserName=administrator PrivilegeList=SeDebugPrivilege,SeBackupPrivilege,SeTakeOwnershipPrivilegeFirst 0xC0000064 (guessing usernames that do not exist), then 0xC000006A (real account, wrong password), then 4624 type 3 + type 10 = a working RDP session, and 4672 shows it is privileged. The workstation name KALI is attacker-supplied but telling.
Interview question
“What is the difference between Logon Type 3 and Logon Type 10?”
Weak answer
Type 3 is network logon and type 10 is remote logon. Type 10 is more dangerous.
Why it loses points: It does not explain what generates each type, and misses that failed RDP attempts usually appear as type 3.
Strong answer sketch
Logon Type 3 is a network logon, generated when something authenticates to access a resource over the network, like a mapped SMB share, a remote service call or PsExec. Logon Type 10 is RemoteInteractive, meaning an actual RDP desktop session. The catch is that with Network Level Authentication, RDP credentials are validated first, so failed RDP brute force often shows up as 4625 type 3, and a success shows a 4624 type 3 followed by a type 10. So when I triage an RDP brute-force alert I look at the 4625 SubStatus codes, then search for any 4624 from the same IP, and if there is a type 10 I check 4672 and process creation on that host straight after.
Common mistakes
- Expecting failed RDP brute force to show Logon Type 10.
- Ignoring SubStatus and reading only the generic Status 0xC000006D.
- Counting failures but never searching for the 4624 that follows.
- Trusting
WorkstationNameas truth; the client supplies it.
Topic 2
4672 Special Privileges Assigned
Concept
4672 ('Special privileges assigned to new logon') is logged right after a 4624 when the account that logged on holds sensitive privileges such as SeDebugPrivilege, SeTakeOwnershipPrivilege, SeBackupPrivilege, SeLoadDriverPrivilege or SeImpersonatePrivilege. In practice it marks an administrator-equivalent logon.
On its own 4672 is very noisy, because SYSTEM and service accounts generate it constantly. It becomes useful as context: link it to the 4624 by SubjectLogonId/TargetLogonId and ask whether this human account should have admin rights on this host, and whether the logon source makes sense.
A good detection is a 4672 for an account that has never had one before on that host, or a 4672 for a regular user account, which suggests a privilege change. SeDebugPrivilege matters because it allows opening other processes' memory, including LSASS for credential dumping.
- 4672 = admin-level logon; always paired with a 4624 via the Logon ID.
- Very noisy for SYSTEM, LOCAL SERVICE, NETWORK SERVICE and machine accounts: filter those out.
- Watch for 4672 on new or regular user accounts, or from unusual source IPs.
SeDebugPrivilegeenables reading LSASS memory (credential dumping).
Real log example
2026-11-18T10:21:08Z EventID=4624 Host=NW-FIN-SQL01 TargetUserName=jmehta TargetLogonId=0x3E7A21 LogonType=10 IpAddress=10.10.30.41
2026-11-18T10:21:08Z EventID=4672 Host=NW-FIN-SQL01 SubjectUserName=jmehta SubjectLogonId=0x3E7A21 PrivilegeList=SeDebugPrivilege,SeBackupPrivilege,SeRestorePrivilege,SeTakeOwnershipPrivilegejmehta is a logistics coordinator, not a DBA, yet holds admin privileges on the finance SQL server and is coming from 10.10.30.41 (the workstation seen beaconing to port 4444). Check recent 4732/4728 group changes for this account.
Interview question
“What does Event ID 4672 tell you, and how would you use it?”
Weak answer
4672 means an admin logged in, so I would raise an alert for every 4672.
Why it loses points: Alerting on every 4672 would flood the queue with SYSTEM and service account events.
Strong answer sketch
4672 is logged when a new logon is assigned sensitive privileges like SeDebugPrivilege or SeBackupPrivilege, so effectively it flags an admin-level session. It is too noisy to alert on alone because SYSTEM and service accounts generate it all the time. I use it as context: I join it to the 4624 using the logon ID to get the logon type and source IP, then ask whether this person should be an admin on this host. If a regular user suddenly has a 4672, I check for a recent 4728 or 4732 group membership change and who made it.
Common mistakes
- Treating every 4672 as suspicious.
- Not correlating 4672 with its 4624 to get the source and logon type.
- Not knowing why SeDebugPrivilege matters.
Topic 3
4688 Process Creation and Command-Line Logging
Concept
4688 ('A new process has been created') records every process start with the new process name, the creator (parent) process name, the user and, if enabled, the full command line. It is the native Windows answer to 'what ran on this box?' and is central to investigating malware execution and living-off-the-land abuse.
Two settings have to be on. First, the audit policy: Advanced Audit Policy Configuration > Detailed Tracking > Audit Process Creation (Success). Second, for the command line: the Group Policy setting Computer Configuration > Administrative Templates > System > Audit Process Creation > 'Include command line in process creation events'. Without the second one, CommandLine is empty and you see powershell.exe but not what it ran.
What to look for: Office apps spawning cmd.exe, powershell.exe, wscript.exe, mshta.exe or rundll32.exe; PowerShell with -enc/-EncodedCommand, -nop, -w hidden, IEX, DownloadString; certutil -urlcache; processes running from AppData, ProgramData or Temp. Note that 4688 has no file hash; Sysmon Event 1 does. PowerShell's own Script Block Logging (Event 4104 in the PowerShell Operational log) shows the decoded script content.
- Enable Audit Process Creation and the GPO "Include command line in process creation events".
- Key fields:
NewProcessName,ParentProcessName,CommandLine,SubjectUserName,TokenElevationType. - Red flags: Office parent to script interpreter child,
-enc,-w hidden,IEX, LOLBins likecertutil,mshta,rundll32. - 4688 has no hash; Sysmon 1 adds hashes and parent command line.
- Pair with PowerShell 4104 (Script Block Logging) to see decoded scripts.
Real log example
2026-11-18T09:12:41Z EventID=4688 Host=NW-WS114 SubjectUserName=rkumar ParentProcessName=C:\Windows\explorer.exe NewProcessName=C:\Program Files\Microsoft Office\root\Office16\WINWORD.EXE CommandLine="WINWORD.EXE /n C:\Users\rkumar\Downloads\Invoice_88231.doc"
2026-11-18T09:12:44Z EventID=4688 Host=NW-WS114 SubjectUserName=rkumar ParentProcessName=C:\Program Files\Microsoft Office\root\Office16\WINWORD.EXE NewProcessName=C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe CommandLine="powershell.exe -nop -w hidden -enc SQBFAFgAIAAoAE4AZQB3AC0ATwBiAGoAZQBjAHQAIABOAGUAdAAuAFcAZQBiAEMAbABpAGUAbgB0ACkA..."
2026-11-18T09:12:50Z EventID=4688 Host=NW-WS114 SubjectUserName=rkumar ParentProcessName=C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe NewProcessName=C:\Windows\System32\rundll32.exe CommandLine="rundll32.exe C:\Users\rkumar\AppData\Roaming\upd.dll,Start"The Base64 decodes (UTF-16LE) to IEX (New-Object Net.WebClient)..., a download cradle. Word should never spawn PowerShell, and rundll32 loading a DLL from AppData\Roaming is the payload executing.
Interview question
“You see powershell.exe in a 4688 event with no command line. What is wrong, and how do you fix it?”
Weak answer
Maybe the log is corrupted. I would check the PowerShell logs.
Why it loses points: It misses the actual cause, a GPO setting, and does not name which PowerShell log or event.
Strong answer sketch
That means 'Include command line in process creation events' is not enabled. It is a separate GPO under Computer Configuration, Administrative Templates, System, Audit Process Creation, on top of enabling Audit Process Creation in Advanced Audit Policy. I would raise that as a visibility gap. For the current case I would look at the parent process in 4688, PowerShell Script Block Logging event 4104 if it is enabled, Sysmon Event 1 if Sysmon is deployed, and EDR telemetry, to recover what was actually run. A PowerShell child of Word or Outlook would be escalated regardless.
Common mistakes
- Not knowing command-line logging is off by default and needs its own GPO.
- Ignoring the parent process, which is often more telling than the child.
- Not decoding
-encpayloads (Base64 of UTF-16LE text).
Topic 4
4720 User Created and Group Changes (4728/4732)
Concept
4720 ('A user account was created') records who created which account. On domain accounts it is logged on the domain controller; on local accounts, on the host. Attackers create accounts for persistence (MITRE T1136), often with names that blend in like svc_update, helpdesk2 or admin$-style lookalikes.
Group membership changes are the second half: 4728 member added to a security-enabled global group (e.g. Domain Admins), 4732 member added to a security-enabled local group (e.g. the local Administrators group on a server, or domain local groups), 4756 to a universal group. A new account immediately added to an admin group is a high-priority pattern.
Always check SubjectUserName (who made the change), the time, and whether a ticket exists. Related events: 4722 account enabled, 4724 password reset by admin, 4738 account changed, 4726 account deleted.
- 4720 user created. 4726 user deleted. 4722 enabled. 4724 password reset.
- 4728 added to global group, 4732 added to local group, 4756 added to universal group.
- High priority: new account + admin group add within minutes, especially out of hours.
- Check
SubjectUserName: who did it, and was that account itself compromised? - Validate against change/HR tickets before closing.
Real log example
2026-11-18T02:24:10Z EventID=4720 Host=NW-DC01 SubjectUserName=administrator TargetUserName=svc_sqlupd
2026-11-18T02:24:11Z EventID=4722 Host=NW-DC01 SubjectUserName=administrator TargetUserName=svc_sqlupd
2026-11-18T02:24:31Z EventID=4728 Host=NW-DC01 SubjectUserName=administrator MemberName=CN=svc_sqlupd,OU=Users,DC=northwind,DC=local TargetUserName="Domain Admins"
2026-11-18T02:25:02Z EventID=4732 Host=NW-FIN-SQL01 SubjectUserName=administrator MemberName=NORTHWIND\svc_sqlupd TargetUserName=AdministratorsCreated, enabled and put into Domain Admins within 21 seconds at 02:24, five minutes after the administrator account was brute-forced. No legitimate onboarding looks like this.
Interview question
“You see a 4720 followed by a 4728 at 2 AM. How do you investigate?”
Weak answer
Someone created a user. I would disable the new user and close the alert.
Why it loses points: It ignores who created the account, which is likely the real compromise, and skips checking the group added.
Strong answer sketch
4720 is a new account and 4728 is that account being added to a global security group, so first I check which group; Domain Admins or Enterprise Admins makes it critical. Then I look at SubjectUserName, the account that made the change, because if that is not an expected admin or the change is out of hours with no ticket, that account is probably compromised. I would trace that account's 4624 logons back to the source IP and host, and check for other persistence like 7045 services or scheduled tasks. I escalate immediately and recommend disabling both accounts, but I would not delete the new account because it is evidence.
Common mistakes
- Focusing only on the new account and not the account that created it.
- Mixing up 4728 (global) and 4732 (local) groups.
- Deleting attacker-created accounts before L2 has preserved evidence.
Topic 5
7045 Service Installed and 1102 Audit Log Cleared
Concept
7045 ('A service was installed in the system') is in the System log, not Security. Attackers create services for persistence and for remote execution: PsExec creates a PSEXESVC service, and many tools and ransomware operators install services with random names pointing to binaries in Temp, ProgramData or user profiles, or with a cmd.exe /c or powershell command as the ImagePath. (Event 4697 in the Security log records the same thing if 'Audit Security System Extension' is enabled.)
1102 ('The audit log was cleared') is in the Security log and records the account that cleared it. Its counterpart for the System log is 104 in the System log. Legitimate log clearing is rare in managed environments, so 1102 is a high-fidelity defense-evasion signal (MITRE T1070.001), and it tells you the attacker already had admin rights.
When you see 1102, the logs on that host after the clear are gone, so pivot to copies that survived: the SIEM (if forwarding was working), EDR telemetry, and other hosts' logs (the DC, firewall).
- 7045: System log, service installed. Check
ServiceName,ImagePath,AccountName,StartType. - Suspicious ImagePath: user-writable paths,
cmd /c,powershell -enc, random service names,PSEXESVC. - 1102: Security log cleared. 104: System (or other) log cleared.
- Log clearing requires admin rights and is a strong sign of hands-on-keyboard activity.
- After 1102, rely on SIEM-forwarded copies and EDR, not the host log.
Real log example
2026-11-18T02:31:15Z Log=System EventID=7045 Host=NW-FIN-SQL01 ServiceName=WinUpdSvc ImagePath="%COMSPEC% /c powershell -nop -w hidden -enc JABjAD0ATgBlAHcALQBPAGIAagBlAGMAdAA..." ServiceType="user mode service" StartType="auto start" AccountName=LocalSystem
2026-11-18T02:33:02Z Log=Security EventID=1102 Host=NW-FIN-SQL01 SubjectUserName=svc_sqlupd SubjectDomainName=NORTHWIND
2026-11-18T02:33:04Z Log=System EventID=104 Host=NW-FIN-SQL01 Channel=System SubjectUserName=svc_sqlupdAn auto-start service whose ImagePath is an encoded PowerShell command, running as SYSTEM, then both Security and System logs cleared by the newly created account. Everything before 02:33 on that host now only exists in the SIEM.
Interview question
“What would you do if you saw Event ID 1102 on a server?”
Weak answer
Someone cleared the logs. I would ask the server admin why.
Why it loses points: It treats a high-fidelity attacker signal as an admin question and does not preserve or pivot to other evidence.
Strong answer sketch
1102 means the Security log was cleared, which needs admin rights and is rarely legitimate, so I treat it as likely defense evasion, T1070.001. First I note SubjectUserName and check whether that account and its logon source are expected. Then I pull everything the SIEM received from that host before the clear, especially 4624, 4688, 4720 and System 7045, because the local copy is gone. I also check EDR telemetry and the domain controller for that account's activity. Unless there is a documented maintenance ticket, I escalate it as a likely compromise.
Common mistakes
- Looking for 7045 in the Security log; it is in the System log.
- Not knowing 104 covers clearing of the System and other logs.
- Treating log clearing as low severity or an admin housekeeping task.
Topic 6
Sysmon vs Native Windows Logging
Concept
Sysmon (System Monitor, part of Microsoft Sysinternals) is a free driver and service that writes much richer endpoint telemetry to Microsoft-Windows-Sysmon/Operational. It is driven by an XML config; community baselines like SwiftOnSecurity's or Olaf Hartong's sysmon-modular are common starting points.
Key events: 1 Process Create (with hashes, full command line, parent command line, ProcessGuid), 3 Network Connection (which process connected where), 11 File Create, 13 Registry value set (Run keys and other persistence), 22 DNS query (which process resolved which domain). Others you may meet: 7 image loaded, 8 CreateRemoteThread, 10 ProcessAccess (e.g. LSASS access).
Native logging gives you authentication, account management, policy changes and service installs; Sysmon gives you process-level detail native logs lack. Native 4688 has no hashes and no parent command line, and there is no native equivalent of 'process X made DNS query Y'. Most mature SOCs run both, plus an EDR, which often makes Sysmon redundant on endpoints where it is deployed.
- Sysmon 1 process create (+hashes), 3 network connection, 11 file create, 13 registry value set, 22 DNS query.
- Also useful: 10 ProcessAccess (LSASS dumping), 8 CreateRemoteThread (injection), 7 image load.
- Sysmon 1 vs 4688: Sysmon adds hashes, parent command line and a stable ProcessGuid.
- Native Security log is still needed for logons, account and group changes, and policy changes.
- Sysmon is only as good as its config; a missing filter means missing data.
Real log example
2026-11-18T09:12:44Z Sysmon EventID=1 Host=NW-WS114 Image=C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe ParentImage=C:\Program Files\Microsoft Office\root\Office16\WINWORD.EXE ParentCommandLine="WINWORD.EXE /n C:\Users\rkumar\Downloads\Invoice_88231.doc" Hashes=SHA256=DE96A6E69944335375DC1AC238336066889D9FFC7D73628EF4FE1B1B160AB32C
2026-11-18T09:12:46Z Sysmon EventID=22 Host=NW-WS114 Image=powershell.exe QueryName=cdn-update.example-bad.net QueryResults=198.51.100.23
2026-11-18T09:12:47Z Sysmon EventID=3 Host=NW-WS114 Image=powershell.exe Protocol=tcp DestinationIp=198.51.100.23 DestinationPort=443 Initiated=true
2026-11-18T09:12:52Z Sysmon EventID=11 Host=NW-WS114 Image=powershell.exe TargetFilename=C:\Users\rkumar\AppData\Roaming\upd.dll
2026-11-18T09:12:55Z Sysmon EventID=13 Host=NW-WS114 Image=powershell.exe TargetObject=HKU\S-1-5-21-...-1107\Software\Microsoft\Windows\CurrentVersion\Run\Updater Details="rundll32.exe C:\Users\rkumar\AppData\Roaming\upd.dll,Start"Process, DNS, network, file and registry events all attributed to the same powershell.exe. The Run key (Event 13) is persistence; the hash and domain are IOCs to scope across the fleet.
Interview question
“What is Sysmon and why would you use it if Windows already has Event ID 4688?”
Weak answer
Sysmon is a monitoring tool from Microsoft. It gives more logs than Windows.
Why it loses points: Vague: no event IDs and no concrete example of what native logging misses.
Strong answer sketch
Sysmon is a free Sysinternals tool that logs detailed endpoint activity based on an XML config. Compared to 4688, Sysmon Event 1 adds file hashes, the parent command line and a ProcessGuid, so I can tie later events back to the exact process. It also covers things native logs do not: Event 3 shows which process made a network connection, 22 shows which process made a DNS query, 11 file creation and 13 registry changes like Run key persistence. I still need the native Security log for logons, account and group changes. In an investigation I would use Sysmon 1 for the hash, then 22 and 3 to find the C2, and search for that domain across all hosts.
Common mistakes
- Thinking Sysmon replaces the Security log.
- Not knowing the main Sysmon event IDs (1, 3, 11, 13, 22).
- Assuming Sysmon logs everything regardless of configuration.
More interview questions on this topic
- What are Event IDs 4624 and 4625, and what logon types should you know?L1
- What is Event ID 4688, and what is the catch with command-line logging?L1
- What do Event IDs 4720, 4732, 7045 and 1102 mean, and why do they matter?L1
- What is lateral movement, and how would you detect it on Windows?L1
- What is privilege escalation? Give Windows examples and what you'd look for.L1
- What is Sysmon, and which Sysmon Event IDs are most useful?L1
- What is the difference between brute force and password spraying, and how do they look in logs?L1
- Walk me through how you'd triage a brute-force alert on an RDP server.L1
Knowledge check · Windows Event IDs and Sysmon
0 / 5 answeredFinished this module?
Mark it complete to update your progress (saved in this browser only), then prove it in the simulator.
Frequently asked questions
What is the difference between Logon Type 3 and 10?
Logon Type 3 is a network logon, such as accessing a file share or a remote service. Logon Type 10 is RemoteInteractive, an RDP desktop session. With Network Level Authentication, failed RDP attempts usually log as 4625 type 3, and a successful RDP session logs a 4624 type 10.
What does status code 0xC000006A mean in Event ID 4625?
It means the user name exists but the password was wrong. It usually appears as the SubStatus, with Status 0xC000006D. By contrast 0xC0000064 means the user name does not exist and 0xC0000234 means the account is locked out.
How do I enable command-line logging for Event ID 4688?
Enable Audit Process Creation under Advanced Audit Policy > Detailed Tracking, then enable the Group Policy setting "Include command line in process creation events" under Computer Configuration > Administrative Templates > System > Audit Process Creation.
Which log contains Event ID 7045?
Event 7045, a new service installed, is in the System log, not the Security log. The Security log equivalent is 4697, which requires the Security System Extension audit policy.
What is the difference between Event ID 4728 and 4732?
Both record a member being added to a security-enabled group. 4728 is for global groups such as Domain Admins, and 4732 is for local groups such as a server's local Administrators group or domain local groups.
Which Sysmon event IDs should a SOC analyst know?
At minimum 1 Process Create, 3 Network Connection, 11 File Create, 13 Registry Value Set and 22 DNS Query. Event 10 ProcessAccess is also worth knowing because it is used to detect LSASS credential dumping.