Insights

Reverse Proxy Logs Show No Brute Force but Accounts Keep Getting Taken Over? Check for Low-and-Slow ATO

November 16, 2026
0:00
Your WAF is quiet. fail2ban shows nothing interesting. No IP has tripped any brute-force threshold. Yet users keep reporting compromised accounts. The disconnect is not a misconfiguration — it is a fundamental gap in how per-IP detection works when attackers distribute credential stuffing across thousands of source addresses, each making only one or two login attempts. This article walks through the mechanism that makes these attacks invisible to traditional defenses, then shows how to pull the signal out of reverse proxy logs that are already sitting on your disk.
fail2ban, mod_security rate rules, and most WAF brute-force modules work the same way internally: count requests from a single source IP within a time window, trigger when the count exceeds a threshold. A typical fail2ban jail for a web login might use maxretry = 5 over a 600-second window. An attacker sending 50 login attempts from one IP gets banned on attempt six. Modern credential stuffing tools — OpenBullet being a well-documented example — route requests through pools of residential proxies. Each proxy IP sends one or two requests, then the tool moves to the next IP. If an attacker has a list of 100,000 stolen credential pairs and a pool of 50,000 residential proxy IPs, each IP averages about two requests total. No IP ever reaches maxretry = 5. fail2ban never fires. The WAF rate-limit rule never triggers. From the perspective of any per-IP counter, every request looks like a normal user trying to log in. This is not a theoretical concern. Residential proxy networks rent access to real consumer IP addresses, so the traffic even passes IP reputation checks — these are not datacenter IPs or known Tor exit nodes.
The reverse proxy (Nginx, Apache, LiteSpeed, HAProxy, Traefik) sits at the edge and logs every request before the application processes it. A standard Nginx combined log line contains:
  • Client IP
  • Timestamp
  • HTTP method and URI (e.g., POST /wp-login.php or POST /api/auth/login)
  • HTTP status code returned
  • Response size
  • Referer header
  • User-Agent string
Each field is a data point. Individually, one log line from a credential stuffing attempt looks identical to a legitimate login attempt. The signal only emerges when you aggregate across many lines and look for statistical patterns that no single legitimate user session would produce. Three patterns are particularly reliable: user-agent clustering, geographic spread of failed logins to the same endpoint, and sudden shifts in the success-to-failure ratio on authentication endpoints.
Attackers configure their tools with a list of user-agent strings to rotate through, but the list is finite. A credential stuffing campaign hitting your login endpoint over a few hours might use 10 to 30 distinct user-agent strings across thousands of IPs, while legitimate traffic from the same number of real users would show hundreds of distinct user-agents (different browser versions, OS versions, mobile devices, app webviews). To check this, extract the user-agent distribution for requests to your login endpoint over a specific time window. With Nginx's default combined log format, the user-agent is the last quoted field:
BASH
# Extract user-agents hitting the login endpoint in the last 24h of logs
grep 'POST /wp-login.php' /var/log/nginx/access.log \\
  | awk -F'"' '{print $6}' \\
  | sort | uniq -c | sort -rn | head -20
Sample output format:
TEXT
   4821 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
   4793 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
   4410 Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36
     12 Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X)
      3 Mozilla/5.0 (Linux; Android 14; Pixel 8)
