Lab: Windows Event Log Analysis with Splunk
🔬 Lab Practical — DFIR Practical 4 | Est. time: 4 hrs
🎯 Objective
Ingest Windows event logs into Splunk, write SPL queries to identify brute-force attack, successful compromise, and new account creation.
📝 SPL Queries
Query 1: Total Failed Logins
index=main EventCode=4625 | stats countQuery 2: Failed Logins by Source IP
index=main EventCode=4625 | stats count by src_ip | sort -countQuery 3: Brute Force Timeline
index=main EventCode=4625 | timechart span=5m count by src_ipQuery 4: Successful Login After Failures
index=main (EventCode=4624 OR EventCode=4625) src_ip="<suspicious_ip>"
| table _time, EventCode, TargetUserName, LogonType
| sort _timeQuery 5: New Accounts Created
index=main EventCode=4720 | table _time, TargetUserName, SubjectUserName✅ Expected Output
- All 5 SPL query screenshots with results
- Brute-force timeline chart
- 1-paragraph triage note with recommended next step
💭 Observation Questions
- 847 failed logins in 3 minutes from IP 10.0.0.55 targeting Administrator. Write the Splunk alert rule.
- Event 4624 Logon Type 3 from a workstation IP using Administrator at 03:00 AM. What does this indicate?
🔗 Related Notes
- Splunk | SPL Cheatsheet ⚡
- Event IDs ⚡