Kerberos Ticket Options decoder

Paste a Ticket Options value such as 0x40810010, or a whole 4768, 4769 or 4771 event (XML, Event Viewer text or a SIEM's JSON). Each flag, the ticket and session encryption types, the pre-authentication type and the result code are decoded from Microsoft's own tables, and the values Microsoft and MITRE ATT&CK say to watch for are pointed out. Everything runs in your browser.

Try:

Build a Ticket Options value

Tick the flags to get the hex value, for a SIEM query or a filter.

Value: 0x00000000

Ticket Options flags

Microsoft's 4768 and 4769 documentation numbers the 32 bits from the left ("MSB 0"), as the Kerberos RFCs do, so bit n is the value 1 << (31 − n). The three values Microsoft lists as the most common are 0x40810010 (Forwardable, Renewable, Name-canonicalize, Renewable-ok), 0x40810000 (Forwardable, Renewable, Name-canonicalize) and 0x60810010 (Forwardable, Forwarded, Renewable, Name-canonicalize, Renewable-ok).

BitValueFlagMicrosoft's description
10x40000000Forwardable(TGT only). Tells the ticket-granting service that it can issue a new TGT—based on the presented TGT—with a different network address based on the presented TGT.
20x20000000ForwardedIndicates either that a TGT has been forwarded or that a ticket was issued from a forwarded TGT.
30x10000000Proxiable(TGT only). Tells the ticket-granting service that it can issue tickets with a network address that differs from the one in the TGT.
40x08000000ProxyIndicates that the network address in the ticket is different from the one in the TGT used to obtain the ticket.
50x04000000Allow-postdatePostdated tickets SHOULD NOT be supported in KILE (Microsoft Kerberos Protocol Extension).
60x02000000PostdatedPostdated tickets SHOULD NOT be supported in KILE (Microsoft Kerberos Protocol Extension).
70x01000000InvalidThis flag indicates that a ticket is invalid, and it must be validated by the KDC before use. Application servers must reject tickets which have this flag set.
80x00800000RenewableUsed in combination with the End Time and Renew Till fields to cause tickets with long life spans to be renewed at the KDC periodically.
90x00400000InitialIndicates that a ticket was issued using the authentication service (AS) exchange and not issued based on a TGT.
100x00200000Pre-authentIndicates that the client was authenticated by the KDC before a ticket was issued. This flag usually indicates the presence of an authenticator in the ticket. It can also flag the presence of credentials taken from a smart card logon.
110x00100000Opt-hardware-authThis flag was originally intended to indicate that hardware-supported authentication was used during pre-authentication. This flag is no longer recommended in the Kerberos V5 protocol. KDCs MUST NOT issue a ticket with this flag set. KDCs SHOULD NOT preserve this flag if it is set by another KDC.
120x00080000Transited-policy-checkedKILE MUST NOT check for transited domains on servers or a KDC. Application servers MUST ignore the TRANSITED-POLICY-CHECKED flag.
130x00040000Ok-as-delegateThe KDC MUST set the OK-AS-DELEGATE flag if the service account is trusted for delegation.
140x00020000Request-anonymousKILE not use this flag.
150x00010000Name-canonicalizeIn order to request referrals the Kerberos client MUST explicitly request the "canonicalize" KDC option for the AS-REQ or TGS-REQ.
260x00000020Disable-transited-checkBy default the KDC will check the transited field of a TGT against the policy of the local realm before it will issue derivative tickets based on the TGT. If this flag is set in the request, checking of the transited field is disabled. Tickets issued without the performance of this check will be noted by the reset (0) value of the TRANSITED-POLICY-CHECKED flag, indicating to the application server that the transited field must be checked locally. KDCs are encouraged but not required to honorthe DISABLE-TRANSITED-CHECK option.Should not be in use, because Transited-policy-checked flag isn't supported by KILE.
270x00000010Renewable-okThe RENEWABLE-OK option indicates that a renewable ticket will be acceptable if a ticket with the requested life cannot otherwise be provided, in which case a renewable ticket may be issued with a renew-till equal to the requested end time. The value of the renew-till field may still be limited by local limits, or limits selected by the individual principal or server.
280x00000008Enc-tkt-in-skeyNo information.
300x00000002RenewThe RENEW option indicates that the present request is for a renewal. The ticket provided is encrypted in the secret key for the server on which it is valid. This option will only be honored if the ticket to be renewed has its RENEWABLE flag set and if the time in its renew-till field has not passed. The ticket to be renewed is passed in the padata field as part of the authentication header.
310x00000001ValidateThis option is used only by the ticket-granting service. The VALIDATE option indicates that the request is to validate a postdated ticket. Should not be in use, because postdated tickets are not supported by KILE.

Bits 0, 16–25 and 29 are reserved or unused. Source: Microsoft, event 4768, Table 2.

Ticket Encryption Type values

The same values appear as Ticket Encryption Type, Session Encryption Type and Pre-Authentication EncryptionType in events 4768 and 4769.

ValueNameMicrosoft's description
0x1DES-CBC-CRCDisabled by default starting from Windows 7 and Windows Server 2008 R2.
0x3DES-CBC-MD5Disabled by default starting from Windows 7 and Windows Server 2008 R2.
0x11AES128-CTS-HMAC-SHA1-96Supported starting from Windows Server 2008 and Windows Vista.
0x12AES256-CTS-HMAC-SHA1-96Supported starting from Windows Server 2008 and Windows Vista.
0x17RC4-HMACDefault suite for operating systems before Windows Server 2008 and Windows Vista.
0x18RC4-HMAC-EXPDefault suite for operating systems before Windows Server 2008 and Windows Vista.
0xffffffff—This type shows in Audit Failure events.

Source: Microsoft, event 4768, Table 4. Microsoft: "Starting with Windows Vista and Windows Server 2008, monitor for values other than 0x11 and 0x12."

0x12, 0x17 and 0x18: encryption type or failure code?

The same three numbers mean different things in different fields of the same events, which is why a search for "0x12 kerberos" can land on the wrong answer.

ValueAs Ticket Encryption TypeAs Failure Code / Result Code
0x12 AES256-CTS-HMAC-SHA1-96 Kerberos failure code 0x12 →
0x17 RC4-HMAC Kerberos failure code 0x17 →
0x18 RC4-HMAC-EXP Kerberos failure code 0x18 →

Pre-Authentication Type values

TypeNameMicrosoft's description
0—Logon without Pre-Authentication.
2PA-ENC-TIMESTAMPThis is a normal type for standard password authentication.
11PA-ETYPE-INFOThe ETYPE-INFO pre-authentication type is sent by the KDC in a KRB-ERROR indicating a requirement for additional pre-authentication. It is usually used to notify a client of which key to use for the encryption of an encrypted timestamp for the purposes of sending a PA-ENC-TIMESTAMP pre-authentication value.Never saw this Pre-Authentication Type in Microsoft Active Directory environment.
15PA-PK-AS-REP_OLDUsed for Smart Card logon authentication.
16PA-PK-AS-REQRequest sent to KDC in Smart Card authentication scenarios.
17PA-PK-AS-REPThis type should also be used for Smart Card authentication, but in certain Active Directory environments, it is never seen.
19PA-ETYPE-INFO2The ETYPE-INFO2 pre-authentication type is sent by the KDC in a KRB-ERROR indicating a requirement for additional pre-authentication. It is usually used to notify a client of which key to use for the encryption of an encrypted timestamp for the purposes of sending a PA-ENC-TIMESTAMP pre-authentication value.Never saw this Pre-Authentication Type in Microsoft Active Directory environment.
20PA-SVR-REFERRAL-INFOUsed in KDC Referrals tickets.
138PA-ENCRYPTED-CHALLENGELogon using Kerberos Armoring (FAST). Supported starting from Windows Server 2012 domain controllers and Windows 8 clients.

Source: Microsoft, event 4768, Table 5.

Finding these values in your logs

Service tickets encrypted with RC4 — the pattern MITRE ATT&CK uses to detect Kerberoasting — in Microsoft Sentinel. Ticket fields are not columns of the SecurityEvent table, so they are read from EventData:

SecurityEvent
| where EventID == 4769
| extend Data = parse_xml(EventData)
| mv-apply d = Data.EventData.Data on (
    summarize f = make_bag(bag_pack(tostring(d["@Name"]), tostring(d["#text"]))))
| extend EncType = tostring(f.TicketEncryptionType), Service = tostring(f.ServiceName),
         Options = tostring(f.TicketOptions), Status = tostring(f.Status)
| where EncType == "0x17" and Status == "0x0" and Service !endswith "$"
| summarize Tickets = count(), Services = dcount(Service) by Account = tostring(f.TargetUserName), bin(TimeGenerated, 1h)
| order by Services desc

On the domain controller itself, the same with PowerShell:

Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4769} |
  Where-Object { $_.Properties[5].Value -eq 0x17 } |
  Select-Object TimeCreated, @{n='Account';e={$_.Properties[0].Value}}, @{n='Service';e={$_.Properties[2].Value}}

