permalink: spells/kerberoasting
tags:
- Protocol/Kerberos
- OS/Windows/ActiveDirectory
- AttackCycle/Exploitation/Kerberoasting
- Application/PowerShell/Invoke-Kerberoast
- Application/Hashcat
- Application/JohnTheRipperKerberoasting is where a service ticket is used to brute force a service password. This password can then be used to either move laterally or (if the service runs with elevated privileges) to elevate your privileges. Note that not every account is kerberoastable; the Kali Linux tool Bloodhound can be used to identify potentially kerberoastable accounts.
Impacket can identify kerberoastable accounts and dump packets remotely. It comes standard with Kali Linux. The password hashes output here can then be cracked with Hashcat (use the 13100 hash mode).permalink: spells/kerberoasting-with-impacket
tags:
- OS/Windows/ActiveDirectory
- Protocol/Kerberos
- AttackCycle/Exploitation/Kerberoasting
- Application/Impacket
- Application/Hashcat
- OS/Linux/Distros/KaliKerberoasting with Impacket
GetUserSPNs.py ${DOMAIN}/${USER}:${PASSWORD} \
-dc-ip $DOMAIN_CONTROLLER_IP -request
The password hashes output here can then be cracked with Hashcat (use the 13100 hash mode).permalink: spells/kerberoasting-with-rubeus
tags:
- OS/Windows/ActiveDirectory
- Protocol/Kerberos
- AttackCycle/Exploitation/Kerberoasting
- Application/Rubeus
- Application/HashcatKerberoasting with Rubeus
# Extract password hashes for all known kerberoastable accounts using
# Rubeus.
#
Rubeus.exe kerberoast
The Invoke-Kerberoast PowerShell module can be used to create a dump of service tickets that can then be attacked offline using Hashcat or John the Ripper. (Note that calling Out-File with the -Width 8000 option is important in the below example, as otherwise the ticket can be truncated!)
Invoke-Kerberoast -OutputFormat Hashcat |
Select-Object Hash |
Out-File -filepath "$FILE_PATH" -Width 8000
The main defenses against kerberoasting are (1) strong passwords and (2) making sure you're not running any services as domain admin (which you shouldn't need to do in this day and age anyway).