Skip to content

T1558.003 Kerberoasting

Adversaries may abuse a valid Kerberos ticket-granting ticket (TGT) or sniff network traffic to obtain a ticket-granting service (TGS) ticket that may be vulnerable to Brute Force.12

Service principal names (SPNs) are used to uniquely identify each instance of a Windows service. To enable authentication, Kerberos requires that SPNs be associated with at least one service logon account (an account specifically tasked with running a service3).4567

Adversaries possessing a valid Kerberos ticket-granting ticket (TGT) may request one or more Kerberos ticket-granting service (TGS) service tickets for any SPN from a domain controller (DC).12 Portions of these tickets may be encrypted with the RC4 algorithm, meaning the Kerberos 5 TGS-REP etype 23 hash of the service account associated with the SPN is used as the private key and is thus vulnerable to offline Brute Force attacks that may expose plaintext credentials.21 7

This same behavior could be executed using service tickets captured from network traffic.2

Cracked hashes may enable Persistence, Privilege Escalation, and Lateral Movement via access to Valid Accounts.6

Item Value
ID T1558.003
Sub-techniques T1558.001, T1558.002, T1558.003, T1558.004
Tactics TA0006
Platforms Windows
Version 1.2
Created 11 February 2020
Last Modified 30 March 2023

Procedure Examples

ID Name Description
S1063 Brute Ratel C4 Brute Ratel C4 can decode Kerberos 5 tickets and convert it to hashcat format for subsequent cracking.13
S0363 Empire Empire uses PowerSploit‘s Invoke-Kerberoast to request service tickets and return crackable ticket hashes.9
G0046 FIN7 FIN7 has used Kerberoasting for credential access and to enable lateral movement.18
S0357 Impacket Impacket modules like GetUserSPNs can be used to get Service Principal Names (SPNs) for user accounts. The output is formatted to be compatible with cracking tools like John the Ripper and Hashcat.10
C0014 Operation Wocao During Operation Wocao, threat actors used PowerSploit‘s Invoke-Kerberoast module to request encrypted service tickets and bruteforce the passwords of Windows service accounts offline.19
S0194 PowerSploit PowerSploit‘s Invoke-Kerberoast module can request service tickets and return crackable ticket hashes.87
S1071 Rubeus Rubeus can use the KerberosRequestorSecurityToken.GetRequest method to request kerberoastable service tickets.11
S0692 SILENTTRINITY SILENTTRINITY contains a module to conduct Kerberoasting.12
C0024 SolarWinds Compromise During the SolarWinds Compromise, APT29 obtained Ticket Granting Service (TGS) tickets for Active Directory Service Principle Names to crack offline.20
G0102 Wizard Spider Wizard Spider has used Rubeus, MimiKatz Kerberos module, and the Invoke-Kerberoast cmdlet to steal AES hashes.14151617

Mitigations

ID Mitigation Description
M1041 Encrypt Sensitive Information Enable AES Kerberos encryption (or another stronger encryption algorithm), rather than RC4, where possible.2
M1027 Password Policies Ensure strong password length (ideally 25+ characters) and complexity for service accounts and that these passwords periodically expire.2 Also consider using Group Managed Service Accounts or another third party product such as password vaulting.2
M1026 Privileged Account Management Limit service accounts to minimal required privileges, including membership in privileged groups such as Domain Administrators.2

Detection

ID Data Source Data Component
DS0026 Active Directory Active Directory Credential Request

References


  1. EmpireProject. (2016, October 31). Invoke-Kerberoast.ps1. Retrieved March 22, 2018. 

  2. Metcalf, S. (2015, December 31). Cracking Kerberos TGS Tickets Using Kerberoast – Exploiting Kerberos to Compromise the Active Directory Domain. Retrieved March 22, 2018. 

  3. Bani, M. (2018, February 23). Detecting Kerberoasting activity using Azure Security Center. Retrieved March 23, 2018. 

  4. Microsoft. (n.d.). Service Principal Names. Retrieved March 22, 2018. 

  5. Microsoft. (2010, April 13). Service Principal Names (SPNs) SetSPN Syntax (Setspn.exe). Retrieved March 22, 2018. 

  6. Medin, T. (2014, November). Attacking Kerberos - Kicking the Guard Dog of Hades. Retrieved March 22, 2018. 

  7. Schroeder, W. (2016, November 1). Kerberoasting Without Mimikatz. Retrieved March 23, 2018. 

  8. Schroeder, W. & Hart M. (2016, October 31). Invoke-Kerberoast. Retrieved March 23, 2018. 

  9. Schroeder, W., Warner, J., Nelson, M. (n.d.). Github PowerShellEmpire. Retrieved April 28, 2016. 

  10. SecureAuth. (n.d.). Retrieved January 15, 2019. 

  11. Harmj0y. (n.d.). Rubeus. Retrieved March 29, 2023. 

  12. Salvati, M. (2019, August 6). SILENTTRINITY Modules. Retrieved March 24, 2022. 

  13. Harbison, M. and Renals, P. (2022, July 5). When Pentest Tools Go Brutal: Red-Teaming Tool Being Abused by Malicious Actors. Retrieved February 1, 2023. 

  14. The DFIR Report. (2020, October 8). Ryuk’s Return. Retrieved October 9, 2020. 

  15. Kimberly Goody, Jeremy Kennelly, Joshua Shilko, Steve Elovitz, Douglas Bienstock. (2020, October 28). Unhappy Hour Special: KEGTAP and SINGLEMALT With a Ransomware Chaser. Retrieved October 28, 2020. 

  16. DHS/CISA. (2020, October 28). Ransomware Activity Targeting the Healthcare and Public Health Sector. Retrieved October 28, 2020. 

  17. The DFIR Report. (2020, November 5). Ryuk Speed Run, 2 Hours to Ransom. Retrieved November 6, 2020. 

  18. Loui, E. and Reynolds, J. (2021, August 30). CARBON SPIDER Embraces Big Game Hunting, Part 1. Retrieved September 20, 2021. 

  19. Dantzig, M. v., Schamper, E. (2019, December 19). Operation Wocao: Shining a light on one of China’s hidden hacking groups. Retrieved October 8, 2020. 

  20. MSTIC, CDOC, 365 Defender Research Team. (2021, January 20). Deep dive into the Solorigate second-stage activation: From SUNBURST to TEARDROP and Raindrop . Retrieved January 22, 2021.