Join our Newsletter — 33% off our NHI Course
Home› Guides› How to Find Kerberoastable Accounts in Active Directory…
Guide Identity & Access Management (IAM)

How to Find Kerberoastable Accounts in Active Directory and Fix Them: Inventory, Triage and Remediation Steps

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 20 November 2026 12 min read
On this page

A user account becomes Kerberoastable the moment it carries a service principal name and a password a human chose, so finding every such account and either removing the SPN, moving the service to a managed account or making the password and encryption strong enough is a short, high-value hygiene project. This guide walks through building the list, deciding what each account is, fixing it in the right order and keeping the list from growing back.

It focuses on discovery and remediation. How the technique works, how it shows up in incidents and broader hardening are covered in the Kerberoasting and AS-REP Roasting Defence Guide, and hunting for active abuse is covered in How to Hunt for Kerberoasting.

Key takeaways

  • The exposure is a user account (not a computer or managed service account) with one or more SPNs, because any authenticated domain user can request a service ticket for it. MITRE ATT&CK tracks the technique as T1558.003 Kerberoasting.
  • Risk depends on three things: the strength of the account password, whether the account still allows RC4, and how privileged the account is.
  • The best fix is to remove SPNs that are no longer needed, then move remaining services to group Managed Service Accounts, where Windows manages the password.
  • Where an account must stay a user account, give it a long random password, set msDS-SupportedEncryptionTypes to AES only, and remove any privileged group membership.
  • Microsoft plans to stop treating RC4 as a default supported encryption type on domain controllers, so the encryption review doubles as RC4 deprecation readiness.
  • Repeat the inventory on a schedule and alert on new SPNs added to user accounts so the problem does not quietly return.

What makes an account Kerberoastable

Kerberos issues service tickets for SPNs. Part of a service ticket is encrypted with a key derived from the password of the account that owns the SPN. Microsoft's Defender for Identity documentation describes the Suspected Kerberos SPN exposure alert (external ID 2410) as covering attackers who enumerate service accounts and SPNs, request service tickets and attempt to recover the password offline. The defensive implication is that the strength of that password is the main control.

Three account types own SPNs:

Account typePasswordKerberoasting exposure
Computer accountsMachine-generated and rotatedLow in practice, not the focus of this audit
Managed service accounts (sMSA, gMSA, dMSA)Managed by WindowsLow, the reason to migrate to them
User accounts used as service accountsSet by a person, often old and rarely changedThe target of this audit

So the audit question is simple: which user objects in each domain have a non-empty servicePrincipalName attribute, and how dangerous is each one?

Step 1: build the inventory

The inventory is read-only and any domain user can run it. Run it from your administrative workstation so the activity is attributable and does not trip your own detections unexpectedly; tell the SOC before you start.

Query user objects with SPNs

The illustrative PowerShell below uses the ActiveDirectory module and pulls the attributes needed for triage:

Get-ADUser -LDAPFilter '(servicePrincipalName=*)' -Properties servicePrincipalName, msDS-SupportedEncryptionTypes, PasswordLastSet, LastLogonDate, Enabled, AdminCount, MemberOf, Description, PasswordNeverExpires |
Select-Object SamAccountName, Enabled, PasswordLastSet, LastLogonDate, PasswordNeverExpires, AdminCount, msDS-SupportedEncryptionTypes, @{n='SPNs';e={$_.servicePrincipalName -join ';'}}, Description |
Export-Csv kerberoastable-inventory.csv -NoTypeInformation

Get-ADUser returns only user objects, so computer and managed service accounts are excluded. Run the query against every domain in every forest you manage, including child and resource domains.

Cross-check with setspn

Microsoft's setspn documentation describes setspn -l accountname to list the SPNs registered on an account and setspn -X to search for duplicate SPNs, with -F to query at forest level. Duplicates are not a Kerberoasting issue in themselves, but Microsoft notes they cause authentication problems, and they often point to forgotten service accounts that belong in the inventory.

Add context

For each account, add columns for owner, application, servers where the service runs and whether the account is in any privileged group directly or through nesting. If you already maintain a service account register, join on account name. The How to build a service account inventory from Active Directory guide explains how to collect this context.

Step 2: triage and prioritise

Not every Kerberoastable account is equally urgent. Score each one on the factors below and fix the highest scores first.

