PrivCaptcha.com

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.

Signs of credential stuffing in your logs
Failed logins rise and distinct usernames rise with them.
Many attempted usernames have never existed in your user table.
Login success rate drops to a fraction of a percent.

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.

What the attacker pays for credential stuffing now: A million-pair list at a half-percent hit rate yields 5,000 working accounts and 995,000 failures. All million need their own challenge and proof-of-work search.

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.

reCAPTCHA siteverify hCaptcha siteverify
Server SDKs
<!-- login form -->
<script src="https://privcaptcha.com/1/api.js" async defer></script>
<div class="privcaptcha" data-sitekey="your-site-key"></div>
<!-- server side, unchanged -->
POST https://privcaptcha.com/api/v1/siteverify
Where it goes

Inside the login form, so privcaptcha-response posts with the username and password.

What the backend does

The login handler verifies the token against /api/v1/siteverify before any password comparison.

The usual mistake

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.

No, it complements it. Rate limits are per-IP, and a large NAT puts thousands of real users behind one address, so a tight limit locks out a campus rather than stopping a botnet. The puzzle and proof-of-work price each attempt instead, whoever it comes from.
Not for their neighbors' behavior alone. Scoring leans on what the request itself reveals plus that client's own recent failures, and a track record of solving lowers the score again.
No. A credential stuffing run tries each pair once, so a challenge that appears only after a few failures on one account never appears at all. Put it on every login request and let the risk score set how hard it is.
A person solves one puzzle in a couple of seconds, and the proof-of-work runs while they do.
Keep the challenge on every login request and reset the widget after each failed attempt. Check which usernames logged in successfully during the run, force a password reset on those accounts, and add breached-password checks so the next list finds fewer working pairs.

Put PrivCaptcha in front of your login form

10,000 verifications a month are free, and the integration is the one you already have.