AD Attributes
servicePrincipalName (SPN) — Kerberos service identity
servicePrincipalName maps a Kerberos service to the account that runs it. Any SPN on a user account is a Kerberoasting target: a crackable service ticket can be requested for it by any authenticated user.
What it is
servicePrincipalName (SPN) is a multi-valued attribute that names the
Kerberos services an account runs — MSSQLSvc/db01.contoso.com:1433,
HTTP/web01, CIFS/fs01. When a client wants a service ticket, the KDC looks
up the account whose servicePrincipalName matches the requested SPN and
encrypts the ticket with that account's key.
Why it matters for security
Because any authenticated user can request a service ticket for any SPN, an SPN set on a user account is a Kerberoasting target: the attacker requests the ticket and cracks it offline to recover the service account's password. The ticket is encrypted with the account's NT hash (or AES key), so weak passwords on SPN-bearing user accounts fall quickly.
# Every user account that carries an SPN (classic Kerberoasting surface)
Get-ADUser -LDAPFilter "(servicePrincipalName=*)" -Properties servicePrincipalName
Computer and managed-service accounts also carry SPNs, but their long random passwords make them poor cracking targets — the risk concentrates on user accounts.
Related
userAccountControl— theTRUSTED_FOR_DELEGATIONbit lives heremsDS-AllowedToDelegateTo— constrained delegation targetssAMAccountName— the account name behind the SPN