Security

Credential Stuffing Attacks: How They Work and How 2FA Stops Them

Billions of leaked username-password pairs circulate on criminal marketplaces, and credential stuffing is how attackers turn that data into account takeovers at scale. Here's exactly how the attack works and why it collapses against 2FA.

Nency
Published Sep 15, 2026
4 min read

What Credential Stuffing Actually Is

Credential stuffing is an automated attack where a bot systematically tries username-and-password pairs — sourced from previous data breaches, not guessed — against login pages across many different websites and services. According to OWASP, it's generally classified as a specific subset of brute-force attack, though it differs from classic brute-forcing in an important way: instead of guessing passwords randomly, it uses known-valid combinations, betting on the extremely common habit of password reuse across multiple accounts.

The attack scales because of two factors working together: the sheer volume of leaked credentials in circulation — often cited in the tens of billions across historical breaches — and how cheap it is to automate testing them against thousands of login endpoints simultaneously.

Why It Keeps Working Despite a Low Success Rate

Individually, credential stuffing has a fairly low success rate, commonly estimated between roughly 0.1% and 2% of attempted logins. That sounds insignificant until you account for scale: testing millions of leaked credential pairs against a popular service, even at a 0.5% success rate, yields thousands of successful account takeovers from a single automated run. The attack is cheap enough to launch that a low percentage return is still profitable for the attacker.

Why It Depends Entirely on Password Reuse

Credential stuffing only works because the same password often unlocks more than one account. If you use a unique password for every service, a leaked credential pair from Service A is worthless against Service B — there's nothing to "stuff" that will actually match. This is the single biggest reason password managers matter as much as they do: they make unique passwords for every account practical rather than an unrealistic burden to remember manually.

Why 2FA Stops This Attack Cold

Even when a credential-stuffing attempt hits a genuinely correct, currently-valid password, 2FA still blocks the login, because the automated bot has no way to also supply the second factor — a TOTP code calculated from a secret key it was never given, or a hardware key it doesn't physically possess. This is precisely why security teams and researchers, including analysis cited by Microsoft, have pointed to multi-factor authentication as blocking the overwhelming majority of automated account-compromise attempts. A correct password becomes necessary but no longer sufficient on its own.

For the mechanics of exactly how a TOTP code closes this gap, see How 2FA Prevents Password Theft and Phishing Attacks.

A Simple Illustration

ScenarioOutcome Without 2FAOutcome With 2FA
Correct password from a leaked breachImmediate account accessLogin blocked — second factor missing
Password reused across multiple servicesEvery reusing account compromisedOnly the breached service is affected, others remain protected by their own second factor

What Actually Reduces Your Exposure

  • Use a unique password for every account, ideally generated and stored by a password manager rather than reused or lightly varied.
  • Enable TOTP-based 2FA on every account that supports it, prioritizing email, financial accounts, and your password manager itself.
  • Check whether your email appears in known breach databases periodically, and treat any match as a signal to rotate that specific password immediately, even if the account seems otherwise fine.
  • Avoid password patterns like a shared base word with minor per-service variations — automated tools account for exactly this pattern and test common variations, not just exact matches.
Credential stuffing doesn't break passwords — it reuses them. The defense isn't a stronger password on any single account; it's making sure no single leaked password ever works anywhere else, and that even a correct one isn't enough on its own.

Sources

Did you find this helpful?
77

Frequently Asked Questions

They're related but distinct. Classic brute-forcing guesses passwords systematically or randomly. Credential stuffing uses known-valid username-password pairs from actual data breaches, betting on password reuse rather than guessing.
Because it's automated and cheap to run at massive scale. Even a success rate under 1% yields thousands of compromised accounts when testing millions of leaked credential pairs against a popular service.
It stops the login even when the attacker has a genuinely correct password, because they still lack the second factor. It doesn't prevent the underlying data breach that leaked the password in the first place — it prevents that leaked password from being usable on its own.
Several reputable breach-notification services let you check whether your email address appears in known, publicly disclosed data breaches. If it has, rotate the password used on that account and any others where you may have reused it.
N

About The Author

Nency

Author is a software developer and technical contributor at AuthBro. They specialize in building performance-oriented browser productivity systems and writing developer guidelines.

Related Guides

Explore additional resources on 2FA security and authentication.