A Kerberoasting hunt asks one question: is any account in your domain requesting service tickets for service accounts in a way that real applications never do? This guide turns that question into a hunt you can run this week. It covers the hypothesis, the domain controller telemetry you need, the fields that matter in Windows event 4769, illustrative query logic, a triage path for each kind of hit, and the hardening steps that make the next hunt quieter.
Kerberoasting is MITRE ATT&CK technique T1558.003. An attacker who already holds any valid domain account asks the domain controller for service tickets for accounts that carry a Service Principal Name (SPN), then tries to crack the ticket offline to recover the service account password. The request itself is a normal Kerberos operation, which is why prevention alone is never enough and why hunting matters. Service accounts are non-human identities, often old, often privileged and rarely rotated, so this is as much an identity problem as a detection one.
For the attack mechanics, impact and broader defence programme, read the Kerberoasting and AS-REP Roasting Defence Guide. For how hunting fits into a SOC programme, see the Threat Hunting Guide. This page stays narrow: one hunt, run well.
Key takeaways
- The core data source is event 4769, "A Kerberos service ticket was requested", which Microsoft documents as generated only on domain controllers under the Audit Kerberos Service Ticket Operations subcategory.
- The single most useful field is Ticket Encryption Type. Microsoft's own monitoring guidance says that from Windows Vista and Windows Server 2008 onwards you should watch for values other than 0x11 and 0x12 (the AES types). A 0x17 (RC4-HMAC) ticket for a user-based service account is the classic signal.
- Volume and breadth matter more than any single event: one account requesting tickets for many distinct SPNs in a short window, from a workstation, is the shape of a roasting tool.
- Newer 4769 fields (Advertised Etypes, Session Encryption Type, MSDS-SupportedEncryptionTypes and Available Keys) let you tell legacy configuration apart from deliberate RC4 downgrade.
- Every hit should end in one of three outcomes: benign and baselined, misconfiguration to fix, or incident to escalate with a password reset of the targeted service accounts.
- The best long-term outcome of the hunt is fewer roastable accounts: AES-only encryption, long random passwords and group Managed Service Accounts.
The hunt hypothesis
Write the hypothesis down before you touch a query. A clear hypothesis keeps the hunt bounded and makes the result reportable whether you find an attacker or not. A workable version is:
"An authenticated account in our domain is requesting Kerberos service tickets for user-based service accounts, using RC4 encryption or at a breadth and rate inconsistent with its normal behaviour, in order to crack service account passwords offline."
Break the hypothesis into testable sub-questions:
- Which service tickets in the hunt window were issued with RC4 (0x17) or DES (0x1, 0x3) encryption?
- Which requesting accounts asked for tickets for an unusually large number of distinct service names in a short window?
- Which requests came from client addresses that do not normally talk to that service, or from addresses outside your internal ranges?
- Were any of the targeted service accounts later used to log on from somewhere new?
Define the window (30 days is a sensible first pass if retention allows), the scope (all writable domain controllers, every domain in the forest) and the success criteria (each sub-question answered, every hit dispositioned). Record it in your Threat Hunt Hypothesis Backlog Template so the next run starts from the same baseline.
Data sources and readiness checks
A Kerberoasting hunt lives or dies on domain controller telemetry. Check readiness first, because a hunt over incomplete data produces false confidence.
Event 4769 on every domain controller
Microsoft documents 4769 as logged by the Key Distribution Center each time it receives a ticket granting service (TGS) request, and only on domain controllers. It is produced by the Audit Kerberos Service Ticket Operations advanced audit subcategory. Confirm that this subcategory is enabled for success and failure on every domain controller, including read-only and recently promoted ones, and that the events reach your SIEM or data lake. A common gap is a domain controller in a secondary site or child domain that was never added to log forwarding.
Event 4768 for context
Event 4768 records ticket granting ticket (TGT) requests. Microsoft's RC4 remediation guidance names 4768 and 4769 together as the events for spotting RC4 use. In this hunt, 4768 helps you see where and when the requesting account first authenticated, which helps triage.
The newer encryption fields
Microsoft has added fields to 4768 and 4769 that make this hunt much sharper. According to Microsoft, these are logged on domain controllers running Windows Server 2019 and later, and RC4 usage logging was added to Windows Server 2016 in the January 2025 cumulative update. Check which of your domain controllers emit the new fields; older ones will give you the encryption type but not the context around it.
Directory context
You need a list of accounts that hold SPNs, split into computer accounts, managed service accounts and ordinary user objects used as service accounts. The user objects are the roastable population that matters most, because their passwords are set by humans. The service account inventory from Active Directory how-to covers building this list. Add owner, privilege tier and the msDS-SupportedEncryptionTypes value for each.
Readiness checklist
- 4769 success and failure arriving from every domain controller in every domain.
- Retention long enough to cover the hunt window.
- Domain controller OS versions recorded, so you know where the new fields exist.
- SPN account inventory current within the last week.
- An asset map that turns client IP addresses into hostnames and owners.
Reading event 4769: the fields that matter
Microsoft's event documentation describes the fields below. Learn them before writing queries, because the event is high volume and most of it is normal.
| Field | What it tells you in this hunt |
|---|---|
| Account Name and Account Domain | The requesting identity, in UPN format. Computer accounts end in $. This is the suspected compromised account. |
| Service Name and Service ID | The account the ticket is for, and its SID. This is the roasting target. |
| Client Address and Client Port | The requesting host. Microsoft notes that ::1 means a local request on the domain controller itself. |
| Ticket Encryption Type | The cipher of the issued service ticket. 0x17 is RC4-HMAC, 0x11 and 0x12 are AES128 and AES256, 0x1 and 0x3 are DES. |
| Session Encryption Type | The cipher of the session key (newer field). |
| Advertised Etypes | The encryption types the client offered (newer field). A client that offers only RC4 when it is capable of AES is worth a look. |
| MSDS-SupportedEncryptionTypes and Available Keys | What the requesting account, the service account and the domain controller support and hold keys for (newer fields). |
| Ticket Options | A hex bitmask of ticket flags. Microsoft lists 0x40810000 and 0x40810010 among common values; build your own baseline rather than relying on one value. |
| Failure Code | 0x0 on success. Microsoft notes 0xE (KDC_ERR_ETYPE_NOTSUPP) when the requested encryption type is not supported. |
Two points from Microsoft's monitoring recommendations are worth taking literally. First, monitor for Ticket Encryption Type values other than 0x11 and 0x12. Second, monitor for DES (0x1 or 0x3), which should not be in use at all. Microsoft also recommends alerting where an Account Name and Service ID combination should never occur, and where Client Address falls outside your internal ranges or an allow list.
Illustrative hunt queries
The logic below is illustrative pseudocode written against the 4769 field names in Microsoft's documentation. Your SIEM will name and parse these fields differently, so translate the logic rather than pasting it. The KQL for Threat Hunting Guide and Splunk SPL for Threat Hunting Guide cover the syntax side.
Query 1: RC4 service tickets for user-based service accounts
events where EventID == 4769 | and Status == 0x0 | and TicketEncryptionType in (0x17, 0x18, 0x1, 0x3) | and ServiceName not endswith "$" | and ServiceName != "krbtgt" | summarise count, distinct ClientAddress by AccountName, ServiceName
Excluding names ending in $ removes computer accounts, whose passwords are long and machine generated. Excluding krbtgt removes ticket renewal noise. What remains is RC4 or DES tickets for user objects with SPNs: the roastable set.
Query 2: breadth of SPN requests per account
events where EventID == 4769 and Status == 0x0 | and ServiceName not endswith "$" | bin by 10 minutes | summarise distinct_count(ServiceName) as spn_count by AccountName, ClientAddress, window | where spn_count >= threshold
Set the threshold from your own baseline. Run the summary over 30 days first and look at the distribution of distinct service names per account per window. Most users touch a handful of services; a roasting tool tends to request many in seconds. Start with the top percentile, not a fixed number.
Query 3: first-seen account and service pairs
baseline = 4769 events, days -30 to -8, distinct (AccountName, ServiceName) | recent = 4769 events, last 7 days, distinct (AccountName, ServiceName) | recent where pair not in baseline | and ServiceName in high_value_service_accounts
This finds accounts asking for a privileged service account's ticket for the first time. On its own it is noisy; joined to Query 1 or Query 2 it is a strong lead.
Query 4: downgrade signal from the newer fields
events where EventID == 4769 | and TicketEncryptionType == 0x17 | and ServiceMSDSSupportedEncryptionTypes includes AES | and ServiceAvailableKeys includes AES
If the service account supports AES and has AES keys, yet the ticket was issued with RC4, look at Advertised Etypes. A client that advertised only RC4 deserves scrutiny, because normal modern clients advertise AES first. Where the service account has only RC4 keys, the result is a configuration problem rather than proof of attack, but it is still a finding.
Query 5: unusual client addresses
events where EventID == 4769 and ServiceName not endswith "$" | and (ClientAddress not in internal_ranges | or ClientAddress == "::1" and AccountName not in dc_logon_allowlist)
Both conditions come straight from Microsoft's monitoring recommendations for 4769.
Building a baseline that cuts noise
Most of what Query 1 returns in an established domain will be legitimate. Legacy applications, appliances and old service accounts that predate AES support still produce RC4 tickets. The hunt is only useful once you separate that background from deliberate activity.
- Tag known RC4 dependencies. For each service account that receives RC4 tickets, record why: no AES keys, an RC4-only
msDS-SupportedEncryptionTypesvalue, or a legacy client. Microsoft's guidance notes that0x4means RC4 only, and that an undefined value defaults to RC4 for accounts that do not support AES. - Map client addresses to applications. A service account used by one application server should receive ticket requests from that server and a small set of clients. Record the expected set.
- Record scanners and admin tools. Vulnerability scanners, identity posture tools and some admin consoles enumerate SPNs as part of normal work. Allow-list them by account and source, and review that list each quarter.
- Measure normal breadth. Keep the Query 2 distribution so you can say what normal looks like for users, admins and servers.
Microsoft's Kerberos-Crypto GitHub repository provides Get-KerbEncryptionUsage.ps1 and List-AccountKeys.ps1, which the RC4 remediation article describes for listing encryption types in use and keys held per account. They are a quick way to build the RC4 dependency list without SIEM work.
Triage: what to do with each hit
Work every hit through the same questions so the outcome is consistent and defensible.
Step 1: who requested and from where
Resolve Account Name to a person or workload and Client Address to a host. Is the account a normal user on their own workstation, an admin on a jump host, a service on a server, or something you cannot identify? Check 4768 events for the same account to see where it authenticated.
Step 2: what was targeted
List every service name the account requested in the window. Note the privilege of each target, whether it is a user object or a managed account, its password age and its encryption support. A burst that includes privileged service accounts with old passwords is the priority case.
Step 3: is the pattern explained
Compare against your baseline: allow-listed scanner, known legacy application, admin activity in a change window. If explained, document it and tune. If not, continue.
Step 4: look for follow-on use
Search for logons by the targeted service accounts from new hosts or at new times after the ticket requests. Successful cracking usually shows up as a service account suddenly being used interactively or from a workstation. The interactive logons by service accounts how-to covers that check.
Step 5: decide and act
| Outcome | Action |
|---|---|
| Benign and expected | Document, add to allow list with an owner and review date. |
| Misconfiguration | Open a remediation ticket: AES keys, encryption types, password rotation, gMSA migration. |
| Suspicious, unexplained | Escalate to incident response. Contain the requesting account and host, then reset passwords of every targeted service account to long random values, coordinating with application owners. |
Treat password resets of targeted accounts as mandatory in the incident path. Once a ticket has left the network you cannot know whether it has been cracked, and the only safe assumption is that it will be.
Hardening that makes the next hunt quieter
A good hunt ends with fewer roastable accounts. Microsoft's RC4 guidance sets out the path.
- Reset passwords on old service accounts so they gain AES keys. Microsoft notes that accounts created before AES support need a reset to generate AES keys.
- Set AES-only encryption through the Group Policy setting "Network security: Configure encryption types allowed for Kerberos", scoped to the right OUs, and on domain controllers through the
DefaultDomainSupportedEncTypesregistry value set to0x18, as Microsoft describes. - Move to managed accounts. Group Managed Service Accounts have long, automatically rotated passwords. See the Group Managed Service Accounts (gMSA) Guide and the how-to on converting AD service accounts to gMSA.
- Remove unneeded SPNs and privileges. A service account in Domain Admins with an SPN is the worst case. Find them with the how-to on service accounts with Domain Admin rights.
- Plan for RC4 retirement. Microsoft states that it plans to disable RC4 as the default assumed encryption type for domain controllers from the end of Q2 2026, and that Windows Server 2025 domain controllers do not issue RC4 TGTs. Check where your estate stands; residual RC4 tickets after that change deserve a closer look.
- Consider decoy service accounts. A honey account with an SPN that no application uses turns any 4769 for it into a high-fidelity alert. MITRE D3FEND describes this class of control as Decoy User Credential.
After hardening, watch 4769 failure code 0xE, which Microsoft identifies as the sign of a client or service that cannot use the remaining encryption types. That lets you fix breakage quickly instead of rolling back.
Turning the hunt into detection
A hunt that finds nothing still produces value if its best queries become rules. Promote these candidates once tuned:
- Any 4769 for a decoy SPN account (high severity, no tuning needed).
- RC4 ticket for a service account that has AES keys and AES in its supported types.
- Distinct SPN count per account per window above the baseline percentile, excluding allow-listed sources.
- 4769 with Client Address outside internal ranges.
Record the hunt result, the queries, the allow list and the remediation tickets. Rerun the hunt after each major hardening step and each quarter. The Identity Threat Hunting Guide covers scheduling identity hunts as a programme.
Common failure patterns
- Missing domain controllers. The hunt covers the main site but not a child domain or branch DC, which is where the attacker happened to authenticate.
- Treating all RC4 as malicious. Analysts drown in legacy noise and stop looking. Tag known dependencies first.
- Treating all RC4 as legacy. The opposite error. A downgrade to RC4 for an AES-capable account is a lead, not background.
- Fixed thresholds copied from the internet. Breadth thresholds must come from your own distribution.
- No follow-on check. The hunt stops at ticket requests and never checks whether the targeted service accounts were later used.
- No password resets. A confirmed roasting event is closed without rotating the targeted service account passwords.
- Allow lists without owners. Scanners and tools are excluded once and never reviewed, creating a permanent blind spot.
Practitioner checklist
- Hypothesis, window, scope and success criteria written down before querying.
- Audit Kerberos Service Ticket Operations enabled for success and failure on every domain controller.
- Event 4769 from every domain controller confirmed in the SIEM for the full window.
- SPN account inventory with owner, privilege, password age and encryption support.
- Queries for RC4 and DES tickets, SPN breadth, first-seen pairs, downgrade and unusual client addresses run and labelled illustrative.
- Known RC4 dependencies and scanners allow-listed with owners and review dates.
- Every hit dispositioned as benign, misconfiguration or incident.
- Targeted service account passwords reset for every incident outcome.
- Remediation tickets raised for AES keys, AES-only policy and gMSA migration.
- Decoy SPN account deployed and alerting.
- Best queries promoted to detection rules and the hunt scheduled to repeat.
Standards and references
- Microsoft Learn: Event 4769, A Kerberos service ticket was requested
- Microsoft Learn: Detect and remediate RC4 usage in Kerberos
- MITRE ATT&CK: Kerberoasting
- MITRE D3FEND: Decoy User Credential
- NIST: SP 800-61 Rev. 3, Incident Response Recommendations and Considerations for Cybersecurity Risk Management
- NIST: SP 800-92 Rev. 1 Cybersecurity Log Management Planning Guide (initial public draft)
Related NHI Mgmt Group resources: Kerberoasting and AS-REP Roasting Defence Guide · Threat Hunting Guide · Identity Threat Hunting Guide · How to Detect Service Account Misuse