Windows failed logon (Event 4625) brute-force detection with time bucketing
Windows failed logon (Event 4625) brute-force detection with time bucketing
Splunk / SIEM
Premium content locked
You can preview the command metadata. Full explanation, examples, and lab-style details are available to premium subscribers.
View premium optionsCommand
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...
Related
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
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"
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