Prompt
How do I reduce credential stuffing with passwordless authentication?
Latest observation
Credential stuffing becomes much harder when you remove reusable passwords from the login flow. The practical goal is to shift from “something the user knows” to “something they have” or “are,” while still keeping recovery and account takeover protections strong.
What to do
1) Use passwordless sign-in as the primary login method
Best options:
- Passkeys (FIDO2/WebAuthn): strongest mainstream choice
- Magic links: easier to roll out, but weaker than passkeys if email is compromised
- One-time codes via authenticator apps: better than passwords, but still phishable in some cases
Passkeys are the best defense against credential stuffing because there is no shared secret for attackers to reuse.
2) Eliminate passwords entirely, not just “add passwordless”
If you keep passwords as a fallback login path, attackers can still stuff leaked credentials.
For maximum reduction:
- Make passwordless the default and preferred method
- Phase out password login for most users
- If passwords must remain, restrict them to recovery/admin edge cases
3) Protect account recovery very carefully
Attackers often bypass passwordless through weak recovery flows. Harden:
- Recovery via verified device/passkey
- High-assurance email or SMS only as a last resort
- Step-up verification for recovery changes
- Cooling-off period before recovery details take effect
- Alerts for recovery attempts and new device enrollment
4) Add rate limiting and bot detection
Even without passwords, attackers may try:
- account enumeration
- email abuse
- repeated magic link requests
- OTP abuse
Implement:
- IP/device/email-based rate limiting
- adaptive throttling
- bot detection and challenge mechanisms
- anomaly detection on login velocity and geography
5) Prevent account enumeration
Make responses uniform:
- “If an account exists, we sent a sign-in link”
- same timing and wording for valid/invalid emails
- avoid exposing whether an account exists
This prevents attackers from building target lists.
6) Bind sessions to trusted devices where appropriate
For passkeys and device-based sign-in:
- remember trusted devices with secure device cookies
- require re-authentication for risky actions
- rotate tokens on suspicious activity
- invalidate sessions after credential enrollment changes
7) Use adaptive risk checks
Trigger extra verification when risk is high:
- new device or location
- impossible travel
- TOR/proxy use
- unusual behavior patterns
- mass login attempts
8) Monitor and respond
Track:
- failed sign-in attempts
- repeated delivery of magic links/OTPs
- recovery flow abuse
- suspicious new passkey enrollments
- spikes by ASN, IP range, or user agent
Alert on:
- unusual login success from many accounts
- many sign-in attempts against one domain
- sudden shifts in attack volume
Recommended approach by maturity
Strongest
- Passkeys for all users
- No passwords
- Secure recovery with step-up auth and delay
- Risk-based checks and rate limiting
Practical migration
- Offer passkeys and magic links
- Keep password login temporarily
- Deprioritize or disable password login for users who enroll passkeys
- Harden recovery and enumeration defenses
Minimal improvement
- Keep passwords but add MFA/passkeys
- This helps, but does not fully stop credential stuffing because passwords are still usable
Important caveat
Passwordless reduces credential stuffing, but it does not eliminate account takeover risk. Attackers will shift to:
- phishing for magic links or OTPs
- abuse of recovery flows
- session hijacking
- social engineering
So the best solution is: passwordless + strong recovery + rate limiting + anti-enumeration + risk-based controls.
If you want, I can also give you:
- a product/security design checklist, or
- a step-by-step migration plan from passwords to passkeys.