Lesson 2 of 9 · 23m
AS-REP Roasting and Password Spraying Without Locking the Domain
Distinguish pre-authentication abuse from careful password guessing, and learn the operational discipline both attacks demand.
Kerberoasting gets attention because it is elegant. Password spraying gets results because humans are predictable. AS-REP roasting sits between them: a smaller, weirder misconfiguration where Kerberos pre-authentication is disabled and the KDC returns material an attacker can crack offline. The common thread is that identity attacks succeed when defenders confuse low volume with low risk.
Understand pre-authentication first
Kerberos normally requires the client to prove knowledge of the password before receiving encrypted authentication material. This is pre-authentication. If DONT_REQUIRE_PREAUTH is set on a user account, the KDC will return an AS-REP encrypted with a key derived from that user's password without requiring that proof.
Enumerate candidates with LDAP:
Get-ADUser -Filter 'UserAccountControl -band 4194304' -Properties UserAccountControl,PasswordLastSet |
Select-Object SamAccountName,PasswordLastSetThe bit is decimal 4194304. It should be rare. Legacy applications and careless migrations are the usual explanations, and neither makes the exposure acceptable.
Roast only after validating impact
Impacket can request AS-REP material:
impacket-GetNPUsers corp.local/ -dc-ip 10.10.20.15 -usersfile users.txt -format hashcat -outputfile asrep.txthashcat -m 18200 asrep.txt /usr/share/wordlists/rockyou.txt -r rules/best64.ruleThe operational issue is not noise; it is scope. Do not feed a list of every account in the forest into the tool because you can. Validate that the accounts are in scope, then prioritize privileged or externally exposed identities.
Password spraying is measurement plus restraint
Spraying tries one or two common passwords across many accounts instead of many passwords against one account. That avoids per-account lockout thresholds, but it still creates a pattern:
10:00:05 10.10.30.44 auth failure user=amartin
10:00:07 10.10.30.44 auth failure user=bnguyen
10:00:09 10.10.30.44 auth failure user=cpatel
10:00:11 10.10.30.44 auth failure user=drodriguezRead the domain password and lockout policy before touching production:
Get-ADDefaultDomainPasswordPolicy |
Select-Object LockoutThreshold,LockoutObservationWindow,LockoutDurationIf the threshold is 5 and the observation window is 30 minutes, a responsible test often stays at one attempt per account per window or lower. Prefer a short candidate list based on organization-specific evidence: season plus year, company name variants, local sports teams, and passwords recovered from prior sanctioned breach corpus analysis.
Know which protocol you are spraying
LDAP simple bind, Kerberos, NTLM, SMB, OWA, VPN, and cloud authentication all log differently and enforce lockout differently. A password valid against one surface may fail on another because MFA, conditional access, or legacy protocol controls differ. Record protocol, source, target, timestamp, result, and whether the attempt counted toward lockout.
Field notes
- Lockout threshold zero does not mean safe; it means denial of service becomes trivial if you spray recklessly.
- Fine-grained password policies can make one organizational unit much weaker than the domain default. Check effective policy per user.
- A valid sprayed password is not full access. MFA, device restrictions, and interactive logon rights still matter.
- AS-REP roastable accounts should be treated as incidents when newly introduced, not accepted as legacy trivia.
Was this lesson helpful?