Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

AS-REP Roasting

Direct answer

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.

When to use this

Use this when checking for accounts vulnerable to AS-REP roasting.

First 30 seconds

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.

Operational verification

attacker → AS-REQ without pre-auth → AS-REP → offline cracking

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • 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).
Platform / version applicability
Identity, authentication and access control
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformIdentity, authentication and access control
Scope / prerequisiteUse this when checking for accounts vulnerable to AS-REP roasting.
What next?2 suggested next steps
Evidence1
On this pageJump to a specific section
Evidence references

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.

observation · 1
Key points
  • 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.
Key checks
  • Get-ADUser -Filter 'DoesNotRequirePreAuth -eq $true' — accounts without pre-auth
  • Get-WinEvent -FilterHashtable @{LogName='Security';Id=4768} | ? {$_.Properties[7].Value -eq '0x0'} — TGT without pre-auth
  • Set-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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docIdentity, authentication and access control current

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%
Confirmation

Confirm action

Continue?