Credential stuffing and brute force protection for logins
A credential stuffing attack takes a combo list from someone else's breach and replays it one pair at a time against your login form.
How a credential stuffing run works
A loop over email:password pairs, POSTing each to the login endpoint. Funded kits drive a real browser and rotate residential exit addresses, so per-IP limits never bite.
Credential stuffing vs brute force attack vs password spraying
All three are automated guessing at a login form. They differ in what the attacker already has and how the guesses spread across your accounts, and all three go through the same endpoint, so one control there covers them.
| Attack | What is tried | How it spreads | Sign in your logs |
|---|---|---|---|
| Credential stuffing | Real username and password pairs from other breaches | One attempt per account, across many accounts | Many distinct usernames, nearly all failing |
| Brute force attack | Many passwords against one account | Many attempts on each account | One username with a long run of failures |
| Password spraying | A few common passwords against many accounts | One or two attempts per account, spread over hours | Many accounts each failing once or twice |
How to prevent credential stuffing and brute force
A password spraying attack stays under per-account lockouts by design, and credential stuffing does the same with real passwords. A brute force login run is the only one of the three that lockouts catch well, which is why lockouts alone are not enough.
How to prevent credential stuffing comes down to two things: make each guess cost something, and make a correct guess not enough. Login protection needs both, and a login captcha does the first. With PrivCaptcha every pair needs a solved puzzle and a proof-of-work, so a million-pair list is a million challenges. MFA and breached-password checks do the second.
If the question is how to prevent a brute force attack on one account, the order changes: per-account lockout or backoff first, then the challenge, then alerts on failed-login spikes. Brute force protection that relies on IP limits alone fails against residential proxies, which is why the challenge is priced per attempt instead of per address.
Why reused passwords make credential stuffing work
Credential stuffing works because people reuse passwords. Every large breach adds millions of email and password pairs to lists traded online, and a share of those pairs open accounts on unrelated sites.
Your users did nothing wrong on your site, yet their accounts open with a correct password, and from your side the login looks normal. The defense has to make the number of tries expensive, because each single try looks exactly like a real sign-in.
Encourage password managers and passkeys, check new passwords against known breach lists, and treat a rise in failed logins as an attack rather than as forgetful users.
How PrivCaptcha stops credential stuffing
Four steps, with the numbers the server uses. Nothing here is configured by you.
One token per pair, spent once
A solved puzzle mints a token and the verify spends it. A million pairs needs a million challenges.
What the run scores on arrival
A bare HTTP client with bot user-agent and no Accept-Language scores 20+40+15=75, level 4: 10 degrees, 6 pixels, 10 shapes.
Missed puzzles compound to level 4
Misses add 8 each, capped at +40. Five misses take that profile from 20 to 60, level 4: 10 degrees, 6 pixels.
Each attempt pays compute set by its score
Proof-of-work scales with risk: 14 bits at 20, 18 bits at 75. It is checked first, so the work is spent on wrong answers too.
Add PrivCaptcha to your login form in two lines of code
Script tag, container in front of the submit button, and your existing verify call. Already on reCAPTCHA or hCaptcha? That backend code stays exactly as it is.
Inside the login form, so privcaptcha-response posts with the username and password.
The login handler verifies the token against /api/v1/siteverify before any password comparison.
A re-rendered form carrying the old privcaptcha-response gets invalid-input-response. Reset the widget on every failed login.
What this does not solve about credential stuffing
This is a price, not a cap. A correct pair still passes. Lockout, breached-password checks and MFA remain yours. Rotating residential exits resets the daily counter.
Common questions about credential stuffing
How PrivCaptcha prices credential stuffing, and where it stops.
Put PrivCaptcha in front of your login form
10,000 verifications a month are free, and the integration is the one you already have.