FactorHow to checkHigher risk when
PrivilegeAdminCount, recursive group membership, attack path analysisMember of Domain Admins or another Tier 0 group, or has a path to one
Password agePasswordLastSetSet years ago, or PasswordNeverExpires is true
EncryptionmsDS-SupportedEncryptionTypesNot set (0) or includes RC4
UseLastLogonDate, service owner confirmationAccount looks unused but is still enabled
OwnershipDescription, register, change recordsNo identifiable owner

Reading the encryption value

Microsoft's RC4 detection and remediation guide lists decimal values for msDS-SupportedEncryptionTypes: 0 means not defined and defaults to RC4_HMAC_MD5, 4 means RC4 only, 24 means AES 128 and AES 256, and 28 means RC4, AES 128 and AES 256. An account at 0 or 4 is the weakest case. The same guide explains that accounts created before AES support may lack AES keys entirely until their password is changed.

Privileged service accounts first

A Kerberoastable account in a Tier 0 group is a direct route to domain compromise. Treat each one as a priority finding, and check graph-based attack paths too, because an account outside privileged groups may still control one. The BloodHound and Active Directory Attack Path Guide explains how to use that analysis defensively.

Agreeing the plan with owners

Share the prioritised list with application owners before changing anything. For each account, agree which of the fixes in the following steps applies, a change window, a test plan and a rollback. Owners are far more willing to accept a password or encryption change when they can see that their account sits near the top of a ranked list for a clear reason, and the agreement gives the identity team a record to point to if a change causes an incident.

Step 3: remove SPNs that are not needed

The cheapest fix is deletion. Inventories regularly contain SPNs for decommissioned servers, old application versions and test systems.

  1. For each SPN, confirm the host in the SPN still exists in DNS and in Active Directory.
  2. Confirm with the application owner that nothing still authenticates to that service name.
  3. Record the current SPN value so it can be restored.
  4. Remove it through a change, for example with setspn -d service/name accountname, which Microsoft documents for deleting a specific SPN.
  5. If the account has no SPNs left and no other purpose, disable it, then delete it after a holding period.

Microsoft notes that managing SPNs requires Domain Admins, Enterprise Admins or delegated Validated write to service principal name permission. Review who holds that delegation on user objects, because anyone who can write SPNs to a user account can make it Kerberoastable.

Step 4: move services to managed service accounts

For services that still need an identity, the long-term fix is a managed account. Microsoft's gMSA overview says that with a gMSA the operating system manages the password instead of an administrator, that the domain controller computes the password from a key provided by the Key Distribution Service, and that the keys change periodically. gMSAs extend that across multiple servers and include simplified SPN management.

Points from Microsoft's page to plan around:

  • gMSAs do not apply to Windows versions earlier than Windows Server 2012.
  • Managed service accounts depend on Kerberos supported encryption types, and Microsoft advises always configuring AES for them.
  • Failover clusters do not support gMSAs directly, although services that run on the cluster service can use one if they are a Windows service, an app pool or a scheduled task, or support gMSA natively.

Many applications that run as Windows services, IIS application pools or scheduled tasks can move with a configuration change. Others, such as appliances or third-party software that needs a typed password, cannot. The step-by-step method is in How to convert AD service accounts to gMSA. In domains with Windows Server 2025 domain controllers, delegated Managed Service Accounts are another option; review the permission guidance in the BadSuccessor and dMSA Abuse Defence guide before adopting them.

Step 5: harden accounts that must stay as user accounts

Some accounts will remain user accounts with SPNs for a while. Reduce their risk with four changes.

Strong, random password

Replace the password with a long, randomly generated value from a password manager or vault, not one a person chooses. As an NHI Mgmt Group recommendation, use the maximum length the application reliably supports, and at least 30 characters where possible. Record where the password is stored and who can retrieve it. A fine-grained password policy can enforce a higher minimum for the service account group.

AES only

Set msDS-SupportedEncryptionTypes to 24 (AES 128 and AES 256) on the account. Microsoft's RC4 guide says older accounts may need a password reset to generate AES keys, so change the password and set the attribute in the same change. Test the service afterwards: clients and services that cannot use AES will fail to authenticate. Microsoft's guide shows klist get and event 4769 with failure code 0xE (KDC_ERR_ETYPE_NOTSUPP) as ways to diagnose that failure.

Least privilege

