Security operations

How to Prevent Credential Stuffing: MFA, Rate Limits and Bot Defense

Credential stuffing turns one breach into thousands of account takeovers. Here are the layered defenses that actually stop it, for users and for website owners.

Cysoro Security TeamPublished · 7 min read
[email protected]••••••••••✕MFA requiredstolen password alone failsSECURITY OPERATIONSCredentialstuffingOne leak should not open every door.
Quick answer

Prevent credential stuffing with phishing-resistant multi-factor authentication or passkeys, breached-password screening at sign-up and login, layered rate limiting, bot detection on login forms, and unique passwords per account. No single control works alone, so combine them and monitor failed-login patterns across accounts.

Key takeaways

  • Credential stuffing reuses leaked username and password pairs, so unique passwords and MFA break the attack.
  • OWASP calls MFA by far the best defense, citing Microsoft analysis that it would have stopped 99.9% of account compromises.
  • Website owners should layer rate limits, breached-password checks, bot detection and login monitoring.

One data breach rarely stays in one place. When a site leaks usernames and passwords, attackers feed those pairs into bots that try them on banks, email, shopping and streaming sites — thousands of logins a minute. That attack is credential stuffing, and it works because so many people reuse passwords.

What is credential stuffing?

Credential stuffing is an automated attack that tests username and password pairs leaked from one site's breach against the login pages of other, unrelated sites.

OWASP defines it in its Credential Stuffing Prevention Cheat Sheet as testing pairs "obtained from the breach of another site." MITRE ATT&CK tracks it as technique T1110.004: Credential Stuffing, under Brute Force (T1110).

The attack succeeds only when the password is reused. The attacker does not need to guess anything: the correct password is already on the list. That is why a strong, unique password for every account matters more than a clever password used everywhere.

How does a credential stuffing attack work?

A credential stuffing attack runs in three stages: collect leaked credentials, test them automatically at scale, and take over every account where a pair works.

How credential stuffing works1Breach leaks loginsusernames and passwordsfrom one site are stolenand sold or shared2Bots test thempairs are tried on manyother sites, via proxies,thousands per minute3Accounts taken overworking logins are usedfor fraud, theft orfurther attacksReuse is the fuel: a unique password per site breaks the chain at stage 2.
The three stages of a credential stuffing attack. Illustration by Cysoro.

Stage one is collection. More than 15 billion stolen credentials circulate online, according to industry research cited in the New York Attorney General's credential stuffing guide. Lists from many breaches are combined into "combo lists" that bots can run automatically.

Stage two is testing. Tools such as Sentry MBA automate logins and rotate through proxy networks, so each IP address makes only a few attempts. That distribution defeats simple per-IP blocks and rate limits.

Stage three is exploitation. A working login can mean drained funds, stolen loyalty points, spam sent from your email, or a foothold for a bigger attack. In one investigation, the New York Attorney General's office found login details for more than 1.1 million customer accounts at 17 well-known companies, and most of those attacks had not been detected by the companies.

How is credential stuffing different from brute force and password spraying?

Brute force guesses many passwords against one account, password spraying tries one common password against many accounts, and credential stuffing tries leaked pairs against many accounts.

AttackWhat is triedTargetWhy it works
Brute forceMany passwordsOne accountWeak or guessable password
Password sprayingOne common passwordMany accountsSome users pick common passwords
Credential stuffingLeaked pairs from a breachMany accounts, many sitesPassword reuse across sites
Credential crackingHashed passwords offlineStolen password databaseWeak hashing or weak passwords

The distinction matters because defenses differ. Account lockout after a few failures stops brute force, but barely slows credential stuffing: each account sees only one or two attempts. NIST SP 800-63B allows up to 100 consecutive failed attempts on one account, and a stuffing run never comes close to that on any single account.

How do you know if you are a victim of credential stuffing?

Watch for login alerts from unfamiliar devices or locations, password-reset emails you did not request, and changes to your account that you did not make.

  • Unexpected login alerts from a new device, browser or country.
  • Password-reset or email-change messages you did not trigger.
  • Orders, transfers or messages you did not send.
  • Locked out of your own account because the password or email was changed.
  • A breach notice naming a service where you used the same password.

For website owners, the signs are different: a spike in failed logins spread across many accounts, logins from hosting-provider IP ranges or datacenters, and a rise in password-reset requests. Our guide to how to know if your phone is hacked covers similar warning signs on a device.

How can individuals prevent credential stuffing?

Use a unique password for every account, store them in a password manager, and turn on multi-factor authentication everywhere it is offered.

  1. Never reuse a password. This is the single most effective step. A leaked password then opens nothing else.
  2. Use a password manager. It generates and fills long, random passwords, so uniqueness costs you no memory. See our list of the best open source password managers.
  3. Turn on MFA, preferably passkeys. A passkey or security key cannot be reused by a bot that only has your password.
  4. Check for exposed passwords. Test passwords against known breaches with our free pwned password checker and change any that appear.
  5. Use an email alias or a second email for less important sign-ups, so one leaked address is less useful.
  6. Watch breach alerts. When a service you use reports a breach, change that password and any other place you reused it.

NIST SP 800-63B-4, finalized in July 2025, backs this approach: it requires at least 15 characters for single-factor passwords, forbids forced periodic changes and composition rules, and requires a blocklist check when a password is set.

How do websites prevent credential stuffing?

Websites should layer MFA, breached-password screening, layered rate limiting, bot detection and login monitoring, because no single control stops the attack alone.

