Lesson 1 of 9 · 27m
Kerberoasting Service Accounts the Right Way
Learn why service principal names turn ordinary domain access into offline password attacks, and how to scope, crack, and defend them.
The first time I watched a junior tester kerberoast a domain, they treated it like a party trick: request every ticket, crack one password, declare victory. The real lesson is uglier. Any domain user can ask for a service ticket for a service account; if that account has a weak human-chosen password, Active Directory will hand over encrypted material that can be attacked offline. No failed logons. No lockouts. Often no one notices for years.
The mechanism in one diagram
client -> KDC: TGT for user
client -> KDC: service ticket request for SPN MSSQLSvc/sql01.corp.local:1433
KDC -> client: service ticket encrypted with the service account key
client -> service: ticket presented for authenticationThe service ticket is encrypted with a key derived from the service account password. An attacker does not need administrative rights to request it. They only need a valid domain user and network access to a domain controller. That is why service account hygiene is an attack surface, not an operations detail.
Find service principal names before requesting tickets
SPNs attach services to accounts. You can enumerate them with LDAP tools, PowerShell, or Impacket:
setspn.exe -Q */*impacket-GetUserSPNs corp.local/lowpriv:'Winter2026!' -dc-ip 10.10.20.15 -request -outputfile spn-tickets.txtIn a lab or authorized assessment, look closely at which accounts have SPNs. Service accounts should ideally be managed service accounts or use long random passwords. If a normal user object with adminCount history, domain admin membership, or broad SQL rights has an SPN and a password like SqlService2019!, you have found the classic failure.
Request a small set, not the whole forest
Mass requests are noisy and operationally sloppy. Choose targets by privilege and exposure:
high value domain admins, SQL admins, service accounts in admin groups
high exposure SPNs reachable from user workstations or application DMZs
old age password last set years ago
weak control password never expires, shared across multiple servicesGetUserSPNs.py -request-user sqlsvc or a targeted LDAP query is cleaner than requesting every ticket in a production domain. If you are doing defense validation, compare what you requested with the domain controller event volume afterward.
Crack offline, carefully
RC4-related Kerberos tickets are commonly attacked as hashcat mode 13100; AES ticket formats use different modes and cost more time:
hashcat -m 13100 spn-tickets.txt /usr/share/wordlists/rockyou.txt -r rules/best64.rule --status --status-timer 30The ticket does not expire just because you copied it offline. If cracking succeeds, the plaintext password may be valid for months or years. This is why kerberoasting is dangerous even when the initial noise looks small.
Defense starts with account design
The correct answer is not "monitor harder." Use group managed service accounts where possible, or random passwords of 25+ characters for interactive-incompatible service identities. Remove SPNs from user accounts that do not need them. Tier service accounts, prohibit them from interactive workstation logon, and alert when they authenticate from unusual systems.
Field notes
- A service account in Domain Admins is not "required by the application" until the vendor proves which exact privilege it needs.
adminCount=1often survives after group removal because AdminSDHolder already stamped it; treat it as a clue, not proof of current privilege.- Kerberoasting success does not mean Kerberos is broken. It means password strength and account architecture failed.
- Do not crack customer hashes outside the approved environment. A password for one service often unlocks far more than one service.
Was this lesson helpful?