What is credential stuffing?

Basic3 min readUpdated

GET /learn/account-attacks/what-is-credential-stuffing/ Accept text/html text/markdown

Short answer

Credential stuffing is an automated attack in which criminals take username and password pairs leaked from one website and try them on the login pages of other websites. It works because many people reuse the same password. Each pair that works gives the attacker a real account, which they drain, resell or use for further fraud.

Your site does not need to be hacked for this to happen. If a customer used the same email and password on a forum that leaked its user table, an attacker can log in to that customer's account on your site with a correct password, from what looks like a home connection, using a normal browser. Each single request looks legitimate. The attack only shows up in volume and pattern.

OWASP lists credential stuffing as OAT-008 in its catalogue of automated threats to web applications, separate from credential cracking (OAT-007), where the attacker guesses passwords.

How does credential stuffing work?

  1. The attacker starts with a combo list, a file of email and password pairs compiled from earlier breaches. Lists are merged, cleaned and resold, so the same pairs circulate for years.
  2. They point an automation tool at the login form or, often, at the login API used by the mobile app, which may have fewer checks than the website.
  3. They spread the traffic over thousands of IP addresses, usually through residential proxies, so each address makes only a few attempts and looks like a home user.
  4. The tool reads each response and sorts pairs into working and failed. Working accounts are called hits.
  5. Hits are used directly or sold, often tagged with what the account holds, such as a saved card or a loyalty balance.

The attacker does not care which customer they get. They need only a small share of the list to work, and the list costs little.

Why is credential stuffing effective?

Password reuse is the main reason. A person with forty accounts and three passwords turns one leak into dozens of open doors.

The attack is also cheap. Combo lists, proxy access and ready-made tools are sold to people with no programming skill, so the cost of each attempt is close to zero and even a low success rate pays.

Successful logins look like the real owner. The password is correct, the IP address belongs to a consumer internet provider, and the browser headers match a common browser. Rules that look at one request at a time find nothing wrong.

Finally, the login page tells the attacker whether each pair worked. The OWASP Top 10 entry on authentication failures describes an application that answers this way as a "password oracle". If your error messages also reveal whether an email is registered, the attacker learns even more from the failures.

What are credential stuffing lists?

A credential stuffing list, or combo list, is a text file with one email:password pair per line. Older lists come from database breaches. Newer ones often come from infostealer malware on people's computers, which records the site where each password was used, so the pairs are fresher and more likely to work.

Defenders can use the same breach data against the attacker. Services such as Pwned Passwords let you check, without sending the password, whether a password appears in known breaches, and refuse it at signup or force a reset. The prevention guide shows how.

What happens after a successful login?

The attack becomes account takeover. What the attacker does next depends on what the account holds:

  • Orders paid with a stored card, shipped to a new address.
  • Loyalty points, gift card balances or store credit spent or transferred.
  • Personal data copied and used for phishing that looks credible because it quotes real orders.
  • Streaming, gaming or software subscriptions resold as cheap "lifetime" accounts.
  • The email and password changed, so the real owner is locked out while the attacker works.

How can you tell it is happening?

The first sign is usually a rise in failed logins against your normal rate, with many attempts on email addresses that have no account at all. Look also for many different usernames tried from one device fingerprint and logins that arrive with no page load before them. The full list of signals, with SQL you can run on your own login logs, is in how to detect credential stuffing.

How do you stop it?

No single control is enough. The usual set is multi-factor authentication, a check of new passwords against breach data, bot detection on every login endpoint including mobile APIs, rate limits per account as well as per IP address, and the same error message for every failed login. Kairal also publishes a guide to credential stuffing prevention.

Common questions

Is credential stuffing illegal?

Logging in to other people's accounts with stolen credentials is unauthorised access in most countries, for example under the US Computer Fraud and Abuse Act or the UK Computer Misuse Act 1990. The exact offence and penalty depend on the jurisdiction, and this is not legal advice.

Is credential stuffing a brute force attack?

MITRE ATT&CK files it as a sub-technique of brute force (T1110.004). OWASP keeps it separate from credential cracking because nothing is guessed: every password tried was already chosen by a real person on another site.

Is credential stuffing a data breach?

Your database was not breached, but if attackers log in and can see personal data, a regulator may treat that as a personal data breach. The GDPR definition in Article 4(12) includes unauthorised access to personal data, so check your notification duties with counsel. The answer depends on jurisdiction and this is not legal advice.

What is the difference between credential stuffing and account takeover?

Credential stuffing is one way into an account. Account takeover is the result, where someone other than the owner controls the account, whether they got in through stuffing, phishing or a stolen session cookie.