How It Works and How to Detect It
A walk through the attack on Windows service accounts, the log events that give it away, and what Microsoft's 2026 RC4 changes do and do not fix.
Kerberoasting is an attack on Windows service accounts that needs nothing more than a valid domain login. The attacker asks the domain controller for service tickets, copies them off the network, and guesses the service account passwords offline until one fits. Password strength decides the outcome.
MITRE lists FIN7, Wizard Spider and APT29 (during the SolarWinds compromise) among the groups that have used it [1]. A cracked service account often leads to lateral movement, which is the stage your Active Directory ransomware containment plan has to stop.
This guide covers how Kerberoasting works, what it leaves in the logs, and what Microsoft's 2026 RC4 changes mean for detection. If you already hunt with EDR data, living-off-the-land hunting pairs well with it. Your incident response plan should also say who owns each service account.
Key takeaways
- Kerberoasting needs only a valid domain account, and it targets accounts that have a service principal name [1].
- The ticket is cracked offline, so password length and randomness decide whether the attack works [1].
- The classic log signal is Event ID 4769 with ticket encryption type 0x17, which means RC4 [2].
- Updated domain controllers now block RC4 service tickets by default, so that signal gets rarer, but AES tickets can still be roasted [3].
- Group managed service accounts take the password out of human hands [4].
What is Kerberoasting, and who can do it?
Kerberoasting is a credential access technique, tracked by MITRE ATT&CK as T1558.003. An attacker holding any valid domain account requests Kerberos service tickets for accounts with service principal names (SPNs), then cracks the encrypted part offline to recover the plaintext password of the service account behind each SPN.
An SPN is the name Kerberos uses to identify one instance of a service, such as a SQL Server database or an internal web app. MITRE notes that each SPN has to be tied to at least one logon account that runs the service [1]. Those logon accounts are what Kerberoasting goes after.
Kerberoasting is a technique, not a single CVE. It combines normal ticket behavior with weak passwords. Microsoft did assign CVE-2026-20833 to the RC4 side of the problem, which matters later in this guide [3].
Two assumptions are worth dropping early. The attacker does not need admin rights, only a valid domain account or the ability to capture ticket traffic [1]. And MFA does not slow the cracking, since it happens offline and no sign-in prompt ever appears. Phishing-resistant MFA still earns its place for the logins it can protect.
Where a cracked service account can log on is a network question as much as an identity one. That is why network segmentation belongs in the same conversation.
How does the attack work, step by step?
The attacker signs in as any domain user, finds accounts that have SPNs, and asks the domain controller for a service ticket for each one. Part of every ticket is protected with a key based on the service account's password hash. That lets the attacker guess passwords offline, away from your network and your lockout policy.
MITRE lists Rubeus, Impacket's GetUserSPNs and PowerSploit's Invoke-Kerberoast among the tools that automate the request step [1]. The step that matters to the attacker is the last one, and it runs on hardware you will never see.
So only two parts of the chain are visible to you: the ticket requests that reach your domain controllers, and whatever the requesting machine does around them. The cracking itself leaves nothing behind.
From a defender's seat, each request looks like a valid ticket request from an authenticated user. That is why detection leans on volume, encryption type and baselines instead of a single bad event.
Which service accounts are most exposed?
The accounts at greatest risk are user accounts that carry an SPN and have a short, human-chosen or very old password, especially if they belong to privileged groups. Group managed service accounts (gMSAs) sit at the other end, because Windows generates a 240-byte random password for them and rotates it every 30 days.
MITRE's advice for user-based service accounts is a password ideally 25 characters or longer that expires periodically, or a gMSA, or a password vault [1]. Microsoft puts the gMSA password at 240 bytes of random data, changed every 30 days [4].
Old accounts hide a second problem. An account created before AES-SHA1 support arrived and never reset may have no AES keys at all, and changing its password generates them [2].
Privilege decides how bad a cracked password gets. MITRE tells defenders to keep service accounts out of groups such as Domain Admins [1].
What does Kerberoasting look like in the logs?
Domain controllers record every service ticket request as Event ID 4769 in the Security log. For Kerberoasting, defenders watch for a successful request (Failure Code 0x0) with Ticket Encryption Type 0x17, which means RC4, or for one account asking for tickets to many different services in a short window.
The 4769 event carries the fields below, and each one earns a different question during triage. The encryption type values come from Microsoft's RC4 guidance [2].
| Field in Event 4769 | What it shows | Why it matters for Kerberoasting |
|---|---|---|
| Account Name | Who requested the ticket | The suspect. One name asking for many services is the pattern. |
| Service Name | Which service the ticket is for | Names ending in $ are computer accounts, which the Sigma rule below excludes [5]. |
| Ticket Encryption Type | The cipher protecting the ticket | 0x17 is RC4, 0x12 is AES256, 0x11 is AES128 [2]. |
| Failure Code | Result of the request | 0x0 means the ticket was issued. |
| Client Address | Source host of the request | Pivot here to see what else that host did. |
| Ticket Options | Flags on the request | The Sigma rule matches 0x40810000 [5]. |
SigmaHQ publishes a rule for this exact pattern. Its detection logic is short:
detection:
selection:
EventID: 4769
TicketOptions: '0x40810000'
TicketEncryptionType: '0x17'
reduction:
ServiceName|endswith: '$'
condition: selection and not reduction
The rule's authors list legacy service accounts (NetApp is their example) and domains at the 2003 functional level as likely false positives [5].
A single RC4 ticket is a weak signal. MITRE's detection strategy also looks for accounts requesting an unusual number of tickets in a short period, and for service accounts targeted outside their normal baseline [1]. The query below sketches the burst idea for Microsoft Sentinel.
SecurityEvent
| where EventID == 4769 and Status == "0x0"
| where ServiceName !endswith "$" and ServiceName != "krbtgt"
| summarize Services = dcount(ServiceName), EncTypes = make_set(TicketEncryptionType)
by TargetUserName, IpAddress, bin(TimeGenerated, 10m)
| where Services >= 5
We have not run this against a live workspace, so check the column names against your own schema. Start with a low threshold in a lab, then raise it until normal application traffic stops tripping it.
MITRE also suggests correlating ticket anomalies with process activity on the requesting host, such as Mimikatz touching LSASS [1].
Does the RC4 phase-out end Kerberoasting?
Microsoft's CVE-2026-20833 changes make updated domain controllers stop issuing RC4 service tickets by default, which removes the easiest version of the attack. The technique survives, though. Accounts that are explicitly allowed RC4 still get RC4 tickets, and AES tickets can still be requested and attacked offline.
Microsoft describes CVE-2026-20833 as an information disclosure issue that could let an attacker obtain service tickets with weak or legacy encryption such as RC4 and recover a service account password offline. The rollout for it ran in three phases [3].
If your domain controllers carry the July 2026 or later updates, enforcement is the normal state. Two exceptions remain. An account with RC4 set explicitly in msDS-SupportedEncryptionTypes still receives RC4 tickets, and an administrator who sets DefaultDomainSupportedEncTypes to allow RC4 leaves every account in the domain exposed to the CVE [3].
For detection, that changes what the 0x17 signal is worth. On an updated domain, a successful RC4 ticket for a user account usually points to an explicit exception, a stale configuration or a domain controller that missed patching. Each of those deserves its own ticket, attacker or not.
It does not make burst detection optional. MITRE's entry for Wizard Spider mentions stealing AES hashes, so a roasting tool that asks for AES tickets will never trip an RC4 rule [1].
Microsoft also writes Kdcsvc events 201 to 209 to the System log of domain controllers, and events 203 and 204 mark requests the KDC blocked [3]. Microsoft presents them as compatibility warnings, not attack alerts. A client that suddenly piles up blocked requests still deserves a look, though we have not tested whether common roasting tools trigger them.
What actually fixes Kerberoasting?
Remove the guessable password. Move services to gMSAs where they support them, give every remaining service account a long random password, enforce AES, and strip unneeded privilege. Detection tells you an attempt happened, but only the password decides whether it worked.
| Control | What it does | Catch |
|---|---|---|
| Move to gMSA | Windows generates a 240-byte random password and rotates it every 30 days [4]. | Some services, such as failover clustering, do not support gMSAs. Test before production [4]. |
| Long random passwords elsewhere | MITRE suggests 25 or more characters with periodic expiry, or a password vault [1]. | Someone has to own the rotation, and the service must pick up each new value. |
| Enforce AES | Set msDS-SupportedEncryptionTypes on the account or use the Kerberos encryption types policy. Resetting an old account's password creates AES keys [2]. | Non-Windows services using keytabs exported with RC4 keys only can fail after the change [3]. Audit first. |
| Cut privilege | A cracked password then opens fewer doors [1]. | Needs the service owner to say what the account really uses. |
To see your own target list, start with the user accounts that hold an SPN. This read-only query is our own and has not been run in a live domain, so try it in a test domain first.
Get-ADUser -Filter 'ServicePrincipalName -like "*"' `
-Properties ServicePrincipalName, PasswordLastSet, 'msDS-SupportedEncryptionTypes', MemberOf |
Select-Object SamAccountName, PasswordLastSet, 'msDS-SupportedEncryptionTypes',
@{n='GroupCount';e={$_.MemberOf.Count}} |
Sort-Object PasswordLastSet
What should you do if a service account may have been roasted?
A ticket request alone does not prove the password fell. It does mean the account is only as safe as its password, so a suspicious request for a weak account is a reason to reset it, not a reason to wait for proof.
Reset the password to a long random value, then check what the account can reach and whether it signed in anywhere new after the request. Review the requesting account and host from the 4769 event before you close the case.
What this guide does not cover
We did not run a Kerberoasting attack in a lab for this article. The event fields, rule logic and rollout dates come from Microsoft, MITRE and SigmaHQ. The burst query, the inventory script and the reading of blocked-request events are our own analysis.
The guide also leaves out AS-REP roasting, which MITRE tracks as a separate sub-technique, T1558.004 [1].
Start with the oldest password
This week, run the inventory query, sort by PasswordLastSet, and take the oldest user account with an SPN to its owner. Ask one question: can this service move to a gMSA? If the answer is no, set a long random password and write down who rotates it.
Sources & References
- MITRE ATT&CK. Steal or Forge Kerberos Tickets: Kerberoasting (T1558.003). Version 1.3, accessed November 26, 2026.
- Microsoft Learn. Detect and remediate RC4 usage in Kerberos. Last updated February 6, 2026.
- Microsoft Support. How to manage Kerberos KDC usage of RC4 for service account ticket issuance changes related to CVE-2026-20833 (KB5073381). Accessed November 26, 2026.
- Microsoft Learn. Secure group managed service accounts. Accessed November 26, 2026.
- SigmaHQ rule, shown on Detection.FYI. Suspicious Kerberos RC4 Ticket Encryption. Accessed November 26, 2026.

Leave a Comment (Authenticated Users)