<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Jean</title>
    <description>The latest articles on DEV Community by Jean (@jean1000).</description>
    <link>https://dev.to/jean1000</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4286105%2Ff29b7de3-2184-425a-9db5-3738eb6cab25.png</url>
      <title>DEV Community: Jean</title>
      <link>https://dev.to/jean1000</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jean1000"/>
    <language>en</language>
    <item>
      <title>Detecting Kerberoasting with Windows Event ID 4769</title>
      <dc:creator>Jean</dc:creator>
      <pubDate>Sun, 06 Dec 2026 12:30:50 +0000</pubDate>
      <link>https://dev.to/jean1000/detecting-kerberoasting-with-windows-event-id-4769-4i50</link>
      <guid>https://dev.to/jean1000/detecting-kerberoasting-with-windows-event-id-4769-4i50</guid>
      <description>&lt;p&gt;Kerberoasting is a post-exploitation technique (MITRE ATT&amp;amp;CK &lt;strong&gt;T1558.003&lt;/strong&gt;) in which any authenticated domain user requests Kerberos service tickets (TGS) for accounts that have a Service Principal Name (SPN).&lt;br&gt;
Part of each ticket is encrypted with the service account's password hash, so the attacker can take it offline and try to crack it without generating failed logons.&lt;/p&gt;
&lt;h2&gt;
  
  
  Why it works
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Any domain user may request a TGS for any SPN - no special privileges are needed.&lt;/li&gt;
&lt;li&gt;Service accounts often have old, human-chosen passwords that never expire.&lt;/li&gt;
&lt;li&gt;If RC4 (encryption type &lt;code&gt;0x17&lt;/code&gt;) is still allowed, cracking is much faster than with AES.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  What to log
&lt;/h2&gt;

&lt;p&gt;Enable &lt;strong&gt;Audit Kerberos Service Ticket Operations&lt;/strong&gt; (Success) on domain controllers. Each ticket request&lt;br&gt;
produces &lt;strong&gt;Event ID 4769&lt;/strong&gt; with fields such as &lt;code&gt;ServiceName&lt;/code&gt;, &lt;code&gt;TicketEncryptionType&lt;/code&gt; and &lt;code&gt;IpAddress&lt;/code&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  Detection ideas
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;RC4 tickets in an AES environment&lt;/strong&gt; - &lt;code&gt;TicketEncryptionType = 0x17&lt;/code&gt; for normal user service accounts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Volume anomalies&lt;/strong&gt; - one account requesting tickets for many distinct SPNs in a short time window.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Honey SPN&lt;/strong&gt; - create a decoy account with an SPN that nothing legitimate uses; any 4769 for it is suspicious.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Example Sigma-style logic (adapt field names to your SIEM):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;title&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Possible Kerberoasting - RC4 service ticket requested&lt;/span&gt;
&lt;span class="na"&gt;logsource&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;product&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;windows&lt;/span&gt;
  &lt;span class="na"&gt;service&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;security&lt;/span&gt;
&lt;span class="na"&gt;detection&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;selection&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;EventID&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;4769&lt;/span&gt;
    &lt;span class="na"&gt;TicketEncryptionType&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'0x17'&lt;/span&gt;
    &lt;span class="na"&gt;Status&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'0x0'&lt;/span&gt;
  &lt;span class="na"&gt;filter_machine_accounts&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;ServiceName|endswith&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'$'&lt;/span&gt;
  &lt;span class="na"&gt;filter_krbtgt&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;ServiceName&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'krbtgt'&lt;/span&gt;
  &lt;span class="na"&gt;condition&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;selection and not 1 of filter_*&lt;/span&gt;
&lt;span class="na"&gt;level&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;medium&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Hardening
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Use &lt;strong&gt;Group Managed Service Accounts (gMSA)&lt;/strong&gt; - long random passwords rotated automatically.&lt;/li&gt;
&lt;li&gt;Use 25+ character passwords for any remaining service accounts and rotate them.&lt;/li&gt;
&lt;li&gt;Disable RC4 for Kerberos where compatibility allows, and prefer AES.&lt;/li&gt;
&lt;li&gt;Remove SPNs that are no longer used and review accounts with SPNs regularly.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  References
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;MITRE ATT&amp;amp;CK T1558.003 - &lt;a href="https://attack.mitre.org/techniques/T1558/003/" rel="noopener noreferrer"&gt;https://attack.mitre.org/techniques/T1558/003/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Microsoft: Event 4769 - &lt;a href="https://learn.microsoft.com/windows/security/threat-protection/auditing/event-4769" rel="noopener noreferrer"&gt;https://learn.microsoft.com/windows/security/threat-protection/auditing/event-4769&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;This article is defensive guidance for blue teams; test detections only in environments you are authorised to use.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>cybersecurity</category>
      <category>blueteam</category>
      <category>windows</category>
      <category>detection</category>
    </item>
  </channel>
</rss>
