Why the lockout counter never reaches its limit
What lockout does do, and where it can hurt
The signal is in the aggregate
- Many distinct usernames from one source. A real person fails on one or two accounts they own. A stuffing node fails on dozens or hundreds of different usernames.
- Clusters in the same network. Even when IPs rotate, they often come from the same /24 range, the same hosting provider, or the same ASN (autonomous system number, the ID of the network that announces those IP ranges on the internet). A burst of failures from a data center ASN against a consumer login page is unusual.
- Timing that doesn't match your users. Failures spike at hours when your real traffic is low, or arrive at a steady machine rhythm instead of the uneven pattern humans produce.
- Usernames that don't exist. Combo lists come from other services, so many attempted usernames were never registered with you. A rising share of failures on unknown usernames is a strong hint.
A weekly review you can actually run
timestamp,ip,username per line, standard shell tools are enough. Start by counting how many distinct usernames each IP and each /24 failed against:
BASH
# failures.csv: timestamp,ip,username (one row per failed login, IPv4)
# Distinct usernames per source IP, top 20
awk -F',' '{print 2","3}' failures.csv | sort -u | cut -d',' -f1 | sort | uniq -c | sort -rn | head -20
# Distinct usernames per /24 range, top 20
awk -F',' '{split(2,o,"."); print o[1]"."o[2]"."o[3]".0/24,"3}' failures.csv | sort -u | cut -d',' -f1 | sort | uniq -c | sort -rn | head -202026-11-30T12:36:53), the first 13 characters give you the hour, which is enough to see bursts:
BASH
# Failed logins per hour, in chronological order
cut -d',' -f1 failures.csv | cut -c1-13 | sort | uniq -cBASH
# Look up the ASN and network name for one IP (read-only query)
whois -h whois.cymru.com ' -v 203.0.113.10'