Remove service accounts from Domain Admins and other Tier 0 groups. Grant only the rights the service needs on the servers and data it uses. If a vendor insists on domain admin, ask for the specific rights and record the exception with an owner and an expiry.

Logon restrictions and monitoring

Limit where the account can log on, deny interactive logon where the service does not need it, and add it to your monitoring so unusual service ticket requests or logons stand out.

Step 6: tie it to RC4 deprecation

Microsoft's RC4 guide gives a timeline that makes this work time sensitive. Updates from 8 November 2022 related to CVE-2022-37966 changed the default to AES for accounts without an explicitly set encryption type, while RC4 remained the default for accounts that do not support AES. Microsoft says it plans, by the end of the second quarter of 2026, to stop treating RC4 as the default assumed supported encryption type for domain controllers, and that Windows Server 2025 domain controllers do not issue RC4 TGTs.

Use the same tools Microsoft names for RC4 discovery. On domain controllers running Windows Server 2019 or later, events 4768 and 4769 include fields such as MSDS-SupportedEncryptionTypes, Available Keys, Advertized Etypes and the ticket encryption type, where 0x17 is RC4-HMAC and 0x11 and 0x12 are AES. Microsoft also publishes Get-KerbEncryptionUsage.ps1 and List-AccountKeys.ps1 in its Kerberos-Crypto repository on GitHub, linked from the guide. Accounts in your Kerberoastable inventory that still receive RC4 service tickets are both the weakest Kerberoasting targets and the accounts most likely to break when RC4 is removed. The Kerberos RC4 Deprecation guide covers the wider programme.

Step 7: keep it fixed

  • Scheduled inventory. Rerun the query monthly and compare with the previous run. New entries need an owner and a justification.
  • Change alerting. Audit changes to servicePrincipalName on user objects with directory service change auditing, and alert when an SPN is added to a user account outside a change. The Active Directory Security Monitoring and Event IDs Guide explains the audit settings.
  • Provisioning standard. Make gMSA the default for new Windows services, and require an exception for any new user account with an SPN.
  • Detection. If you run Defender for Identity, the Suspected Kerberos SPN exposure alert (2410) and the Security principal reconnaissance (LDAP) alert (2038), which Microsoft describes as often the first phase of Kerberoasting, cover attempted abuse.
  • Decoys. Some teams add a monitored decoy account with an SPN so any service ticket request for it is a high-confidence signal.

Framework mapping

  • MITRE ATT&CK T1558.003 Kerberoasting: the technique this inventory reduces.
  • MITRE ATT&CK mitigations M1027 Password Policies, M1026 Privileged Account Management and M1047 Audit.
  • NIST SP 800-53 Rev. 5 IA-5 Authenticator Management, AC-6 Least Privilege and AC-2 Account Management.

Common failure patterns

  • One-off clean-up. The list is fixed once and grows back because nothing alerts on new SPNs on user accounts.
  • Password reset without encryption change. The password is rotated but the account still allows RC4.
  • Encryption change without testing. AES only is set on a service whose clients cannot use AES, causing an outage and a rollback.
  • Privileged service accounts left alone. The most dangerous accounts are deferred because the application is critical, which is the reason to fix them first.
  • Ignoring unused accounts. Disabled-looking accounts stay enabled with SPNs and old passwords.
  • Broad SPN write delegation. Help desk or provisioning groups can write SPNs to user accounts, recreating exposure at will.
  • Only one domain checked. Child domains and resource forests are not included in the inventory.

Practitioner checklist

  • Export every user account with a servicePrincipalName in every domain, with password age, encryption types and privilege.
  • Find and record an owner for each account.
  • Prioritise accounts in Tier 0 groups or on attack paths to Tier 0.
  • Remove SPNs for decommissioned services and disable accounts with no remaining purpose.
  • Migrate remaining Windows services to gMSA where supported.
  • For accounts that must stay, set a long random vaulted password and msDS-SupportedEncryptionTypes to AES only, then test.
  • Remove service accounts from privileged groups and restrict their logon.
  • Review who can write SPNs to user objects.
  • Check event 4769 for RC4 service tickets to inventoried accounts.
  • Rerun the inventory monthly and alert on new SPNs on user accounts.

Standards and references

Related NHI Mgmt Group resources: Kerberoasting and AS-REP Roasting Defence Guide · How to Hunt for Kerberoasting · How to convert AD service accounts to gMSA · Kerberos RC4 Deprecation

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.