Security operations

Credential Stuffing: What It Is, How It Works, and How to Stop It

Credential stuffing works because people reuse passwords. Attackers replay leaked pairs from one breach against other logins, one or two tries per account.

Cysoro Security TeamPublished · 7 min read
Sign in[email protected]••••••••••Log in — denied 123 SECURITY OPERATIONS Credentialstuffing One leaked password. Many doors.
Quick answer

Credential stuffing is an automated attack that takes username and password pairs stolen in one website's data breach and tries them, usually once or twice per account, against the login pages of other sites. It works because people reuse passwords, so a pair leaked from one service can open another. Unique passwords plus multi-factor authentication stop it.

Key takeaways

  • Credential stuffing replays real leaked passwords, so password strength alone cannot stop it — only unique passwords can.
  • One or two attempts per account means per-account lockouts rarely fire, so defenses must look across accounts.
  • Multi-factor authentication is the strongest defense, with breached-password screening and layered rate limits behind it.

Your password was never guessed. It was stolen from one website you barely remember, then tried automatically on your email, your bank, and your work account. That is credential stuffing, and it works because so many of us reuse passwords.

What is credential stuffing?

Credential stuffing is the automated injection of breached username and password pairs into the login forms of other sites, to find accounts that use the same credentials. OWASP defines it exactly that way in its Credential Stuffing Prevention Cheat Sheet.

MITRE ATT&CK tracks the same technique as T1110.004, a sub-technique of brute force. Its description is blunt: adversaries use credentials obtained from breach dumps of unrelated accounts to gain access to target accounts through credential overlap.

The key point is that nothing on the target site has to be broken. The login form works as designed, the password is real, and the attacker only needs a small fraction of the pairs to match.

How does a credential stuffing attack work?

A credential stuffing campaign has four stages: get the list, prepare the automation, test it at scale, and cash in the accounts that answer. Each stage is cheap, and only the last one needs judgment.

First, the attacker gets a list. Large numbers of username and password pairs are dumped online when a website is compromised, and those lists are traded, sold, or published. The pairs often include the email address, which many sites also use as the username.

Next, the attacker loads the list into a bot or script and points it at a target login page. The bot tries each pair once or twice, across millions of accounts, spreading the attempts across many IP addresses and devices so no single source looks noisy. Then the attacker collects the successes: accounts where the password matched.

How credential stuffing works 1Breachone site loses itsusername andpassword database 2Listpairs are traded,sold, or publishedonline in bulk 3Stuffingbots try each paironce or twice onother sites, at scale 4Takeovermatches are drained,sold, or used toattack further The weak link is password reuse, not the target site. One leaked password can open many doors.
The four stages of a credential stuffing attack. Illustration by Cysoro.

Finally, the attacker monetizes the wins. That can mean draining money, stealing personal data, sending spam or phishing from the account, or selling the working logins on to someone else. A single working email account is often the prize, because it can reset passwords on other services.

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

These three attacks reach the same login form, but they differ in what the attacker already knows, and that difference decides which defense stops each one. Treating them as synonyms is why many login defenses fail.

AttackWhat the attacker hasPattern at the loginWhat stops it
Credential stuffingReal leaked pairs from another breachOne or two attempts per account, across millions of accountsUnique passwords, MFA, breached-password screening
Brute forceNo valid password; guesses from a dictionaryMany attempts against one accountAccount lockout, rate limits, strong passwords
Password sprayingA list of account names and a few common passwordsOne common password against many accountsBlocking common passwords, MFA, rate limits

An account lockout after five failures stops brute force and does almost nothing against the other two. A rate limit per IP address stops one noisy source and does nothing against distributed stuffing. OWASP is explicit that blocking IP addresses should not be used as the sole or primary defense.

MITRE adds that stuffing commonly targets management services, not just websites: SSH on port 22, Telnet on 23, FTP on 21, SMB on 139 and 445, LDAP on 389, Kerberos on 88, and RDP on 3389. A work VPN or email login is as much a target as a shopping site.

Why does credential stuffing work so well?

It works because people reuse passwords, and because a login page cannot tell a real user from a bot presenting the right password. NIST makes the same point in SP 800-63B-4, its current authentication guideline, published in July 2025: its implementation FAQ notes that password managers encourage passwords unique to each service, which protects against guessing, cracking, and spraying attacks.

CISA puts it more bluntly: reusing a password, even a strong one, endangers your accounts just as much as a weak one.

It is also hard to spot. Every attempt uses a legitimate credential, arrives from a rotating address, and happens at a low frequency per target. The login log shows many accounts, each tried once or twice, with a few successes hidden among the failures.

Success rates are low per pair, but the lists hold millions of pairs. Even a tiny hit rate yields thousands of working accounts, which is why the attack stays profitable. For more on the wider pattern, see our guide to what spear phishing is, where stolen credentials are used in the same way.

What are the signs of credential stuffing?

For an account holder, the signs are a login alert from a device or place you do not recognize, a password reset email you did not request, and changes to your recovery email, phone number, or payment details. Check your account activity and sessions first, not just your inbox.

For a website team, the signs are a sharp rise in login attempts with a low success rate, many distinct usernames tried from one address in a short window, logins from unusual countries, and successes just after a burst of failures. That pattern — many failed attempts using distinct pairs from a single IP address in a short window — is what to watch for.

Watch distinct accounts per source, not just total failures. Attackers who rotate IPs defeat a per-IP count, so also chart failures per minute across the whole login endpoint and look for successes that follow a burst.

