Password spraying
Password spraying inverts classic brute force: instead of trying many passwords against one user
(which locks the account), it tries one plausible password against many users. Since lockout
policies count attempts per account, one attempt per user per round stays under the threshold. In a
domain with hundreds of employees, one person using Company2025! or Summer2025 is enough to get a
foothold. The broken invariant is statistical: in any large organization, someone uses a weak password
that still meets the complexity policy.
flowchart LR
U["user list"] --> S{"spray: 1 password<br/>× N users"}
S -->|"most fail"| F[below the lockout threshold]
S -->|"one hits"| C["valid domain credentials"]
C --> E["enumeration + BloodHound"]
Threat model
Section titled “Threat model”- Who attacks: someone with a list of domain usernames and access to an authentication surface (internal SMB/LDAP, or VPN/OWA/ADFS from outside). No prior credentials needed.
- What it breaks: per-account lockout as the only defense. Lockout counts attempts per user; the spray spreads one attempt per user, so it never reaches any account’s threshold.
- What it gains: one or more valid domain credentials. One is enough to start full enumeration and hunt for where that account is a local admin.
- What it needs: a user list (from enumeration or OSINT) and the lockout policy (threshold and observation window) to avoid overshooting.
Anatomy
Section titled “Anatomy”Why lockout doesn’t stop it
Section titled “Why lockout doesn’t stop it”A typical policy locks after, say, 5 failed attempts in 30 minutes. If you try 1 password against 500 users, each account gets one attempt: none comes close to the threshold. You wait for the observation window to pass and try the next password. Low cost, moderate noise.
Smart lockout and why it changes accounts
Section titled “Smart lockout and why it changes accounts”Entra ID (Azure AD) adds smart lockout: it distinguishes origin and pattern, so a spray from one IP against many accounts is detected sooner. That’s why real sprays spread over time and across several IPs, and why detection by origin + password (not by account) is what works.
Where the candidates come from
Section titled “Where the candidates come from”Passwords that meet complexity but are guessable follow human patterns:
| Pattern | Examples |
|---|---|
| Season/month + year + symbol | Summer2025! Autumn2025! January2026! |
| Company + year/number | Acme2025! Acme1234 |
| Common bases | Password1 Welcome1 Changeme123 |
| Keyboard | Qwerty123! Zaq12wsx |
| The account itself | username = password |
Add passwords found in the description field of accounts (a frequent enum finding) and already
cracked ones from Responder/NTLM, to reuse against everyone.
Variants
Section titled “Variants”| Variant | Surface | Note |
|---|---|---|
| SMB spray | DC’s SMB | Generates 4625; respect the threshold |
| Kerberos spray (pre-auth) | KDC | Stealthier, no SMB 4625 |
| LDAP/WinRM/MSSQL/RDP spray | Internal services | Same list, other surfaces |
| External spray | OWA/Exchange, VPN, ADFS, O365 | MFA may stop it, but doesn’t always cover everything |
| AS-REP roasting as spray | KDC | Accounts without pre-auth: hashes without trying passwords |
| Internal reuse | Everything | One cracked password tried against everyone |
Red Team
Section titled “Red Team”Get the list and the policy
Section titled “Get the list and the policy”No list, no spray. Kerberos userenum (needs no credentials), authenticated enum if you already have an
account, or OSINT of names (LinkedIn → first.last):
kerbrute userenum -d corp.local --dc 10.10.10.10 possible-users.txtnxc smb 10.10.10.10 -u jdoe -p 'Passw0rd!' --users # if you already have an accountnxc smb 10.10.10.10 -u jdoe -p 'Passw0rd!' --pass-pol # lockout policyThe policy tells you how many attempts and with what spacing you can afford.
Launch the spray (controlling lockout)
Section titled “Launch the spray (controlling lockout)”# Kerberos pre-auth: fast and stealthier (no SMB 4625)kerbrute passwordspray -d corp.local --dc 10.10.10.10 users.txt 'Summer2025!'# SMB with NetExec: one attempt per user per roundnxc smb 10.10.10.10 -u users.txt -p 'Summer2025!' --continue-on-success# other surfaces with the same listnxc ldap 10.10.10.10 -u users.txt -p 'Summer2025!' --continue-on-successSpecial sprays
Section titled “Special sprays”- AS-REP roasting as spray: if there are accounts with
DONT_REQ_PREAUTH, you get hashes without trying passwords (Kerberos). - External spray: OWA/Exchange, VPN, ADFS, O365 portals. MFA stops a lot, but legacy protocols (basic IMAP/POP/SMTP) sometimes bypass it.
- Reuse: a cracked Responder password tried against every account (internal credential stuffing).
After a hit
Section titled “After a hit”A single [+] gives domain credentials → jump to enumeration and
BloodHound, spray that same password on other services, and hunt for where that account is a local
admin.
Investigator workflow
Section titled “Investigator workflow”- User list (userenum/OSINT) + lockout policy.
- Two or three very likely passwords (season+year from the current date, company+year).
- Kerberos spray (stealthy) first; otherwise SMB/LDAP.
- One attempt/account per round, respecting the window.
- On a hit: full enum + reuse that password everywhere.
- kerbrute: userenum and Kerberos pre-auth spray (fast, no SMB 4625).
- NetExec (nxc): multiprotocol spray (SMB/LDAP/WinRM/MSSQL/RDP) with lockout control.
- DomainPasswordSpray (PowerShell, from inside the domain: auto-discovers users and policy).
- MailSniper: spray against external OWA/Exchange.
Impact and chaining
Section titled “Impact and chaining”Initial or lateral access with valid domain credentials, often starting from just a list of names. It’s one of the most common entry vectors to AD and the start of countless real intrusions.
Blue Team
Section titled “Blue Team”Detection
Section titled “Detection”- Many 4625 (logon failures) from one password against many accounts in a short window → the classic spray signature. Correlate by origin/password, not by account (per account it’s diluted).
- Kerberos: many 4768/4771 with failed pre-auth from the same origin.
- Successful login (4624) from an unusual IP or origin right after a burst of failures.
- Failure spikes in OWA/VPN/ADFS.
Telemetry and sources
Section titled “Telemetry and sources”- SIEM with rules for “N distinct accounts, same origin, same window.”
- Exchange/VPN/ADFS logs and Entra ID (sign-in logs, smart lockout).
- 4625/4771 auditing aggregated by origin.
Hardening
Section titled “Hardening”- MFA on everything exposed (VPN, OWA, portals). The highest-impact mitigation.
- Banned common passwords: Entra ID Password Protection / banned-password lists block
Company2025!and variants. - Smart lockout and well-tuned lockout policies; alerts as the threshold is approached.
- Disable legacy authentication protocols that bypass MFA (basic IMAP/POP/SMTP).
- High minimum length (passphrases) and credential-reuse detection.
Response
Section titled “Response”Reset compromised accounts, enforce MFA, investigate what the account reached (sessions, access), and hunt for lateral spraying with the same password on other systems.
CVEs and real cases
Section titled “CVEs and real cases”- Password spraying is not a CVE: it’s a TTP (MITRE T1110.003), one of the most used for initial access.
- Midnight Blizzard / Nobelium (2024) compromised Microsoft via password spraying against a legacy test account without MFA — the recent reference case for why MFA and retiring legacy accounts matter.
- APT33, Lazarus and many groups use spraying against O365/VPN as a documented entry; many ransomware intrusions start with spraying exposed RDP/VPN.
Test checklist
Section titled “Test checklist”- Valid user list and lockout policy?
- Candidates that meet complexity (season+year, company+year, username=password).
- One attempt/account per round, respecting the lockout window.
- Kerberos spray (stealthy) and SMB/LDAP.
- Passwords from descriptions; reuse of a cracked one.
- Spray against external services (OWA/VPN/ADFS) — MFA?
- Blue: detection by origin/password and MFA deployed?