Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

Kerberoasting

Direct answer

Kerberoasting requests service tickets for accounts with SPNs and cracks them offline to recover service account passwords. Use gMSAs or long random passwords, AES encryption and monitor unusual ticket requests.

When to use this

Use this when protecting service accounts from Kerberoasting.

First 30 seconds

1. Kerberoasting: request service tickets and crack the service account password offline.

2. Defend: gMSA, long passwords, AES only.

3. Detect RC4 TGS requests (4769, 0x17).

4. Honeypot SPN accounts.

5. Remove unused SPNs.

Operational verification

attacker → TGS request for SPN → offline cracking

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Identity, authentication and access control
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformIdentity, authentication and access control
Scope / prerequisiteUse this when protecting service accounts from Kerberoasting.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Common mistakes Narrow the fault
  • Service accounts with RC4 and short passwords.
  • No monitoring of 4769 with RC4 encryption type.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • Any user can request service tickets for SPN accounts.
  • Weak service passwords crack offline.
  • gMSAs make Kerberoasting useless.
Key checks
  • Get-ADUser -Filter {ServicePrincipalName -like '*'} -Properties ServicePrincipalName,msDS-SupportedEncryptionTypes — roastable accounts
  • Get-WinEvent -FilterHashtable @{LogName='Security';Id=4769} | ? {$_.Properties[5].Value -eq '0x17'} — RC4 service ticket requests
  • Password length of SPN accounts — 25+ chars
ReferenceWhy it matters1 section · depth on demand

Detection and prevention

  • Find exposed accounts: user accounts with SPNs.
  • Use gMSAs, or passwords of 25+ random characters.
  • Enforce AES for service accounts and disable RC4 where possible.
  • Detect: event 4769 with ticket encryption 0x17 (RC4), or one user requesting many service tickets in a short time.
  • Honey account with an SPN that nobody should use raises a high-confidence alert.
ReferenceHow it works2 sections · depth on demand

How the attack works

Any domain user can request a service ticket (TGS) for an account with an SPN. Part of the ticket is encrypted with the service account's password hash, so the attacker cracks it offline. RC4 tickets (etype 23) crack much faster than AES. Tools: Rubeus kerberoast, GetUserSPNs.py. Event 4769 with Ticket Encryption Type 0x17 is a strong signal.

In depth

Kerberoasting requests Kerberos service tickets for accounts with service principal names (SPNs). Part of each ticket is encrypted with the service account's password-derived key, so any domain user can request tickets and attempt to crack weak service account passwords offline.

Mitigation:

ControlEffect
gMSA / dMSA120+ character random passwords, uncrackable
Long random passwords (25+ chars) for remaining accountsCracking infeasible
AES-only encryption typesRemoves the faster RC4 path
Least privilege for service accountsLimits impact if cracked
Remove unused SPNsFewer targets

Detection: unusual volumes of TGS requests (event 4769) from one account, especially with RC4 encryption (type 0x17), or requests for many different SPNs in a short time. Honey SPNs on decoy accounts give high-confidence alerts.

ReferenceConfiguration & state1 section · depth on demand

Commands

Get-ADUser -Filter {ServicePrincipalName -like '*'} -Properties ServicePrincipalName,msDS-SupportedEncryptionTypes,PasswordLastSet
Set-ADUser svc-sql -Replace @{'msDS-SupportedEncryptionTypes'=24}   # AES128+AES256

Documented example, not captured output. A honeypot account with an SPN and no real use gives a high-fidelity Kerberoasting alert (event 4769 for that account).

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docIdentity, authentication and access control current

Authoritative/upstream documentation reviewed for bounded claims in Active Directory Security → Kerberoasting. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://learn.microsoft.com/en-us/windows/security/ · confidence 94%
Confirmation

Confirm action

Continue?