Credential Stuffing

Credential stuffing is an attack in which hackers take username and password pairs stolen in one data breach and try them on other websites.

The attack works because people reuse passwords. Billions of stolen credentials circulate on criminal forums, and automated tools can try them against a login page very quickly, spreading the attempts across many IP addresses to avoid detection. Only a small fraction need to work. At a 0.1% success rate, a million stolen pairs still hand the attacker a thousand accounts.

In 2023, attackers used credential stuffing to log into about 14,000 accounts at the genetic testing company 23andMe. Through features that share data between genetic relatives, those accounts then exposed about 6.9 million more customer profiles.

To defend against credential stuffing:

  • Offer (or require) multi-factor authentication.
  • Check new passwords against lists of breached passwords, and reject any matches.
  • Rate-limit login attempts, and watch for login traffic from many IP addresses at once.
  • Avoid user enumeration, so attackers cannot tell which usernames exist.

Further Reading

Learn it hands-on

Safe treatment of passwords is essential to a secure authentication system - yet many websites get this wrong.