Pcornel
Security · Active Directory Security

AS-REP Roasting

Cheat sheet · https://pcornel.dk/topic.php?topic=4522

Back to the Topic

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.

Remember

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

First 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

Verify in this order

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

Where it usually breaks

First mismatch in identity lifecycle → authenticator/credential → IdP/federation/session → authorization policy → target resource → audit trail; preserve identity/policy/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4522

Confirmation

Confirm action

Continue?