0Pricing
Cyber Security Academy · Lesson

Credential Stuffing and Password Spraying

Understand how attackers reuse stolen credentials and defend against automated login attacks.

Credential Stuffing and Password Spraying is a free Cyber Security Academy lesson on CoddyKit — lesson 4 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Cyber Security Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

What is Credential Stuffing?

Credential stuffing is an automated attack that takes username/password pairs stolen from one data breach and tries them on other services. It exploits password reuse — if someone uses the same password everywhere, one breach compromises all accounts.

The Scale of the Problem

Billions of credentials are available for purchase on dark web markets and forums. Tools like Sentry MBA, SNIPR, and custom Python scripts automate testing thousands of credential pairs per minute across many services simultaneously.

Why Credential Stuffing Works

Studies show 65%+ of people reuse passwords across multiple sites. A breach of a low-security forum can compromise the same user's banking, email, and corporate accounts if they reuse credentials.

What is Password Spraying?

Password spraying tries a few commonly used passwords (e.g., "Spring2024!", "Password1") against many accounts. Unlike brute force, it avoids lockouts by spreading attempts across many accounts with one password at a time.

Password Spraying vs Brute Force

Comparison:

  • Brute force — many passwords against one account → triggers lockout
  • Password spray — one password against many accounts → stays under lockout threshold
  • Credential stuffing — known pairs from breaches → doesn't guess

Detecting Credential Stuffing

Detection indicators:

  • High volume of failed login attempts from many IPs
  • Success rate suddenly higher than baseline
  • Logins from Tor exit nodes, VPNs, or residential proxies
  • Device fingerprints of automated tools
  • Logins from geographically impossible locations

Detecting Password Spraying

Spraying indicators:

  • Many accounts with failed logins at the same time
  • Failed attempts just below lockout threshold (e.g., if lockout = 5, see 4 failures per account)
  • Same password attempted across many accounts

Defenses Against Credential Stuffing

Key defenses:

  • MFA — stolen credentials alone insufficient
  • Breach password detection — reject known-breached passwords on registration/change
  • CAPTCHA on login forms
  • IP reputation — block known malicious ranges
  • Device fingerprinting — flag new device logins

Defenses Against Password Spraying

Defenses:

  • Account lockout policies (with alerts)
  • MFA required for all accounts
  • Block common passwords with a deny list
  • Monitor authentication logs for spray patterns
  • Conditional access requiring additional verification for anomalous logins

Notification on New Login

Alerting users to logins from new devices or locations lets them self-report account takeovers instantly. Many services send "New login from [City, Device]" emails — users should review and act on unexpected notifications.

Have I Been Pwned (HIBP)

Troy Hunt's HaveIBeenPwned aggregates breach data. Organizations can integrate the HIBP k-anonymity API to check if passwords exist in known breaches — without sending the full password to the API.

# k-anonymity: send only first 5 chars of SHA1 hash
curl https://api.pwnedpasswords.com/range/5BAA6

Quick Check: Credential Attacks

An attacker tries "Summer2024!" against 50,000 accounts, then waits, then tries "Password1!" against the same 50,000 accounts. What technique is this?

Lesson Recap

Credential stuffing reuses stolen credentials from one breach against other services — enabled by password reuse. Password spraying tries common passwords across many accounts to avoid lockouts. Defenses include MFA, breach password checking, CAPTCHA, IP reputation blocking, and monitoring authentication logs for anomalous patterns.

Frequently asked questions

Is the “Credential Stuffing and Password Spraying” lesson free?

Yes — the full text of “Credential Stuffing and Password Spraying” is free to read here on the web, and the Cyber Security Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Cyber Security Academy course, upgrade to CoddyKit PRO.

What will I learn in “Credential Stuffing and Password Spraying”?

Understand how attackers reuse stolen credentials and defend against automated login attacks. You practise Cyber Security Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Cyber Security Academy?

No prior experience is required. Cyber Security Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 4 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Credential Stuffing and Password Spraying” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Cyber Security Academy lesson?

Yes. Every Cyber Security Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Password Strength and Policies
  2. Password Hashing: bcrypt, Argon2, PBKDF2
  3. Multi-Factor Authentication
  4. Credential Stuffing and Password Spraying
← Back to Cyber Security Academy