

Credential Stuffing: How the Attack Works and How to Stop It

Credential stuffing is an attack in which bots replay username and password pairs stolen from one service against the logins of other services, betting that people reused their passwords. The attacker never has to guess or crack anything, so every successful attempt carries a correct password and looks like an ordinary login.
For a defender, the failures show that an attack is running, and the successes show which accounts it reached.
TL;DR:
- Password reuse is the root cause: the attacker brings a correct password, so prevention has to make a correct password insufficient on its own.
- Credential stuffing tests known pairs, about one try per account, which gives it a different login signature from brute force and password spraying.
- IP-based rate limits and blocklists fail against distributed bots that rotate through residential proxies and pace their attempts.
- Phishing-resistant MFA and breached-password screening do the most to stop it, and detection tuned to successful logins, with fast response on those accounts, limits the damage.
What Is Credential Stuffing?
Credential stuffing reuses stolen credentials across platforms. Bots take pairs from breach dumps and infostealer malware logs, test them against unrelated sites at machine speed, and keep every pair that logs in.
Reuse is common enough to make this profitable: a 2025 Yubico survey found that nearly half of Americans use the same password for multiple accounts.
Most attempts fail. In confirmed attacks, only about 1% to 2% of submissions carry the right credentials, according to F5 Labs’ 2023 data, yet at 1% a million attempts still yields around 10,000 working logins.
Credential Stuffing vs. Brute Force vs. Password Spraying
Each of these attacks starts from different knowledge, and the difference shows up in login traffic:
| Attack | Credentials tried | Accounts targeted | Source of guesses | Typical login signal |
|---|---|---|---|---|
| Credential stuffing | Real username and password pairs | Many accounts, each tried about once | Breach dumps, combo lists, infostealer logs | Many distinct usernames per source, many nonexistent usernames, a few successes |
| Brute force | Many passwords against one username | One or a few accounts | Dictionaries and common-password lists | Repeated failures on one account, then lockouts |
| Password spraying | One or a few common passwords | Many accounts, a few tries each | Common passwords that fit the policy | The same password failing across many usernames, paced under lockout thresholds |
MITRE ATT&CK files all three under Brute Force (T1110), with credential stuffing as T1110.004 and password spraying as T1110.003.
How a Credential Stuffing Attack Works
An attack moves from a combo list to a taken-over account, and each stage leaves its own evidence.
Acquiring Combo Lists
Combo lists are files of username and password pairs. Old breaches supplied the first generation: Collection #1, loaded into Have I Been Pwned in 2019, held about 1.16 billion unique email and password combinations, and Collections #2 through #5 followed within weeks. Lists like these trade on criminal forums, Telegram channels, and dark web markets.
Infostealer logs are now the richer source because they pair each password with the exact site where it works, usually stored as URL:username:password. Fresh logs also carry passwords the owner has not yet changed.
Configuring Automation Tools
OpenBullet, OpenBullet 2, and SilverBullet appear in reported cases, including the DraftKings attack below, and Sentry MBA and Snipr are older tools in the same family. Each tool runs a per-site config: a request block posts the credentials, and a keycheck block reads the response and marks the pair as a hit, a miss, or a ban that retries through a new proxy. A login flow that changes its responses breaks the keycheck and forces the attacker to rebuild the config.
Configs exist in bulk. In the DraftKings complaint, investigators found about 700 configs aimed at dozens of companies and at least 69 wordlists holding 38,484,088 combinations. Building them is getting easier: Okta Threat Intelligence reports that the OpenBullet 2 web client has shipped an MCP server for AI coding agents since June 2026.
Evading Rate Limits, IP Blocks, and CAPTCHAs
One attack Okta tracked used over 800,000 residential IP addresses in six hours, with the median IP making only 20 attempts, too few to trip most per-IP limits. Attackers can also pick exit nodes by country or ISP so a login matches the account’s usual location, and pace attempts low and slow to stay under lockout thresholds.
CAPTCHA slows automation, and solvers get past much of it. In a 2025 USENIX study, an AI solver tested inside a commercial CAPTCHA farm cleared an average of 70.6% of unseen visual challenges. Headless browsers driven by Puppeteer or Playwright run the JavaScript that fingerprint checks rely on, and stealth plugins try to hide the automation.
Validating Hits and Taking Over Accounts
The keycheck sorts each pair into a hit or a miss, and attackers work the hits themselves or sell them in bulk. The takeover pattern is consistent: log in, change the email, phone, or recovery details to lock out the owner, then spend stored payment methods, balances, or loyalty points.
Targeting APIs and Mobile Login Endpoints
CAPTCHA and JavaScript fingerprinting run in a browser, so a script posting JSON to an API or a mobile login endpoint does not meet them unless the app embeds a mobile anti-bot SDK. Attackers record an app’s login calls through an interception proxy and replay them with a bot.
A successful API login returns tokens. An access token authorizes backend calls and a refresh token mints new ones, and an attacker holding either keeps access until it expires or is revoked.
Why Credential Stuffing Is Hard to Stop
The hits arrive from residential IPs in the expected country, and the misses blend into normal login volume. Credential stuffing made up a median 19% of daily authentication attempts in the SSO provider logs behind Verizon’s 2025 DBIR research, and 25% at enterprise-sized companies.
The costs land on both sides: users lose accounts, balances, and personal data, and the company absorbs fraud losses, notification duties, regulatory penalties, and reputational damage. MFA blocks most stuffing, but only when it is implemented correctly. A 2022 investigation by the New York Attorney General found more than 1.1 million compromised accounts across 17 companies, including more than 140,000 at one business whose MFA had been implemented incorrectly.
Real-World Credential Stuffing Incidents
These public cases run newest first, each with its lesson for detection or response.
Snowflake customers (2024). Mandiant tied UNC5537’s campaign to infostealer credentials, some stolen years earlier, used against customer accounts with no MFA and no network allow lists. About 165 organizations were notified, at least 79.7% of the accounts used had prior credential exposure, and Snowflake’s own platform was not breached. The campaign aimed stolen credentials at chosen targets with little volume, and one success on an account without MFA was enough.
Roku (2024). Roku disclosed 15,363 hacked accounts, then a second incident affecting about 576,000 more, found by continued monitoring after the first was closed. Roku reset passwords and turned on two-factor authentication by default for every account.
PayPal (2022). Over three days, attackers reached about 35,000 accounts and the Social Security numbers in their unmasked tax forms. A spike in login attempts was the first signal, and CAPTCHA plus rate limiting stopped the automated access. New York DFS later imposed a $2 million penalty, citing untrained staff and unredacted data.
DraftKings (2022). According to federal prosecutors, the attack opened about 60,000 accounts and drained roughly $600,000 from about 1,600, in some cases after the attacker added a new payment method. A new payment method right after a fresh login is worth an alert.
Basecamp (2019). The team saw more than 30,000 login attempts in an hour from many IP addresses. Blocking addresses did not hold, and CAPTCHA ended the wave, but 124 accounts had already been accessed with correct passwords and still needed resets and owner notification.
How to Detect Credential Stuffing in Login Traffic
Detection starts from the authentication logs you already have and asks which sources are testing many accounts and which of those tests succeeded.
Login Telemetry Fields to Collect
Each login event needs enough fields to group attempts by source, by account, and by outcome:
- Source IP, ASN, and ASN type (residential, hosting, mobile), since residential proxies defeat IP alone.
- User agent and TLS fingerprint, which group attempts that rotate IPs but keep the same client. Identity providers such as Auth0 can log JA3 and JA4 fingerprints.
- Username as submitted, and whether the account exists.
- Result code, such as Entra
50126(invalid username or password),50053(locked), and0(success). - Timestamp, precise enough to measure pacing.
- MFA outcome: prompted, passed, failed, or skipped.
- The session or token each success produced, so response can revoke it.
Signals and Thresholds That Indicate an Attack
A sudden drop in login success rate against your own baseline is the broadest signal. Human success rates vary by industry and app, so the baseline matters more than any fixed number.
Many distinct usernames per source come next. Elastic’s prebuilt Okta credential stuffing rule fires when one source makes 25 or more attempts against at least 15 users, with no more than two attempts per user, in 15 minutes. Attempts against nonexistent accounts are another tell.
Clustering by TLS fingerprint, user agent, and ASN catches what per-IP counts miss, since a residential proxy pool spreads one client across thousands of home addresses.
A success after failures is the escalation signal. In Entra logs, a source posts repeated 50126 failures across many users, a few accounts hit 50053 lockouts, then the same source or fingerprint returns a 0 for a different user. Escalate on that success, and again if the session immediately changes the email, phone, MFA method, or payment details.
Example Detection Queries
The first query, in vendor-neutral pseudo-SQL with illustrative thresholds, finds sources testing many accounts with few attempts each:
-- Query 1: many usernames, few tries each, per source cluster
SELECT
window_start(timestamp, '10 minutes') AS win,
src_asn,
tls_fingerprint,
COUNT(DISTINCT username) AS distinct_users,
COUNT(*) / COUNT(DISTINCT username) AS attempts_per_user,
SUM(CASE WHEN result = 'success' THEN 1 ELSE 0 END) AS successes
FROM auth_events
GROUP BY win, src_asn, tls_fingerprint
HAVING distinct_users >= 20
AND attempts_per_user <= 3
ORDER BY successes DESC, distinct_users DESC;
The second pulls the successes out of that noise:
-- Query 2: successes from infrastructure that failed against other accounts
WITH suspect_sources AS (
SELECT src_asn, tls_fingerprint
FROM auth_events
WHERE result = 'failure'
AND timestamp > now() - interval '1 hour'
GROUP BY src_asn, tls_fingerprint
HAVING COUNT(DISTINCT username) >= 20
)
SELECT a.username, a.src_ip, a.timestamp, a.mfa_outcome, a.session_id
FROM auth_events a
JOIN suspect_sources s
ON a.src_asn = s.src_asn AND a.tls_fingerprint = s.tls_fingerprint
WHERE a.result = 'success'
AND a.timestamp > now() - interval '1 hour';
Corporate proxies and VPN exit nodes put many legitimate users behind one address and ASN, so exclude those ranges from Query 1 or raise distinct_users. Treat every row from Query 2 as a potentially compromised account until checked, since shared infrastructure can pull legitimate logins into the result.
How to Prevent Credential Stuffing
MFA in some form is the core control, and the rest of the mix depends on who logs in:
- Workforce SSO, VPN, and SaaS admin consoles: Require phishing-resistant MFA and block legacy authentication protocols, which cannot enforce MFA.
- Consumer apps: Screen passwords against breach corpora at creation and login, step up to MFA on risk, and offer passkeys.
- Mobile apps and public APIs: Apply per-username and per-ASN limits on authentication endpoints, stricter than general API rate limits.
- Data platforms and service accounts: Enforce MFA for human users and network allow lists for every account, the two controls missing in the Snowflake intrusions.
MFA reduced the risk of compromise by 99.22% in an Entra account study, and by 98.56% where credentials had already leaked. For users who stay on passwords, Have I Been Pwned’s Pwned Passwords service checks a password against breach corpora while sending only the first five characters of its hash.
Comparing Defenses by Friction and False Positives
Each control stops a different part of the attack, at a different cost:
| Control | What it stops | False-positive risk | User friction |
|---|---|---|---|
| Phishing-resistant MFA or passkeys | Logins with a correct stolen password | Low | Moderate at enrollment, low afterward |
| SMS or push MFA | Logins with a correct password, but phishable and open to push fatigue | Low | Moderate on each prompt |
| CAPTCHA | Basic bots on browser flows; solvers get through, and APIs usually skip it | Low | High if shown on every login |
| Per-IP rate limits | Single-source bursts; little effect against rotating proxies | Moderate behind shared NAT or VPN | Low |
| Account lockout | Brute force on one account; little effect on stuffing | High, since attackers can lock out real users | High when triggered |
| Bot management | Automated clients identified by fingerprint and behavior | Varies by provider | Low when invisible |
| Breached-password screening | Known-compromised passwords before they are used | Low | Low, mainly at password reset |
CAPTCHA and lockout carry the most friction for the least effect against distributed stuffing. They work best behind risk scoring, shown only to suspicious sessions.
Mapping Controls to NIST SP 800-63B and OWASP
NIST SP 800-63B-4, finalized in July 2025, sets the federal baseline for these controls:
- Breached-password screening: Verifiers “SHALL compare the prospective secret against a blocklist that contains known commonly used, expected, or compromised passwords” when a password is set or changed, per SP 800-63B-4.
- Rate limiting: Consecutive failed attempts with one authenticator are capped at 100 before it is disabled, and verifiers may add bot challenges or growing wait times so attackers cannot easily lock out the real user.
- Phishing resistance: AAL2 verifiers must offer at least one phishing-resistant authentication option.
- Composition rules: Beyond the blocklist, no other password composition rules may be imposed.
The NIST blocklist applies only when a password is chosen; OWASP’s Bot Management and Anti-Automation Cheat Sheet adds a check of the submitted password at login, with a step-up on a match. OWASP’s credential stuffing guidance warns against IP blocking as the sole or primary defense and treats unfamiliar device fingerprints as a reason to ask for more authentication.
Responding to an Active Credential Stuffing Attack
Response starts with triage: run Query 2, with its interval widened to cover the attack window, to list every account that logged in successfully from the attacking infrastructure. The next steps depend on what that list shows:
- If an account logged in from attack infrastructure: Reset the password and revoke its sessions and refresh tokens, since a stolen session can outlive a password change.
- If recovery details or payment methods changed: Revert them, hold pending transactions, and contact the owner through a channel the attacker did not touch.
- If the account is on a data platform such as Snowflake: Disable the user, keep it disabled for six hours where
ALLOW_ID_TOKENis enabled, then apply network policies. - If the attack is still running: Put CAPTCHA and tighter rate limits on the targeted endpoint, as PayPal did, and expect the attacker to rotate infrastructure.
- If you can cluster the infrastructure by ASN or fingerprint: Block or challenge that cluster, and keep running Query 2 for successes from new ones.
- If personal information was accessed: Start the notification analysis immediately.
In its 2020 Dunkin’ settlement, New York’s Attorney General alleged that the company broke the state’s breach notification law by failing to notify customers whose accounts were accessed, and the settlement required notification, password resets, and refunds. NYDFS-regulated entities must report qualifying cybersecurity events within 72 hours under 23 NYCRR 500.17.
Treat Credential Stuffing as an Identity Investigation Problem
Each stuffing alert comes down to specific accounts: who logged in from the attacking infrastructure, whether MFA fired, what changed afterward, and whether the session is still live. Someone has to own that work around the clock.
Daylight’s MDR investigates identity alerts like these to a verdict, with business context about the users and systems involved, and acts on the account where the contract allows.
Frequently Asked Questions About Credential Stuffing
Is Credential Stuffing Illegal?
Yes. Computer misuse laws in the US, the UK, and EU member states cover logging in to other people’s accounts with stolen credentials. US prosecutors use the Computer Fraud and Abuse Act alongside wire fraud charges, and the first DraftKings defendant pleaded guilty to conspiring to commit computer intrusion. The UK’s Computer Misuse Act 1990 and EU Directive 2013/40/EU cover both unauthorized access and supplying the tools for it.
Can Passkeys Eliminate Credential Stuffing?
Passkeys eliminate credential stuffing for accounts that sign in only with passkeys, because no reusable secret exists to replay. Accounts that keep a password as a fallback stay exposed through it, and attackers shift to enrollment and recovery, as in Okta’s 2026 report of vishing crews targeting Microsoft Entra passkey enrollment.
How Can We Check Whether Employee Credentials Are Already Exposed?
Combine domain-level breach monitoring, infostealer log feeds, and password screening. Have I Been Pwned lists breached addresses on a domain you verify, and Microsoft Entra ID Protection raises a leaked-credentials risk detection when it finds a valid password in leaked sources, which for on-premises accounts requires password hash synchronization. Commercial services such as SpyCloud, Flare, Hudson Rock, and Enzoic add infostealer log coverage and Active Directory password monitoring.
Who Is Liable When Customer Accounts Are Taken Over?
A company can face regulatory penalties when it lacks reasonable defenses against credential stuffing. The FTC’s 2023 complaint against Ring cited credential stuffing attacks and a failure to implement MFA until 2019. The UK ICO fined 23andMe £2.31 million in 2025 over a 2023 credential stuffing attack, citing the lack of mandatory MFA, and in October 2026 the company agreed to pay $6,010,000 to settle California’s claims, pending court approval.
Does Credential Stuffing Target Workforce Accounts or Only Consumer Logins?
Both, and a workforce hit usually costs more. A consumer hit typically exposes one account and its stored payment details. A working SSO password opens every application federated behind it, so a single workforce login can reach email, files, and admin settings and become the first step of a larger intrusion.
Subscribe to newsletter
Subscribe to receive the latest blog posts to your inbox every week.
.avif)




Related posts
.avif)

For expert judgment, scaled to your world, head for Daylight



