Skip to content
WETNav

Credential accessHigh

Kerberoasting

How Kerberoasting shows up on a DC: 4769 service ticket requests with RC4 (0x17) for a service account whose name is not krbtgt and does not end in $.

Signals in the logs

  1. 01Security4769A Kerberos service ticket was requestedDomain controller

    A service ticket request for a user account that has an SPN, encrypted with RC4 while the domain otherwise uses AES.

    TicketEncryptionType
    0x17 (RC4-HMAC)
    ServiceName
    a service account, not krbtgt and not ending with $ (so not a computer account)
    Status
    0x0 (success; the ticket was issued)

What happens

Any authenticated domain user can request a Kerberos service ticket for an account that has a service principal name. The service portion of that ticket is encrypted with a key derived from the service account's password, so an adversary who collects such tickets can try to recover the password offline without further contact with the domain. The request itself is ordinary Kerberos traffic, which is why the only domain controller trace is a service ticket request, made noticeable by weak RC4 encryption and by targeting an interactive service account rather than a computer.

Logging you need

  • Audit subcategory Account Logon > Kerberos Service Ticket Operations = Success on domain controllers (for 4769). This is on by default on DCs but not on member servers.
  • Disabling RC4 in the domain removes the 0x17 signal; where RC4 is disabled, hunt instead for an unusual volume or spread of 4769 requests for SPN-bearing user accounts from a single client.

Hunt queries

Starting points. Tune thresholds and exclusions to your environment before alerting on them.

Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4769} | ForEach-Object {
    $x = [xml]$_.ToXml()
    $d = @{}; $x.Event.EventData.Data | ForEach-Object { $d[$_.Name] = $_.'#text' }
    [pscustomobject]@{ Time=$_.TimeCreated; Client=$d['TargetUserName']; Service=$d['ServiceName']; Enc=$d['TicketEncryptionType']; Status=$d['Status']; Ip=$d['IpAddress'] }
} | Where-Object {
    $_.Enc -eq '0x17' -and $_.Status -eq '0x0' -and $_.Service -ne 'krbtgt' -and $_.Service -notlike '*$'
}

Benign look-alikes

  • Legacy applications and appliances that genuinely negotiate RC4 (for example some NetApp or older Java stacks) produce 0x17 tickets routinely.
  • A domain still at a low functional level, or with accounts configured for RC4, will show RC4 service tickets as normal traffic.
  • Vulnerability scanners and purple-team tooling request many service tickets and look identical to real collection.

Notes

  • A commonly observed value in collection tooling is TicketOptions 0x40810000, but TicketOptions alone is not a reliable filter and legitimate clients can set the same flags.
  • The TargetUserName field names the requesting account; the ServiceName field names the account being roasted. Alert on the requester repeating across many services.

References