The event pages explain the rest of each event: 4768 (TGT requested), 4769 (service ticket requested) and 4771 (pre-authentication failed). Failure codes are explained in the Kerberos failure code reference.

Questions

What does Ticket Options 0x40810010 mean?
Forwardable, Renewable, Name-canonicalize and Renewable-ok: bits 1, 8, 15 and 27 in the MSB 0 numbering Microsoft’s table uses, where bit 0 is the leftmost of the 32 bits. Microsoft lists it as the most common value in events 4768 and 4769, with 0x40810000 (the same without Renewable-ok) and 0x60810010 (adding Forwarded).
Why does bit 1 equal 0x40000000 and not 0x2?
Kerberos RFCs number bits from the left (MSB 0), and Microsoft’s 4768 documentation follows them: bit n is the value 1 shifted left by 31 − n. Bit 1 (Forwardable) is 0x40000000 and bit 27 (Renewable-ok) is 0x10. Decoding the value with ordinary right-to-left bit numbers gives the wrong flags.
Is Ticket Encryption Type 0x17 a sign of Kerberoasting?
0x17 is RC4-HMAC. MITRE ATT&CK detects Kerberoasting by watching for 4769 service-ticket requests with RC4 encryption (etype 0x17), especially many in a short time from one account. One RC4 ticket can also be an old system or a service account that still has only an RC4 key, so check the account, the service and the count.
Is 0x12 in event 4769 an error?
It depends on the field. As Ticket Encryption Type, 0x12 is AES256-CTS-HMAC-SHA1-96, the normal value. As a Failure or Result Code, 0x12 is KDC_ERR_CLIENT_REVOKED (the account is disabled, expired or locked out). 0x17 and 0x18 have the same two readings: RC4-HMAC / KDC_ERR_KEY_EXPIRED and RC4-HMAC-EXP / KDC_ERR_PREAUTH_FAILED.
What does Pre-Authentication Type 0 mean?
The ticket was issued without pre-authentication. Microsoft: all accounts should use pre-authentication except those set to “Do not require Kerberos preauthentication”, which is a security risk, because such an account’s ticket can be requested by anyone and cracked offline (AS-REP roasting). Type 2 (PA-ENC-TIMESTAMP) is the normal password logon.

Seeing many RC4 tickets or failures?

Load the domain controller's Security log into the free analyzer: Kerberoasting (RC4 service tickets across many services), AS-REP roasting (tickets without pre-authentication), password spraying and lockouts are flagged across the whole log. Nothing is uploaded.

Investigating something right now? LogTriage checks every address in the file against threat intelligence and writes the incident report: 10 analyses a month free. The incident pack adds the in-depth AI analysis and files up to 100 MB: 25 analyses for $19, one payment, no subscription. Pricing