Initial impact: nothing looked wrong
Investigation: querying auth logs for population-level patterns
/var/log/auth.log on Debian/Ubuntu or /var/log/secure on CentOS/RHEL), SSH-level stuffing shows up as scattered Failed password entries. For web application logins, you need your application's authentication log — the exact format depends on your stack.
Here is a starting point for SSH auth logs. This counts how many distinct accounts each source IP attempted within a time window:
BASH
# Count distinct usernames attempted per source IP in auth.log
grep 'Failed password' /var/log/auth.log \\
| awk '{for(i=1;i<=NF;i++){if(i=="from"){ip=(i+1)}; if(i=="for"&&(i+1)!="invalid"){user=(i+1)}; if(i=="invalid"){user=$(i+2)}}} {print ip, user}' \\
| sort | uniq \\
| awk '{count[$1]++} END {for(ip in count) if(count[ip]>20) print count[ip], ip}' \\
| sort -rn | head -30TEXT
847 203.0.113.42
612 198.51.100.77
445 192.0.2.15Critical discovery: the combo-list fingerprint
Temporary mitigation: slow the bleeding
fail2ban, you can create a custom jail that triggers on the population-level pattern (many distinct usernames from one IP) rather than the per-account pattern. The exact jail configuration depends on your fail2ban version and log format, but the concept is: set maxretry low and use a filter that matches failed login lines regardless of username, so one IP accumulating failures across different accounts gets banned quickly.
Enable CAPTCHA or proof-of-work on login. Even a basic CAPTCHA raises the cost for automated tools significantly. This is a fast temporary measure while you work on the architectural fix.
Notify affected users. Users whose credentials were tested (even unsuccessfully) should be told their email-password combination from another breach is being used in attacks. Encourage them to change passwords everywhere, not only on your platform.
