3.4.4. Password Attacks and Behavioral Indicators
💡 First Principle: Password attacks target the most common authentication mechanism. Behavioral indicators are patterns that suggest compromise even when specific technical evidence isn't available. Together they represent the "last mile" of attack detection.
Password spraying tries a few common passwords against many accounts. Unlike brute-force (many passwords against one account), spraying avoids lockout thresholds by staying under the attempt limit per account. Indicators: low-volume login failures across many accounts simultaneously.
Credential stuffing uses breached username/password pairs from other sites, betting that users reuse passwords. Indicators: login attempts from unusual locations using valid credentials, automated login patterns. Defense against credential stuffing includes MFA (the stolen password alone isn't enough), rate limiting login attempts, and checking passwords against known-breached databases (like "Have I Been Pwned") during password creation to prevent users from choosing already-compromised passwords.
Pass-the-hash skips cracking altogether: the attacker uses a stolen password hash (for example an NTLM hash taken from memory) as the credential itself, answering authentication challenges without ever learning the plaintext. Unlike a replay attack, which retransmits a captured exchange, the hash can be reused for new logons until the password changes. Defenses include restricting NTLM, Credential Guard, unique local administrator passwords (LAPS) and limiting where privileged accounts log on (MITRE ATT&CK T1550.002).
Dictionary attacks try words from a word list rather than every possible combination. Faster than brute-force but limited to common passwords.
Behavioral indicators of compromise:
- Impossible travel — user logs in from New York and ten minutes later from Tokyo. No physical travel explains the gap, indicating credential compromise.
- Concurrent session usage — same account active from multiple locations simultaneously, suggesting shared or stolen credentials.
- Resource consumption anomalies — unusual CPU/memory/network usage indicating cryptomining, data exfiltration, or malware activity.
- Account lockout patterns — repeated lockouts may indicate brute-force attempts or credential stuffing.
- Blocked content attempts — repeated attempts to access blocked resources suggest reconnaissance or policy testing.
- Missing logs — gaps in log data may indicate an attacker covering their tracks, which is itself a critical indicator.
User enumeration — confirming which usernames exist before attacking them. An application leaks the answer when it responds differently to a bad username than to a bad password ("No account found" vs. "Incorrect password"), when a password-reset or sign-up page reports "no account with that email," or when failures for real accounts take measurably longer to return. Indicators: one source trying a long list of dictionary-style or sequential usernames, once each, with most of them nonexistent. Enumeration usually precedes password spraying. Defense: the same generic message ("invalid username or password") and response timing for every failure, plus rate limiting.
MFA bypass — getting past the second factor without breaking it:
- MFA fatigue (push bombing) — repeated push prompts until the user approves one to make them stop. Indicator: a burst of denied pushes followed by an approval, often at night. Number matching and limits on prompts stop it.
- SIM swapping and code phishing — taking over the victim's phone number, or persuading them to read out a one-time code, defeats SMS and voice codes.
- Adversary-in-the-middle (AiTM) phishing — a reverse-proxy phishing site relays the real sign-in and MFA to the genuine service and steals the resulting session cookie. Indicator: a successful MFA sign-in followed by the session being used from a different IP address or device. Phishing-resistant MFA (FIDO2 security keys and passkeys, which are bound to the real site's origin) defeats it.
- Help desk and recovery abuse — social engineering a reset of the victim's MFA device, or using a weaker fallback method.
Replay as a credential attack resubmits captured authentication material — a token, a hash, a Kerberos ticket — instead of guessing anything. Nonces, timestamps, and short token lifetimes defeat it (section 3.4.2).
⚠️ Exam Trap: Password spraying vs. brute force: spraying = few passwords, many accounts (horizontal). Brute force = many passwords, one account (vertical). Spraying evades account lockout. If the scenario describes "failed logins across 200 accounts using the same three passwords," that's password spraying.