Credential stuffing is the automated replay of usernames and passwords leaked from one site against another. It works because people reuse passwords. The attacker doesn’t guess anything: they take a list of real credential pairs from an old breach and try every pair on your login form.
OWASP lists it as automated threat OAT-008. It’s cheap to run, needs no skill, and a low success rate is still a lot of accounts when the list has millions of entries.
Why it matters even when your site wasn’t breached
Your database can be perfectly secure and your users still get taken over, because the passwords came from somewhere else. In 2023, attackers used credential stuffing to log into about 14,000 23andMe accounts. Through a profile-sharing feature, those accounts exposed data on millions more users. The initial access didn’t need a single vulnerability on 23andMe’s side.
What an attack looks like
- A spike in failed logins, often with a high share of usernames that don’t exist on your site.
- Many accounts tried from one device or one browser environment, even as the IP changes.
- Traffic spread across residential IPs, with each IP sending only a few attempts. See residential proxy detection.
- Identical client fingerprints across thousands of attempts that claim to come from different people.
- Attempts on the mobile API or legacy endpoints, which often lack the protections on the web login page.
- Fast follow-up after success: email, password, phone or payout changes within minutes of login.
Why IP rate limiting fails
A per-IP limit of, say, ten attempts a minute was once a reasonable defense. Today, attack tools rotate through pools of residential proxies with millions of IPs. Each IP sends one or two attempts and disappears. To an IP-based rule, the attack looks like a thousand unrelated users who each mistyped a password once.
Meanwhile, legitimate users behind a carrier NAT or a corporate gateway share an IP with thousands of others and hit the limit first. IP rules end up blocking customers and missing attackers.
Defenses that work
Layer them. No single control is enough.
Know the device, not just the IP
A persistent device or visitor ID lets you count attempts per device and accounts per device. One device trying 300 different accounts is an attack whatever IP it uses. This is the most effective single signal against distributed stuffing.
Detect the automation
Most stuffing runs on HTTP libraries or automated browsers. Network fingerprints catch libraries posing as browsers, and environment and behavior checks catch automated browsers. See headless browser detection.
Check for breached passwords
NIST SP 800-63B tells verifiers to compare passwords against lists of known compromised values. Check at signup, at password change, and at login, where a match can trigger a reset. Services like the Pwned Passwords range API let you check without sending the password: you send only the first five characters of its hash.
Step up instead of blocking
When signals are mixed, don’t block. Ask for a second factor, an email confirmation or a low-friction challenge. Real users get through, and the automation stalls. Save hard blocks for high-confidence detections.
Close the side doors
Protect every authentication surface the same way: web login, mobile API, password reset, legacy endpoints and partner APIs. Attackers go to whichever one has the weakest checks.
Don’t help the attacker
Return the same error for an unknown username and a wrong password, and keep response times similar, so the attack can’t be used to find out which accounts exist.
Move to passkeys
Passkeys are unique per site and can’t be phished or reused, which removes the underlying weakness. Offer them, encourage them, and keep defending password logins until they’re gone.
Measuring success
Track the failed-login ratio, account takeover reports, password resets after suspicious logins, and how many real users hit step-up challenges. The aim isn’t zero failed logins. It’s keeping failed automated attempts away from real accounts while real users don’t notice anything.
Tools for the job
Device intelligence APIs give you the visitor ID and velocity signals. Bot management products block automation at the edge. Many teams use both. Compare Fingerprint, SEON, Arkose Labs, DataDome and Kasada, or start with the buyer’s guide.