Credential and Password Attacks

Key Takeaways

  • Credential attacks target authentication secrets, stored hashes, session tokens, identity providers, and user behavior rather than network capacity.
  • Brute force tries many passwords against one account; password spraying tries a few common passwords across many accounts to dodge lockout thresholds.
  • Credential stuffing replays valid username/password pairs harvested from an unrelated breach, so logins succeed from unusual sources.
  • Phishing, smishing, vishing, and MFA-fatigue/push-bombing attack the human, bypassing the strength of the stored password.
  • Mitigations include phishing-resistant MFA, salted adaptive hashing, lockout and rate limiting, conditional access, password managers, and credential rotation.
Last updated: June 2026

Distinguishing the Pattern

Authentication attacks look similar in raw logs, so the exam expects you to read the failure distribution and pick a mitigation that fits. The deciding question is usually "are many guesses hitting one account, or a few guesses spread across many accounts, or are valid credentials succeeding from a strange place?"

AttackPatternBest clueUseful mitigations
Brute forceMany guesses against one account or serviceHigh failed-attempt count for a single usernameAccount lockout, rate limiting, MFA, block source IP
Password sprayingOne or few common passwords across many usersLow failures per user, many usernames affectedDetect horizontal failures, MFA, banned-password list
Credential stuffingReused breached username/password pairsSuccessful logins from residential proxies or odd geosMFA, breached-password checks, anomaly/risk scoring
Dictionary attackWordlist plus mutationsCommon words and leetspeak variantsStrong policy, password manager, blocklists
Rainbow tablePrecomputed unsalted-hash lookupStolen unsalted hashes cracked instantlyPer-password salt, slow adaptive hashing
PhishingDeceptive message or cloned siteUser reports a link, fake login page capturedAwareness, mail filtering, FIDO2/passkeys
MFA fatigue / push bombingRepeated push prompts until approvalMany denied or ignored MFA pushesNumber matching, push rate limits, phishing-resistant MFA
Shoulder surfingObserving secrets physicallyPublic area, visible screen or keypadPrivacy filters, clean-desk policy, training

Worked Log Example

EventUsersFailure patternLikely attack
1,900 failed logins for "admin" in 4 minutes1Many guesses, one accountBrute force
450 users each fail once with "Spring2026!"450One password, many accountsPassword spraying
17 successful logins from residential proxies using real employee emails17Valid pairs, unusual sourceCredential stuffing

The mitigation must match the attack. An aggressive account lockout slows brute force but is a poor answer to spraying - it can lock out 450 real users and become a self-inflicted denial of service. When valid credentials succeed from a suspicious context (stuffing), the strongest answers are MFA and risk-based conditional access, because they break the value of a stolen password.

Credential Storage and Cracking

Hashing stores a one-way digest; a salt is a unique random value added before hashing so identical passwords produce different hashes, defeating rainbow tables. Key stretching (bcrypt, scrypt, PBKDF2, Argon2) deliberately slows hashing to make offline cracking expensive.

WeaknessWhy it mattersBetter control
Plaintext passwordsImmediate disclosure if the database is stolenNever store plaintext
Fast unsalted hash (MD5, SHA-1)Trivial offline cracking and reuse lookupSalted adaptive hashing (Argon2/bcrypt)
Shared admin passwordOne compromise affects many systemsUnique privileged credentials or PAM vaulting
Hardcoded secret in codeLeaks with the repo or container imageSecrets manager and rotation
Long-lived bearer tokenA stolen token stays useful for weeksShort lifetime, scope limits, revocation

Social Engineering Forms

FormChannelNote
PhishingEmail / webBroad, untargeted
SmishingSMS textMobile-focused
VishingVoice callOften impersonates IT or a bank
Spear phishingTargeted emailTailored to a specific person
WhalingTargeted emailAimed at senior executives
PretextingAnyInvented backstory to build trust

Common Traps

TrapCorrect reasoning
Treat every login-failure spike as brute forceCheck whether failures concentrate on one account or spread across many
Rotate only the visible user's password after malwareTokens, browser sessions, API keys, and service accounts may also be exposed
Rely on SMS MFA for high-risk admin accessSIM-swap and SS7 attacks make SMS weak; prefer FIDO2/number matching
Store recovery codes in the mailbox they protectProtect recovery material separately and offline

Token, Session, and Identity-Provider Abuse

Modern credential attacks increasingly skip the password entirely and target the session. After a user authenticates, the system issues a token or cookie; stealing that artifact lets an attacker ride the session without ever knowing the password - and without tripping MFA, because MFA already happened at login.

AbuseHow it worksMitigation
Session hijackingStolen session cookie reused by attackerBind sessions to context, rotate on privilege change, HttpOnly/Secure cookies
Pass-the-hashReuse an NTLM hash without cracking itCredential Guard, restrict admin reuse, unique local admin passwords
Pass-the-ticket / Golden TicketForge or replay Kerberos ticketsProtect the KRBTGT account, limit Domain Admin exposure
OAuth/token theftSteal a bearer token from storage or logsShort token lifetime, scope limits, revocation on anomaly
Directory traversal of secretsRead a secrets file via app flawSecrets manager, least privilege, path validation

The exam lesson: after a credential compromise, resetting the visible password is necessary but not sufficient - active sessions, refresh tokens, API keys, and service-account secrets must also be revoked and rotated, or the attacker simply keeps the session they already hold.

Quick Drill

(1) One executive gets a fake DocuSign email to a cloned login page - spear phishing; filter, train, and require phishing-resistant MFA. (2) Hundreds of accounts each fail once with "Password1!" - password spraying; detect horizontal attempts and enforce MFA. (3) A leaked database of unsalted MD5 hashes - rainbow-table/offline cracking risk; migrate to salted adaptive hashing and force resets. (4) An attacker reuses a stolen session cookie and bypasses MFA - session hijacking; rotate and bind sessions, then revoke the token.

Test Your Knowledge

A log shows the password "Welcome2026!" attempted once against hundreds of usernames, with only one failure per account. What attack is most likely?

A
B
C
D
Test Your Knowledge

Attackers reuse valid employee email-and-password pairs harvested from a previous unrelated breach to log into a company portal. What is this called?

A
B
C
D
Test Your KnowledgeMulti-Select

Which controls best reduce credential-stuffing risk? Select two.

Select all that apply

Multifactor authentication
Use of unsalted fast hashes
Detection of breached or reused passwords
Disabling all audit logs