Five layers that stop credential stuffing1Multi-factor authenticationa stolen password alone is not enough; require it for admins at minimum2Breached-password screeningreject passwords already known from breaches, at sign-up and on change3Layered rate limitinglimit per account, device and network range, over short and long windows4Bot detection on loginCAPTCHA, device and connection fingerprinting on risky attempts5Monitor and alerttrack failed-login volume across accounts and alert on spikes
Defense in depth against credential stuffing for website owners. Illustration by Cysoro.

Require MFA, or at least step-up MFA

OWASP calls MFA "by far the best defense" against most password attacks, citing Microsoft analysis that it would have stopped 99.9% of account compromises. Where full enforcement is not practical, require it for administrators and trigger it as a step-up check for risky logins: a new device, an unusual country, or an IP that has tried many accounts.

Screen passwords against breach data

Check new passwords at sign-up and on every password change against lists of passwords from earlier breaches, and refuse the ones on them. NIST SP 800-63B makes this a requirement for services that follow it.

Rate limit by more than IP address

Add limits per account, per device fingerprint and per network range, and watch the overall rate of failed logins. Consider short burst windows and long windows together, since attackers spread requests thin enough to stay under any single fixed threshold.

Detect bots on the login form

Use a CAPTCHA or proof-of-work challenge on risky attempts, plus device fingerprinting and connection fingerprinting. OWASP notes that CAPTCHAs are not perfect, and tools exist to break them, so treat them as friction, not a wall.

Consider unpredictable usernames

Credential stuffing relies on username reuse as well as password reuse, since most sites use the email address as the username. Requiring a chosen username makes leaked email-and-password pairs less useful, though it adds friction for users.

What should you do if credential stuffing hits your account?

Act fast: change the compromised password, turn on MFA, sign out everywhere, and check for changes the attacker made to your account.

  1. Change the password from a trusted device, to a long, random password used nowhere else.
  2. Turn on MFA if it was off, and review registered MFA devices and recovery codes.
  3. Sign out of all sessions and revoke unknown devices and connected apps.
  4. Check for changes: email address, phone number, forwarding rules, payment methods and recent orders.
  5. Change the same password everywhere else you reused it, starting with email and banking.
  6. Report fraud to your bank and, in the US, to the FTC and FBI IC3 if money was lost.
Secure email firstYour email account is the key to resetting almost everything else. If that password was reused, change it first and turn on MFA there before working through other accounts.

What mistakes make credential stuffing worse?

The most common mistakes are reusing passwords, relying on account lockout alone, and ignoring failed-login spikes because each account only failed once or twice.

  • Reusing a password "only on low-value sites." Attackers do not care about the low-value site; they care about the password.
  • Trusting lockout alone. Lockout stops brute force, not stuffing, which spreads one or two tries across thousands of accounts.
  • Blocking IPs permanently. Attackers rotate IPs, and legitimate users share ranges. OWASP recommends temporary, graduated mitigation.
  • Showing different errors for bad usernames. That leaks which accounts exist. Use a generic login error.
  • Skipping monitoring. The New York Attorney General found most stuffing attacks at the companies it investigated had gone undetected.

The bottom line

Credential stuffing is not a clever hack. It is industrial-scale reuse of passwords people already gave away in earlier breaches, and it stops working the moment passwords are unique and a second factor stands behind them.

For individuals, that means a password manager, unique passwords and MFA everywhere. For website owners, it means the OWASP layers above. Check whether any of your passwords already appear in known breaches with the free pwned password checker.

Frequently asked questions

What is credential stuffing in simple terms?

Credential stuffing is when attackers take username and password pairs leaked from one website breach and automatically try them on other websites, betting that people reused the same login. Any pair that works gives them access to that account.

How is credential stuffing different from password spraying?

Credential stuffing tries many different leaked passwords, one per account, while password spraying tries one common password against many accounts. Both are automated guessing attacks under MITRE ATT&CK T1110, and most of the same defenses work against both.

Does MFA stop credential stuffing?

Yes, in most cases. A stolen password alone is not enough when a second factor is required, especially a phishing-resistant factor such as a passkey or security key. OWASP calls MFA by far the best defense against password attacks.

Can a CAPTCHA stop credential stuffing?

A CAPTCHA slows automated logins and raises the cost of each attempt, but it does not stop credential stuffing alone. OWASP notes that tools exist to break CAPTCHAs with a reasonably high success rate, so use them as one layer among several.

Why does rate limiting not stop credential stuffing?

Simple per-IP rate limiting fails because attackers spread attempts across large proxy networks, so each IP stays under the limit. Limits per account, per device and per network range, plus monitoring of overall failed-login rates, work better.

What should I do if my account was hit by credential stuffing?

Change the password immediately to one you use nowhere else, turn on MFA, sign out of all sessions, and check for changed email addresses, forwarding rules or purchases. Then check whether the same password was used on other sites and change it there too.

Sources

  1. OWASP — Credential Stuffing Prevention Cheat Sheet
  2. MITRE ATT&CK — Technique T1110.004: Credential Stuffing
  3. NIST — SP 800-63B-4 Digital Identity Guidelines: Authentication and Lifecycle Management
  4. IntentDefend — Credential Stuffing Explained
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against the OWASP Credential Stuffing Prevention Cheat Sheet, MITRE ATT&CK T1110.004 and NIST SP 800-63B-4.

How we write and fact-check →

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free