Back to library
Defensive Advanced Premium

Windows failed logon (Event 4625) brute-force detection with time bucketing

Windows failed logon (Event 4625) brute-force detection with time bucketing

Splunk / SIEM

Log in to save

Premium content locked

You can preview the command metadata. Full explanation, examples, and lab-style details are available to premium subscribers.

View premium options

Command

index=windows EventCode=4625 | bucket _time span=5m | stats count by _time, src_ip, Account_Name | where count > 10 | eval alert="Possible Brute Force" | table _time, src_ip, Account_Name, count, alert

Syntax

index=<index> EventCode=4625 | bucket _time span=<interval> | stats count by <fields>

Use case

Windows Active Directory monitoring in enterprise SOC environments to detect credential stuffing and password spraying attacks.

Explanation

Advanced Windows authentication monitoring: • EventCode=4625 → Windows failed logon event • bucket _time span=5m → Group events into 5-minute windows • stats count by _time, src_ip, Account_Name → Aggregate per bucket • where count > 10...

windows linux splunk windows event-log 4625 brute-force active-directory

Related

Defensive Beginner Free

List all registered Wazuh agents and their current connection status

List all registered Wazuh agents and their current connection status

/var/ossec/bin/agent_control -l
wazuh siem agent monitoring soc
Wazuh / SIEM Open
Defensive Advanced Premium

Query Wazuh REST API for recent high-severity alerts (level 10+)

Query Wazuh REST API for recent high-severity alerts (level 10+)

curl -k -u admin:SecretPassword -X GET "https://wazuh-manager:55000/alerts?pretty=true&limit=10&sort=-timestamp&q=rule.level>=10"
wazuh api alerts soc siem
Wazuh / SIEM Open
Defensive Intermediate Free

Splunk SPL query — Top 10 source IPs generating SSH authentication failures

Splunk SPL query — Top 10 source IPs generating SSH authentication failures

index=main sourcetype=syslog "Failed password" | stats count by src_ip | sort -count | head 10
splunk spl siem brute-force detection
Splunk / SIEM Open