Credential stuffing is the replay of email and password pairs leaked from other sites against your login. People reuse passwords, so a small share of any leaked list works almost anywhere. The attacker does not need to break your system; they need volume, and a login form that answers quickly. Credential stuffing protection is telling those replays apart from your customers' own logins, and stopping them without locking anyone out. Each pair that works is an account takeover (ATO), so account takeover prevention starts at the login: stop credential stuffing there, before the attacker is in. It is not brute force, which tries many passwords on one account; credential stuffing attacks try one known password on each of many accounts. Bot attack protection at the login stops both before a password is checked. In OWASP's list of automated threats it is OAT-008 Credential Stuffing; the brute-force kind is OAT-007 Credential Cracking.
What it looks like in your logs
- A failure rate that jumps. Normal logins mostly succeed. A stuffing run fails nineteen times out of twenty.
- Many accounts, few attempts each. Unlike brute force, each account is tried once or twice, so per-account lockouts never trigger.
- Many addresses. Attempts come through residential proxy pools, so blocking the top IPs barely dents it.
- Logins with no page. The login endpoint is called directly, by clients that never loaded the login page.
- Machine timing. Requests at a steady cadence, at hours your customers sleep.
Why the usual defences fall short
Rate limits per IP are beaten by proxy pools with thousands of exits. Account lockouts hurt your customers more than the attacker, and can be turned into a way to lock people out on purpose. CAPTCHAs are solved by paid services for a fraction of a cent. Each one adds friction for real people and a small cost for bots.
Judge the client, not just the request
A stuffing tool can rotate IPs and User-Agents on every request. What it struggles to fake is a whole, consistent browser that loaded your page, ran your script and behaves like a person across the session. Bot Protection judges the login with that: the tag on your page, the request your server forwards, and what the same client tried before, across many accounts.
Where to put the check
Ask before you verify the password, so a bot never learns whether a pair works:
- bot: answer as if the password were wrong. The tool learns nothing, and your customer is never involved.
- unknown with a high bot_score: ask for a second factor or an emailed code before letting the session in.
- everyone else: the normal login.
Answering a bot with the same "wrong password" a person would see matters: a distinct block page tells the attacker to switch tactics.
After the login
Tell your bot check what happened next. A login that later places a real order, or a chargeback that proves the opposite, is evidence that no request header can fake, and it sharpens the next decision about the same visitor.