How do you protect yourself from credential stuffing?

Use a unique password for every account, stored in a password manager. That single habit defeats credential stuffing even if one of your passwords is ever exposed, because the leaked pair matches nowhere else.

Turn on multi-factor authentication everywhere it matters: email first, then banking, work accounts, and cloud storage. Prefer a passkey or security key where offered, then an authenticator app, then a code by text. Email is the priority because it can reset almost everything else.

Check whether your passwords appear in known breaches. You can test a password safely with our pwned password checker, and if it has been exposed, change it everywhere you used it.

Generate the replacement with our password generator so it is long, random, and unique.

Never reuse a work password on a personal site, or the other way round. If a shopping site is breached, the attacker will try that password on your work email within hours. Keep work and personal credentials in separate vaults if you can.

How should websites defend against credential stuffing?

OWASP recommends layered defenses, because no single control stops this attack. Multi-factor authentication is the strongest, and OWASP calls it the best defense against credential stuffing. Where MFA cannot be required for everyone, ask for a second factor only in suspicious cases: a new device or IP, an unusual country, or traffic that looks scripted.

Screen new passwords against lists of breached credentials at signup and at login. OWASP's cheat sheet recommends this screening, citing the requirement to verify new passwords against breached-password data, and tells services to reject passwords that appear in breach data and tell the user why.

Rate-limit on several signals at once: per account, per IP, per device, and across the whole login endpoint, over short and long windows. Add delays after failures rather than hard lockouts, because an attacker can lock out any user by triggering a strict lockout. Give the same error message for an unknown user and a wrong password, so the login page cannot be used to test which accounts exist.

Five layers that stop credential stuffing 1Multi-factor authenticationa stolen password alone is not enough; prefer passkeys or security keys 2Breached-password screeningreject passwords already in breach data, at signup and at login 3Layered rate limitsper account, per IP, per device and globally, over short and long windows 4Device and behavior signalsnew device, unusual country, scripted traffic triggers a step-up check 5Reset breached accounts fastproactively reset accounts known to appear in breach data
Layered defenses for login pages, from the OWASP cheat sheet. Illustration by Cysoro.

Finally, monitor and measure. Each defense should report how much attack volume it detected and stopped, filterable by IP, so you can see which layer is doing the work. And when accounts are known to appear in breached credentials, reset them proactively.

What should you do if your account was taken over?

Act fast, and in this order: change the password from a clean device, sign out of all sessions, and check for changes the attacker made, such as new forwarding rules, a changed recovery email, or added MFA devices.

Then change the same password everywhere else you used it, because that reuse is how the attacker got in. Check your email for password reset messages you did not send, and check bank and payment activity for anything you did not do.

Report the takeover to the service, and if money moved, report it to your bank and, in the US, to the FBI's Internet Crime Complaint Center at ic3.gov. Tell your IT team at work if a work account was involved, even if nothing seemed to happen.

Do not just change the password and move onAttackers often add a forwarding rule or a second recovery email so they keep access after a password change. Check forwarding, recovery options, and connected devices before you call the account safe.

The bottom line

Credential stuffing is not a guessing game. It replays real passwords from someone else's breach, one or two tries per account, and it only works when passwords are reused. Unique passwords break the chain, and multi-factor authentication stops the attack even when a password leaks.

Start with your email account today: a unique password and a second factor there protects every account that email can reset. Test any password you have reused with the free pwned password checker.

Replace any exposed password with a fresh one from the password generator.

Frequently asked questions

What is credential stuffing in simple terms?

Attackers take usernames and passwords leaked from one website and automatically try them on other websites. If you reused the same password, the pair works there too, and the attacker takes over that account.

What is the difference between credential stuffing and brute force?

Brute force guesses many passwords against one account. Credential stuffing tries real leaked pairs, usually once or twice each, against many accounts. Lockouts stop brute force but rarely stop stuffing, because no single account sees many failures.

What is password spraying?

Password spraying tries one common password, such as a seasonal password, against many different accounts. It is the opposite pattern to stuffing: one password, many accounts, instead of many leaked pairs, one try each.

How do I know if my account was hit by credential stuffing?

Look for login alerts from a new device or place, password reset emails you did not ask for, and changes to your email, phone number, or payment details. Check whether your password appears in a known breach and change it at once.

Does a strong password stop credential stuffing?

No, not by itself. Stuffing uses the real password, however strong it is. A strong password only helps if it is also unique to that one site. A password manager plus multi-factor authentication is the combination that stops it.

Can multi-factor authentication stop credential stuffing?

Yes, it is the strongest defense. Even with the right password, the attacker still needs your second factor, such as a passkey, security key, or authenticator code. That is why OWASP calls multi-factor authentication the best defense against this attack.

Is credential stuffing illegal?

Yes. Trying stolen credentials to access accounts without permission is unauthorized access and fraud in most countries, including under the US Computer Fraud and Abuse Act. It can be prosecuted even when the attacker never guesses a password.

Sources

  1. OWASP Cheat Sheet Series — Credential Stuffing Prevention
  2. MITRE ATT&CK — T1110.004 Credential Stuffing
  3. NIST — SP 800-63B-4, Digital Identity Guidelines: Authentication and Authenticator Management
  4. CISA — Choosing and Protecting Passwords
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, NIST SP 800-63B-4, and CISA's password guidance.

How we write and fact-check →

See where your domain stands

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

Start free