A password spray and a credential-stuffing run can both leave a pile of failed sign-ins and one success. The difference is what the attacker knows. A spray guesses one or a few common passwords across many accounts. Stuffing replays username-password pairs stolen somewhere else. MITRE ATT&CK records them separately as T1110.003 and T1110.004. Your response should separate them too.
One warning first: a normal sign-in log must never contain the submitted password. That means the log shows a pattern, not the attacker's word list. Classify with several signals—accounts, IPs, device or connection fingerprint, timing, result and MFA outcome—and keep an "unknown" bucket when the evidence does not distinguish the two.
The difference in one table
| Signal | Password spraying | Credential stuffing |
|---|---|---|
| Attacker input | One or a small set of guessed passwords | Stolen username-password pairs from another breach or infostealer log |
| Account shape | Many accounts, usually few attempts per account | Many accounts, often one or a few known pairs per account |
| Source shape | May be one source or a distributed campaign; slow sprays can run for days | Frequently distributed through proxy networks, so each IP can stay quiet |
| Timing clue | Regular intervals and repeated user-agent, app or IP-block attributes | Bursts or steady replay; more variety in IPs does not make it human |
| Strongest outcome clue | A successful password followed by failed MFA shows a guessed password worked | A success on an old/reused password, especially from a new device, supports stuffing |
| Best password control | Ban weak and organisation-themed passwords | Check new passwords against breached-password data and stop password reuse |
| Control that breaks both | Phishing-resistant MFA or a passwordless sign-in; layered limits by account, IP and device | |
MITRE notes that real sprays are deliberately throttled. Its APT28 example used about four authentication attempts per hour per targeted account, over days or weeks. Microsoft tells investigators to look for repetitive user agent, target application, IP block or location, and unusually regular timing when ordinary bad-password thresholds never fire.
Worked window 1: the spray-shaped cluster
Suppose a 15-minute window contains 24 failed attempts from one source against 24 different accounts. Each account is tried once; the user agent, app and network are identical; attempts arrive every 35–40 seconds. One account then records "password accepted, MFA failed". The arithmetic is: 24 attempts ÷ 24 accounts = 1 attempt per account, while 24 accounts ÷ 1 source = 24 accounts per source. That is spray-shaped: broad across accounts, shallow per account, regular in time. The MFA event means at least one password was correct, so reset that account and revoke its sessions even though MFA stopped entry.
Worked window 2: the stuffing-shaped cluster
Now take 60 attempts against 50 accounts from 45 IP addresses, but only three device/connection fingerprints. Forty accounts are tried once; ten are tried twice. The arithmetic is: 60 ÷ 50 = 1.2 attempts per account, 60 ÷ 45 = 1.3 attempts per IP, and 60 ÷ 3 = 20 attempts per fingerprint. Per-IP rate limiting barely sees it. The collapsed fingerprint count and one-pair-per-account shape are consistent with distributed stuffing—but still not proof, because the log correctly does not reveal whether every password differed. Check whether successful accounts used old passwords, whether the device was new, and whether the same source set appeared on password-reset or checkout endpoints.
Five fields to keep, and three ratios to calculate
For each attempt, retain: timestamp; normalized account ID; success/failure plus MFA outcome; source IP and network class; user-agent plus a privacy-respecting device or connection fingerprint. Also retain the target app and authentication protocol. Do not retain the password, a reversible form of it, or a stable hash attackers could test offline.
| 15-minute measure | Calculation | Why it helps |
|---|---|---|
| Accounts per source | distinct accounts ÷ distinct IPs (and again by IP block / ASN) | A high value exposes a source spreading guesses across names |
| Attempts per account | attempts ÷ distinct accounts | A value near 1 can fit both spraying and stuffing; it is not enough alone |
| Attempts per fingerprint | attempts ÷ distinct device or connection fingerprints | Collapses a proxy swarm that keeps each IP below a threshold |
Run the same calculations over 15 minutes, 1 hour and 24 hours. OWASP recommends short and long windows because a single predictable volume threshold is easy to avoid. Keep baselines per app: a consumer login and an employee VPN do not have the same normal fan-out.
Triage in this order
1. Find successes and interrupted sign-ins first. For every suspicious source, fingerprint and window, pull successful sign-ins plus "password accepted, MFA failed" events. Microsoft puts these above ordinary failures in its password-spray playbook.
2. Measure account fan-out. Group by IP, IP block, network provider, user agent, app and fingerprint. A low count per IP does not clear a distributed run.
3. Plot timing. Regular spacing over hours or failures in directory order are spray clues. A burst of apparently unrelated pairs is stuffing-shaped.
4. Check what happened after success. Look for new sessions, password or MFA changes, forwarding rules, new API tokens and data access.
5. Contain the account, not only the IP. Reset exposed passwords, revoke sessions and review MFA enrolment. IP blocks are temporary friction; OWASP warns that proxy networks defeat IP-only limits.
Match the control to the pattern
| Finding | Do now | Prevent the repeat |
|---|---|---|
| Spray-shaped, no success | Temporary challenge or block by source/fingerprint; watch every targeted account | Ban common and company-themed passwords; remove legacy authentication |
| Password accepted, MFA stopped it | Reset the password, revoke sessions, verify MFA methods and notify the user | Passwordless or phishing-resistant MFA; breached-password checks |
| Stuffing-shaped, distributed | Step up all affected accounts; rate-limit by account and fingerprint, not IP alone | Reject breached passwords at set/change; device-aware risk rules |
| Successful login from a new device | Revoke the session and inspect post-login actions | Re-authenticate before sensitive actions; show users active sessions |
If your application has no reusable password, neither attack gets its usual input. osec Auth gives a site email-code, Google and Apple sign-in, while osec Login Protection adds per-email and per-IP rules. Keep the layered log checks anyway: attackers also test codes, sessions and recovery paths.
Replace reusable passwords with email-code, Google and Apple sign-in, then protect every login path with account and network limits.
Add passwordless sign-inSources
• MITRE ATT&CK T1110.003: Password Spraying — definition, throttling, detection and the APT28 four-attempts-per-hour example.
• MITRE ATT&CK T1110.004: Credential Stuffing — stolen-pair and password-reuse definition.
• Microsoft password spray investigation playbook — log locations, low-and-slow signals, success/MFA triage and containment steps.
• OWASP Credential Stuffing Prevention Cheat Sheet — attack comparison, layered short/long-window controls, proxy distribution and breached-password checks.
The two worked windows are labelled examples created to show the calculations; they are not incident statistics or detection thresholds.