Ekene Eche
← All projects
Completed

Active Directory Security Monitoring with Splunk

A Windows Active Directory lab with failed login detection, account lockout monitoring, security dashboards, and scheduled Splunk alerts.

View on GitHub

Goal

Build an Active Directory lab, collect Windows security events in Splunk, and test how failed authentication and account lockout activity appears in searches, dashboards, and scheduled alerts.

Lab environment

Built a Windows Server 2022 virtual machine in VMware Workstation, configured Active Directory Domain Services, and created a lab organizational unit and test accounts.

Installed Splunk Universal Forwarder and verified that Windows Application, Security, and System events were searchable in Splunk Enterprise.

Active Directory lab domain and test users in the LabUsers organizational unit.
Active Directory lab domain and test users in the LabUsers organizational unit.
Windows Application, Security, and System event sources are searchable in Splunk.
Windows Application, Security, and System event sources are searchable in Splunk.

Detection and account lockout policy

The effective domain policy shows a threshold of 5 attempts, a 30-minute duration, and a 30-minute reset window.
The effective domain policy shows a threshold of 5 attempts, a 30-minute duration, and a 30-minute reset window.
Event ID 4625 results show the failed logon, source, failure reason, and logon type.
Event ID 4625 results show the failed logon, source, failure reason, and logon type.
Event ID 4740 identifies the locked test account and caller computer.
Event ID 4740 identifies the locked test account and caller computer.

Dashboard and scheduled alerts

Created the Active Directory Security Monitoring dashboard with login charts, account activity, suspicious-login summaries, and populated lockout results.

Configured failed-login and account lockout alerts to run every five minutes using */5 * * * *, with a result-count trigger and a 15-minute throttle. The lockout alert uses High severity in Splunk's Triggered Alerts. Both alerts have recorded trigger history.

The Active Directory Security Monitoring dashboard charts failed and successful login activity.
The Active Directory Security Monitoring dashboard charts failed and successful login activity.
Dashboard tables show suspicious-login summaries and a populated account lockout result.
Dashboard tables show suspicious-login summaries and a populated account lockout result.
The lockout alert runs every five minutes; this configuration screenshot shows a 15-minute search lookback.
The lockout alert runs every five minutes; this configuration screenshot shows a 15-minute search lookback.
The lockout alert uses a 15-minute throttle and a High severity Add to Triggered Alerts action.
The lockout alert uses a 15-minute throttle and a High severity Add to Triggered Alerts action.

Results and validation

The core lab is complete: Windows events were collected, failed-login searches returned results, a test account locked out, and the resulting lockout was visible in Splunk.

Further validation will confirm the final saved five-minute alert search window and throttle behavior. Earlier alert settings show a 15-minute lookback. Multivalued account fields also need normalization, and actual 30-minute account recovery was not timed.

Future improvements

Python triage, automated reporting, and external notifications are planned additions.