Active Directory Security Tip #16: Mitigating Kerberoast Attacks
嗯,用户让我用中文总结一篇文章,控制在100字以内,而且不需要特定的开头。首先,我需要仔细阅读文章内容,抓住主要点。 文章主要讲了两种密码攻击:密码喷射和Kerberoasting。作者详细解释了Kerberoasting的原理,即利用带有SPN的Active Directory账户进行攻击。攻击者通常会针对那些密码年龄超过五年的账户,因为这些密码可能较弱。 接下来,作者提到了一些防护措施,比如移除管理账户的SPN,识别并处理拥有管理员权限的服务账户,并建议更换旧密码为超过25个字符的新密码。此外,KRBTGT账户需要特别注意,因为它对Kerberos功能至关重要。 总结的时候,我需要涵盖攻击类型、防护措施和关键注意事项。确保在100字以内简洁明了地表达出来。 </think> 文章介绍了两种主要密码攻击:密码喷射和Kerberoasting。Kerberoasting利用Active Directory账户中的SPN进行攻击,通常针对密码年龄超过五年的账户。防护措施包括移除管理账户的SPN、识别滥用管理员权限的服务账户,并更换旧密码为长于25字符的新密码。KRBTGT账户需特别注意以确保Kerberos功能正常。 2026-1-21 01:17:0 Author: adsecurity.org(查看原文) 阅读量:26 收藏

Jan 20 2026

There are two main password attacks leveraged by adversaries; one is called Password Spraying and the other is called Kerberoasting.

This post focuses on identifying accounts that may be targeted for Kerberoasting and how to harden the environment against Kerberoasting.

Password spraying involves the attacker using a list of passwords and for each password attempts to authenticate as each user using that one password. After working through all users with the first password, they move on to the next password in the list. Successful authentication is noted along the way as these are compromised accounts.
I wrote about detecting password spraying here: https://trustedsec.com/blog/detecting-password-spraying-with-a-honeypot-account

Kerberoasting is possible when an Active Directory account has a Kerberos Service Principal Name (SPN) associated with it. In order to enable Kerberos authentication for an application, the associated service account needs a SPN. Kerberoasting takes advantage of the fact that one can request a service ticket using the SPN associated with a target service account and take that Kerberos service ticket offline to attempt to crack it.

Attackers are most likely to attempt Kerberoasting on the accounts with passwords that are about 5 years and older since they are more likely to have poor passwords, though attackers may just attempt kerberoasting all AD accounts that have SPNs.

For more information on how Kerberoasting works as well as detecting Kerberoasting, read this article: https://adsecurity.org/?p=3458

I wrote a short PowerShell script that identifies all accounts with SPNs as well as Active Directory admin accounts with SPNs (leverages the Active Directory PowerShell module):
https://github.com/PyroTek3/Misc/blob/main/Get-ADUsersWithSPNs.ps1

TO DO LIST:

  1. Remove SPNs from AD Admin accounts associated with people since they shouldn’t have any SPNs associated with them.
  2. If the default domain administrator account is listed here, work to remove the SPN associated with it. This account should never have a SPN.
  3. Remove SPNs from the other accounts associated with people since they shouldn’t have any SPNs associated with them.
  4. Identify service accounts identified as AD Admin accounts (those that are members of Administrators, Domain Admins, or Enterprise Admins). Remove accounts that don’t belong and leave only those accounts that require these privileges (should be a minimal to 0 list of service accounts).
  5. Identify the AD Admin accounts that have old passwords (> 5 years) and put together a plan to change those passwords, preferably with a password of >25 characters.
  6. Identify the other accounts that have old passwords (> 5 years) and put together a plan to change those passwords, preferably with a password of >25 characters.


IMPORTANT NOTE: Ignore the krbtgt account with regard to these directions as this is required to be configured this way for AD Kerberos to work.

The KRBTGT account requires special attention: https://adsecurity.org/?p=4597

(Visited 27 times, 27 visits today)

Sean Metcalf

I improve security for enterprises around the world working for TrustedSec & I am @PyroTek3 on Twitter.
Read the About page (top left) for information about me. :)
https://adsecurity.org/?page_id=8


文章来源: https://adsecurity.org/?p=4955
如有侵权请联系:admin#unsafe.sh