DEV Community

AdminPackStudio
AdminPackStudio

Posted on

Event 4769 Kerberos Service Ticket Failed: A Read-First Failure Code, Service Name, and SPN Triage

Helpdesk: "The domain controller is full of Event 4769 failures. Are users losing access to something, or is this noise?"

Fair question, and the answer depends on one field. Event 4769 is the domain controller's record that a Kerberos service ticket (a TGS ticket) was requested, and the Failure Code tells you whether it was issued. Microsoft's reference says the event "generates every time Key Distribution Center gets a Kerberos Ticket Granting Service (TGS) ticket request" and "generates only on domain controllers". If issuing fails, "you'll see Failure event with Failure Code field not equal to 0x0".

Microsoft also sets expectations up front: "You'll typically see many Failure events with Failure Code 0x20, which simply means that a service ticket has expired. These are informational messages and have little to no security relevance." So a pile of 0x20 is usually not your problem. The other codes are where you spend time.

This post is a read-first order: pull the 4769 events from the DCs, split successes from failures, drop the 0x20 noise, group by service name and client address, decode the Failure Code, check the encryption type, then change one thing. It pairs with the Event 4768 TGT request triage, which covers the step before this one.

TL;DR

  • 4769 is the service ticket request, logged on the DC. The Service Name is the account or computer the ticket was for.
  • Read Failure Code first. 0x0 is success. 0x20 is an expired ticket and is informational. 0x7 is a server name the DC cannot find.
  • 0x7 and 0x1B point at SPNs: a missing or wrong service principal name on the target.
  • 0x25 is the clock, not credentials.
  • Ticket Encryption Type 0x12 is expected on current systems; Microsoft says 0x1 or 0x3 means DES.

Step 1: Pull the events from every DC (read-only)

Run this in an elevated PowerShell on a domain controller. Each DC only logs the requests it handled, so repeat on every DC or loop over them.

$events = Get-WinEvent -FilterHashtable @{ LogName='Security'; Id=4769; StartTime=(Get-Date).AddHours(-4) } -ErrorAction SilentlyContinue

$rows = foreach ($e in $events) {
    $x = [xml]$e.ToXml()
    $d = @{}
    foreach ($n in $x.Event.EventData.Data) { $d[$n.Name] = $n.'#text' }
    [pscustomobject]@{
        Time    = $e.TimeCreated
        Account = $d.TargetUserName
        Service = $d.ServiceName
        Status  = $d.Status
        Client  = $d.IpAddress
        Port    = $d.IpPort
        EncType = $d.TicketEncryptionType
        DC      = $e.MachineName
    }
}
"{0} events in 4h" -f @($rows).Count
Enter fullscreen mode Exit fullscreen mode

A busy DC can log a very large number of 4769 events, so start with a short window like four hours. If the count is zero, check the audit policy. Microsoft lists the subcategory as Audit Kerberos Service Ticket Operations, and it has to be enabled.

Step 2: Separate failures and drop the noise (read-only)

$fail = $rows | Where-Object { $_.Status -ne '0x0' -and $_.Status -ne '0x20' }

$fail | Group-Object Status  | Sort-Object Count -Descending | Format-Table Count, Name -AutoSize
$fail | Group-Object Service | Sort-Object Count -Descending | Select-Object -First 10 Count, Name
$fail | Group-Object Client  | Sort-Object Count -Descending | Select-Object -First 10 Count, Name
Enter fullscreen mode Exit fullscreen mode

Read the shape before the numbers:

Pattern Likely meaning
One service name, many clients, mostly 0x7 The SPN is missing, wrong, or points at a name that is not in AD
One account, one client, steady rate An application or task asking for a service that does not exist
Many accounts, one client A single host or appliance with a bad configuration, or a scan from that host
Failures clustered at 0x25 Clients with a wrong clock

Step 3: Decode the Failure Code

These are values from Microsoft's table for 4769 that you will meet most often:

Failure Code Name Meaning
0x6 KDC_ERR_C_PRINCIPAL_UNKNOWN Client not found in the Kerberos database; the user name does not exist
0x7 KDC_ERR_S_PRINCIPAL_UNKNOWN Server not found in the Kerberos database; the DC cannot find the server's name in AD
0x8 KDC_ERR_PRINCIPAL_NOT_UNIQUE Multiple principal entries; duplicate principal names exist
0xC KDC_ERR_POLICY Logon restrictions on the account, such as workstation restriction, smart card requirement or logon time restriction
0xD KDC_ERR_BADOPTION The KDC cannot accommodate the requested option; one listed cause is an SPN the client tries to delegate to that is not in its Allowed-to-delegate-to list
0x12 KDC_ERR_CLIENT_REVOKED Credentials revoked: account disabled, expired, or locked out
0x1B KDC_ERR_MUST_USE_USER2USER Microsoft's listed cause: the service is missing an SPN
0x20 KRB_AP_ERR_TKT_EXPIRED The ticket has expired; renewal is automatic
0x25 KRB_AP_ERR_SKEW The clock skew is too great
0x3C KRB_ERR_GENERIC Generic error; listed causes include group membership overloading the PAC and an SPN that is too long