When three user-agent strings account for the vast majority of login POST requests while everything else is in single digits, that is a strong indicator of automated tooling rotating through a short UA list. Legitimate traffic does not cluster this tightly around a handful of strings. Adjust the grep pattern to match your actual login endpoint path (/api/v1/login, /auth/token, /administrator/index.php, etc.).
A single user might fail a login from one location. A credential stuffing campaign produces failed logins from dozens of countries within minutes, all targeting the same endpoint. Legitimate users of most web applications come from a limited set of geographic regions. If you have a GeoIP lookup tool installed (such as geoiplookup from the legacy GeoIP package, or mmdbinspect for MaxMind's newer GeoLite2 databases), you can map source IPs from failed login attempts to countries:
BASH
# Extract unique IPs that got a non-2xx response on the login endpoint
grep 'POST /wp-login.php' /var/log/nginx/access.log \\
  | awk '9 !~ /^2/ {print1}' \\
  | sort -u \\
  | while read ip; do
      country=(geoiplookup "ip" 2>/dev/null | head -1 | awk -F': ' '{print $2}')
      echo "$country"
    done \\
  | sort | uniq -c | sort -rn
If your application serves users primarily in one or two countries but failed logins arrive from 30+ countries in a single day, that geographic dispersion is a hallmark of a distributed proxy network. No organic user base produces that pattern. Note: the $9 field position assumes Nginx combined log format where the status code is the ninth space-delimited field. If you use a custom log_format, adjust accordingly.
This is the most dangerous signal and the one most often missed. During a credential stuffing campaign using a high-quality combo list (username-password pairs leaked from breaches elsewhere), the attacker achieves a non-trivial success rate. If your application returns different HTTP status codes for successful vs. failed logins (e.g., 302 redirect on success, 200 with error message on failure, or 401 on failure), you can track the ratio over time. A sudden increase in successful logins on the auth endpoint — especially if the baseline is stable — suggests valid credentials are being found. Even a success rate of a fraction of a percent across 100,000 attempts means hundreds of compromised accounts. To get a rough hourly breakdown of success vs. failure on a login endpoint:
BASH
# Hourly success (302) vs failure (200 or 401) on login endpoint
grep 'POST /wp-login.php' /var/log/nginx/access.log \\
  | awk '{split(4,a,":"); hour=a[2]; if(9=="302") s[hour]++; else f[hour]++} 
    END {for(h in s) printf "Hour %s: success=%d fail=%d ratio=%.4f\
", h, s[h], f[h]+0, s[h]/(s[h]+f[h]+0.001)}' \\
  | sort
A jump from a typical ratio near zero to even a small positive number during off-peak hours warrants investigation. This is where the actual account takeovers happen. One important caveat: many applications return HTTP 200 for both successful and failed logins, with the actual result only visible in the response body. If your application does this, reverse proxy logs alone cannot distinguish success from failure by status code. That is a separate problem worth fixing at the application layer — returning distinct status codes or logging authentication outcomes to a dedicated auth log. For more on that specific issue, see Login Failures Show 200 OK Instead of 401? Your Auth Endpoint Leaks ATO Success Signals.
No single signal is conclusive on its own. A tight user-agent cluster might just be a corporate network where everyone runs the same managed browser. Geographic spread might reflect a genuinely international user base. A success-rate bump might be a marketing campaign driving new signups. But when two or three of these signals appear simultaneously on the same endpoint during the same time window, the probability of a low-and-slow credential stuffing campaign is high:
  1. Identify the time window where login volume increased.
  2. Check user-agent diversity during that window — is it suspiciously low?
  3. Check geographic distribution of source IPs — is it suspiciously wide?
  4. Check the success-to-failure ratio — did it shift?
If all three are abnormal, you are likely looking at an active ATO campaign.
Detection is the hard part. Response is more straightforward: Immediate: Identify accounts that had successful logins during the attack window from IPs that also appear in the failed-login pool. Force password resets on those accounts. Invalidate their active sessions. Short-term: Add a CAPTCHA or proof-of-work challenge to the login endpoint. This does not stop determined attackers forever, but it breaks compatibility with most off-the-shelf stuffing tools and buys time. Structural: Per-IP rate limiting is not useless — keep it — but supplement it with per-endpoint rate limiting that counts total requests to the login path regardless of source IP. If your login endpoint normally handles a few hundred POSTs per hour and suddenly receives thousands, that global counter catches what per-IP counters miss. For deeper analysis of how credential stuffing tools like OpenBullet structure their requests and what traces they leave, see How OpenBullet Credential Stuffing Bypasses WAF and What Logs Actually Reveal.
The reverse proxy logs needed to detect low-and-slow ATO campaigns are almost certainly already being written to disk on your server. The gap is not in data collection — it is in analysis. Most teams only look at these logs reactively, after an incident, and even then they search for a specific IP or a specific user. The patterns described here require aggregate analysis: counting, grouping, and comparing distributions rather than grepping for a single needle. Building a habit of running these queries periodically — weekly, or triggered by user-reported compromises — turns passive log storage into an active detection layer. No new tools required. Just grep, awk, sort, and the willingness to look at the data from the attacker's perspective instead of one IP at a time.

Join My Newsletter & Get Updates!

Get notified whenever a new technical guide, server infrastructure breakdown, or personal reflection goes live, plus a curated weekly digest.