<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Kerberoasting — CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/kerberoasting/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata — refreshed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Tue, 09 Jan 2024 18:45:00 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/kerberoasting/feed.xml" rel="self" type="application/rss+xml"/><item><title>PowerShell Kerberos Ticket Request via KerberosRequestorSecurityToken</title><link>https://feed.craftedsignal.io/briefs/2024-01-09-kerberos-ticket-request/</link><pubDate>Tue, 09 Jan 2024 18:45:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-01-09-kerberos-ticket-request/</guid><description>This rule detects PowerShell scripts that request Kerberos service tickets using KerberosRequestorSecurityToken, potentially indicating Kerberoasting attacks for offline password cracking of service accounts.</description><content:encoded><![CDATA[<p>This detection identifies PowerShell scripts leveraging the <code>KerberosRequestorSecurityToken</code> class to request Kerberos service tickets. Attackers often use this technique to perform Kerberoasting, where they obtain service tickets for various service principal names (SPNs) and crack the associated service account passwords offline. This activity can be indicative of an attacker attempting to gain unauthorized access to sensitive resources within the network. The rule is designed to trigger on potentially malicious uses of <code>KerberosRequestorSecurityToken</code> while attempting to filter out legitimate uses, such as those within Sentinel breakpoints or authorized Kerberos diagnostic scripts. Defenders should investigate any instances of this activity to determine whether it represents a genuine threat.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li><strong>Initial Access:</strong> An attacker gains initial access to a Windows system, potentially through phishing, compromised credentials, or exploiting a vulnerability.</li>
<li><strong>Execution:</strong> The attacker executes a PowerShell script, either interactively or via a scheduled task or other means of remote execution.</li>
<li><strong>Obfuscation (Optional):</strong> The PowerShell script may be obfuscated to evade detection, using techniques such as Base64 encoding or string manipulation.</li>
<li><strong>Ticket Request:</strong> The script uses the <code>KerberosRequestorSecurityToken</code> class to request Kerberos service tickets for one or more SPNs.</li>
<li><strong>Data Collection:</strong> The script collects the requested service tickets and potentially saves them to a file or transmits them over the network.</li>
<li><strong>Credential Access:</strong> The attacker extracts the Kerberos hashes from the collected tickets.</li>
<li><strong>Offline Cracking:</strong> The attacker uses tools like John the Ripper or Hashcat to crack the service account passwords offline.</li>
<li><strong>Privilege Escalation/Lateral Movement:</strong> Upon successfully cracking the passwords, the attacker uses the compromised credentials to escalate privileges or move laterally within the network.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful Kerberoasting attacks can lead to the compromise of service accounts, potentially granting attackers unauthorized access to critical systems and sensitive data. The impact can range from data breaches and financial losses to complete system compromise and disruption of business operations. The rule&rsquo;s medium severity reflects the potential for significant impact if the attack succeeds.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Enable PowerShell Script Block Logging to capture the PowerShell script content necessary for detection, and ensure the logs are being ingested into your SIEM. Reference: <a href="https://ela.st/powershell-logging-setup">Setup instructions</a>.</li>
<li>Deploy the Sigma rule &ldquo;PowerShell Kerberos Ticket Request&rdquo; to your SIEM to detect suspicious use of <code>KerberosRequestorSecurityToken</code> in PowerShell scripts.</li>
<li>Investigate any alerts triggered by the Sigma rule, focusing on reconstructing the full script content, identifying the targeted SPNs, and analyzing the process execution context to determine if the activity is malicious.</li>
<li>Review Windows Security event logs on domain controllers for event ID 4769, filtering for the <code>TargetUserName</code> associated with the alerting user to identify related Kerberos ticket requests.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>kerberoasting</category><category>credential_access</category><category>windows</category></item><item><title>Kerberos Traffic from Unusual Process</title><link>https://feed.craftedsignal.io/briefs/2024-01-03-kerberoasting-unusual-process/</link><pubDate>Wed, 03 Jan 2024 14:00:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-01-03-kerberoasting-unusual-process/</guid><description>Detects network connections to the standard Kerberos port from an unusual process other than lsass.exe, potentially indicating Kerberoasting or Pass-the-Ticket activity on Windows systems.</description><content:encoded><![CDATA[<p>This detection identifies unusual processes initiating network connections to the standard Kerberos port (88) on Windows systems. Typically, the <code>lsass.exe</code> process handles Kerberos traffic on domain-joined hosts. The rule aims to detect processes other than <code>lsass.exe</code> communicating with the Kerberos port, which could indicate malicious activity such as Kerberoasting (T1558.003) or Pass-the-Ticket (T1550.003). The detection is designed to work with data from Elastic Defend and SentinelOne Cloud Funnel. This can help security teams identify potential credential access attempts and lateral movement within the network.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker compromises a user account or system within the domain.</li>
<li>The attacker executes a malicious binary or script (e.g., PowerShell) on the compromised system.</li>
<li>The malicious process attempts to request Kerberos service tickets (TGS) for various services within the domain. This is done by connecting to the Kerberos port (88) on a domain controller.</li>
<li>The attacker uses tools like <code>Rubeus</code> or <code>Kerberoast.ps1</code> to enumerate and request TGS tickets.</li>
<li>The unusual process (not <code>lsass.exe</code>) sends Kerberos traffic to the domain controller.</li>
<li>The attacker extracts the Kerberos tickets from memory or network traffic.</li>
<li>The attacker cracks the offline TGS tickets to obtain service account passwords (Kerberoasting).</li>
<li>The attacker uses the compromised service account credentials to move laterally within the network or access sensitive data.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>A successful Kerberoasting or Pass-the-Ticket attack can lead to unauthorized access to sensitive resources and lateral movement within the network. Attackers can compromise service accounts with elevated privileges, potentially leading to domain-wide compromise. Detection of this behavior can prevent attackers from gaining access to critical assets. While the exact number of victims and sectors targeted are unknown, this technique is widely used by various threat actors in targeted attacks.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the &ldquo;Kerberos Traffic from Unusual Process&rdquo; Sigma rule to your SIEM and tune for your environment. Enable network connection logging to capture the necessary traffic.</li>
<li>Investigate any alerts triggered by the Sigma rule, focusing on the process execution chain and potential malicious binaries.</li>
<li>Review event ID 4769 for suspicious ticket requests as mentioned in the rule&rsquo;s documentation.</li>
<li>Examine host services for suspicious entries as outlined in the original Elastic detection rule using Osquery.</li>
<li>Monitor for processes connecting to port 88, filtering out legitimate Kerberos clients like <code>lsass.exe</code>, using the &ldquo;Detect Kerberos Traffic from Non-Standard Process&rdquo; Sigma rule.</li>
<li>Investigate processes identified by the rule and compare them to the list of legitimate processes to identify unauthorized connections to the Kerberos port.</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">threat</category><category>kerberoasting</category><category>credential-access</category><category>lateral-movement</category><category>windows</category></item><item><title>User Account ServicePrincipalName Attribute Modified</title><link>https://feed.craftedsignal.io/briefs/2024-01-kerberoasting-spn-modified/</link><pubDate>Tue, 02 Jan 2024 12:00:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-01-kerberoasting-spn-modified/</guid><description>Detection of modifications to the servicePrincipalName attribute on user accounts, potentially exposing them to Kerberoasting attacks by allowing attackers to request Kerberos tickets for the account.</description><content:encoded><![CDATA[<p>This detection rule identifies modifications to the <code>servicePrincipalName</code> (SPN) attribute of user accounts within Active Directory. Attackers can exploit write privileges over a user account to configure SPNs, enabling them to perform Kerberoasting attacks. While administrators may configure SPNs legitimately, this exposes the account to potential abuse. The risk arises because user-defined passwords are often less complex than machine account passwords, making them vulnerable to cracking. The rule focuses on identifying when a user account is at increased risk due to SPN modifications, indicating potential Kerberoasting vulnerabilities. The original Elastic rule was published on 2022-02-22 and last updated on 2026-05-04.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker gains initial access to a system with a user account that possesses write privileges to other user accounts within Active Directory.</li>
<li>The attacker identifies a target user account for which they want to perform Kerberoasting.</li>
<li>The attacker modifies the <code>servicePrincipalName</code> attribute of the target user account using tools like <code>SetSPN.exe</code> or PowerShell.</li>
<li>A Kerberos client requests a ticket-granting service (TGS) ticket for the modified SPN.</li>
<li>The domain controller encrypts the TGS ticket with the secret key (NTLM hash) of the target user account.</li>
<li>The attacker extracts the encrypted TGS ticket from network traffic or the Kerberos client cache.</li>
<li>The attacker performs offline password cracking on the extracted TGS ticket to recover the plaintext password of the target user account using tools like Hashcat or John the Ripper.</li>
<li>The attacker uses the compromised credentials to gain unauthorized access to resources or perform lateral movement within the network.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful Kerberoasting attacks can compromise user account credentials, potentially leading to unauthorized access to sensitive resources and lateral movement within the network. If privileged accounts are compromised, attackers can gain control over critical systems and data, leading to data breaches, system disruptions, and financial losses. The number of victims depends on the permissions of the compromised account and the scope of the attacker&rsquo;s access.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Enable and monitor &ldquo;Audit Directory Service Changes&rdquo; in Windows Security Event Logs to generate the events required for the detection rule (reference: <a href="https://ela.st/audit-directory-service-changes">https://ela.st/audit-directory-service-changes</a>).</li>
<li>Deploy the &ldquo;User account exposed to Kerberoasting&rdquo; Sigma rule to your SIEM and tune it based on your environment.</li>
<li>Investigate any alerts generated by the Sigma rule, focusing on identifying the user account that performed the SPN modification and whether the modification was legitimate (reference: Sigma rule).</li>
<li>Implement Group Managed Service Accounts (gMSA) for services running under user accounts to ensure strong and automatically rotated passwords (reference: <a href="https://docs.microsoft.com/en-us/windows-server/security/group-managed-service-accounts/group-managed-service-accounts-overview">https://docs.microsoft.com/en-us/windows-server/security/group-managed-service-accounts/group-managed-service-accounts-overview</a>).</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category><category>kerberoasting</category><category>credential-access</category><category>windows</category><category>spn</category></item></channel></rss>