The two to remember: 0x7 is about the service side, so look at the SPN before the user. And 0x25 is time; the Windows time sync triage is the fix.

Microsoft also notes that some errors are only reported when the KdcExtraLogLevel registry value is set with flags such as 0x01 (audit SPN unknown errors) and 0x10 (log encryption type and bad options errors). If you expect 0x7 events and see none, that setting is worth knowing about. Change it only deliberately and in a lab first.

Step 4: Check the SPN for 0x7 and 0x1B

Take the service name from the event and see which accounts own it. Duplicates matter too, because 0x8 means duplicate principal names exist.

setspn -Q HTTP/app01.contoso.local
setspn -X
Enter fullscreen mode Exit fullscreen mode

Replace the SPN with the one from the event. setspn -Q shows which object holds a given SPN, and setspn -X reports duplicate SPNs in the forest. If nothing holds the SPN the client asked for, the fix is on the service account or computer object, not on the user. The Target principal name is incorrect post covers the same SPN and DNS checks from the client side.

Step 5: Look at Client Address and port

Microsoft's monitoring guidance for this event includes a few simple checks on the source fields:

  • Track requests where Client Address is outside your internal or private ranges.
  • If an account should only be used from known addresses, track every Client Address for it.
  • ::1 means local TGS requests, so the account logged on to the domain controller first; flag it if that account should not log on to a DC.
  • Examine requests with a Client Port above 0 and below 1024, because "a well-known port was used for outbound connection".
$rows | Where-Object { [int]$_.Port -gt 0 -and [int]$_.Port -lt 1024 } |
    Select-Object -First 20 Time, Account, Service, Client, Port, Status
Enter fullscreen mode Exit fullscreen mode

An empty result is the normal case.

Step 6: Check the ticket encryption type

Even successful 4769 events are worth a pass on encryption. Microsoft says to monitor for a Ticket Encryption Type of 0x1 or 0x3, which means DES was used and "should not be in use", and, on Windows Vista and Server 2008 or later, for any value other than 0x11 and 0x12, the AES family.

$rows | Group-Object EncType | Sort-Object Count -Descending | Format-Table Count, Name -AutoSize
$rows | Where-Object { $_.EncType -notin '0x11','0x12' } |
    Group-Object Service | Sort-Object Count -Descending | Select-Object -First 10 Count, Name
Enter fullscreen mode Exit fullscreen mode

Treat a non-AES value as a finding to investigate with the owner of the service or device, not as something to block on sight. The same events also carry newer fields in recent updates, including the service's supported encryption types, which help explain why a ticket fell back to an older cipher.

Change one thing

Once the pattern is clear, change exactly one thing and re-run Step 1 an hour later:

  • 0x7 on one service name: add the missing SPN to the right account, or fix the name the client uses.
  • 0x8: find and remove the duplicate SPN; leave the legitimate owner alone.
  • 0x25 from one client: fix that machine's time source.
  • 0x12 for a service account: fix the account state, then find what keeps using it.
  • Non-AES encryption type: review the account or device with its owner before changing any encryption setting.

Common false starts

  • "4769 failures mean Kerberos is broken." Most are 0x20, which Microsoft calls informational.
  • "Reset the user's password." 4769 is the service ticket step; wrong passwords show up as Event 4771.
  • "Re-register every SPN." Read the Service Name first, since one name usually explains most failures.
  • "Block the client address." Confirm it is not a legitimate server or appliance first.
  • "Turn off DES warnings." Find who is still asking for it.

Related posts

Free checklist

Knowing which services still hand out weak tickets is the same habit as knowing who a new access policy will hit. The free Conditional Access pre-enforcement checklist keeps break-glass accounts, pilot groups, and report-only review on one page:

👉 https://cashflow4375.gumroad.com/l/ujkqxb?utm_source=devto&utm_medium=article&utm_campaign=aps_first_sale&utm_content=event-4769-kerberos-service-ticket-failure-code


Sources: Microsoft Learn, "4769(S, F): A Kerberos service ticket was requested" (Windows security auditing reference). Commands are read-only unless a step says to change something. Test in a lab first.

Top comments (0)