Use this when checking for accounts vulnerable to AS-REP roasting.
AS-REP Roasting
AS-REP roasting targets accounts with Kerberos pre-authentication disabled: an attacker requests an AS-REP and cracks it offline to get the password. Keep pre-authentication enabled and use strong passwords.
1. AS-REP roasting: accounts without Kerberos pre-authentication leak crackable data.
2. Find and fix DONT_REQ_PREAUTH accounts.
3. Strong passwords if needed.
4. Detect 4768 with pre-auth type 0.
5. Rarely needed legitimately.
attacker → AS-REQ without pre-auth → AS-REP → offline cracking
Context & applicabilityCommon mistakes · platform/version boundaries
- Old accounts with preauthentication disabled from migrations nobody remembers.
- Weak passwords on those accounts.
- No alert on event 4768 with Pre-Authentication Type 0.
- Granting rights to change
userAccountControl, which lets attackers disable preauth on a target (targeted AS-REP roasting).
Operational reference
Fast context before you go deeper.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Only accounts with 'Do not require Kerberos preauthentication' are exposed.
- The attacker cracks the AS-REP offline.
- Strong passwords reduce but do not remove the risk.
Get-ADUser -Filter 'DoesNotRequirePreAuth -eq $true'— accounts without pre-authGet-WinEvent -FilterHashtable @{LogName='Security';Id=4768} | ? {$_.Properties[7].Value -eq '0x0'}— TGT without pre-authSet-ADAccountControl <u> -DoesNotRequirePreAuth $false— fix
ReferenceWhy it matters1 section · depth on demand
Detection and prevention
Find exposed accounts: Get-ADUser -Filter {DoesNotRequirePreAuth -eq $true}. Enable pre-authentication on all of them unless a legacy application truly needs it, and give any exception a long random password. Detect with event 4768 where pre-authentication type is 0.
ReferenceHow it works1 section · depth on demand
How the attack works
Accounts with Do not require Kerberos preauthentication return an AS-REP containing data encrypted with the user's key to anyone who asks, so it can be cracked offline. Find them:
Get-ADUser -Filter {DoesNotRequirePreAuth -eq $true}
Remove the flag unless an old application truly needs it; then use a long random password.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
AS-REP roasting targets accounts that have Kerberos pre-authentication disabled. For those accounts, anyone can request authentication data that is encrypted with the account's password-derived key and attempt to crack it offline. Weak passwords on such accounts fall quickly.
Mitigation:
1. Find accounts with pre-authentication disabled and re-enable it unless there is a documented need.
2. Enforce long, random passwords on any remaining exceptions.
3. Prefer AES encryption types over RC4.
Get-ADUser -Filter 'DoesNotRequirePreAuth -eq $true' -Properties DoesNotRequirePreAuth | Select-Object SamAccountName
Detection: Kerberos TGT requests (event 4768) with pre-authentication type 0 for these accounts, especially from unusual hosts.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Active Directory Security → AS-REP Roasting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows/security/ · confidence 94%