Kerberoasting — Part 2: Discovery and attack
A lab domain controller exposed Kerberos and LDAP services, and a valid username was found through username enumeration and then its password cracked by brute force. Because a service account had a service principal name set, its Kerberos service ticket could be requested and cracked offline, and the recovered credentials gave remote WinRM access to the domain controller.
Published on systemweakness.com
This is the second part of the series. Hope you have the AD setup ready now.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker with any valid domain account could crack a service account's password offline and use it to gain remote shell access to the domain controller.
What the attacker needed
A lab AD domain controller; a valid domain username; a password wordlist; network access to the DC
The fix
Service accounts with SPNs should use long, random passwords so the offline ticket crack cannot succeed, and accounts should follow least privilege.
How it was found
- Scan the domain controller to find open AD ports such as LDAP and Kerberos
- Query LDAP to learn the domain name
- Enumerate valid usernames with kerbrute
- Brute force the found user's password with kerbrute
- Request service tickets for accounts with SPNs using Impacket
- Crack the ticket offline with hashcat, then log in over WinRM
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Kerberos is the login system used in Windows domains. When a service account has a service principal name (a label tying it to a service), any logged-in user can ask the domain for a ticket for that service, and that ticket is encrypted with the service account's password. An attacker can take the ticket away and guess passwords offline until the ticket decrypts, which reveals the service account's password.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.