Skip to content
Pwnversity
AD-SPRAYintermediate · 8 min · upd. 2026-11

Password spraying

T1110.003T1110.004T1078

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"]
  • 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.

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.

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.

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.

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

No list, no spray. Kerberos userenum (needs no credentials), authenticated enum if you already have an account, or OSINT of names (LinkedIn → first.last):

Ventana de terminal
kerbrute userenum -d corp.local --dc 10.10.10.10 possible-users.txt
nxc smb 10.10.10.10 -u jdoe -p 'Passw0rd!' --users # if you already have an account
nxc smb 10.10.10.10 -u jdoe -p 'Passw0rd!' --pass-pol # lockout policy

The policy tells you how many attempts and with what spacing you can afford.

Ventana de terminal
# 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 round
nxc smb 10.10.10.10 -u users.txt -p 'Summer2025!' --continue-on-success
# other surfaces with the same list
nxc ldap 10.10.10.10 -u users.txt -p 'Summer2025!' --continue-on-success
  • 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).

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.

  1. User list (userenum/OSINT) + lockout policy.
  2. Two or three very likely passwords (season+year from the current date, company+year).
  3. Kerberos spray (stealthy) first; otherwise SMB/LDAP.
  4. One attempt/account per round, respecting the window.
  5. 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.

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.

  • 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.
  • 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.
  • 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.

Reset compromised accounts, enforce MFA, investigate what the account reached (sessions, access), and hunt for lateral spraying with the same password on other systems.

  • 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.
  • 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?