Skip to content

AD-SPN-06: User SPN total count should be investigated

ID AD-SPN-06
Severity Info
Suite Active Directory (on-premises)
Product Active Directory
Feature Service principal names
Security area Authentication
Resource type User
MITRE ATT&CK T1558.003
Reads from On-premises Active Directory

User accounts with Service Principal Names (SPNs) are high-value targets for attackers because:

  • Kerberoasting: Attackers can request service tickets for these SPNs and attempt to crack them offline
  • Service account exposure: User accounts with SPNs often have elevated privileges
  • Password policy gaps: Service accounts may have weaker password policies than expected
  • Shadow service accounts: Unknown user accounts with SPNs may indicate unauthorized services

Understanding the scope of user SPNs helps assess your Kerberoasting attack surface.

Operational

Minimize user accounts with SPNs:

  • Use Group Managed Service Accounts (gMSAs) instead of user accounts for services
  • Regularly audit user accounts with SPNs
  • Ensure service accounts have strong, regularly rotated passwords
  • Consider using Managed Service Accounts (MSAs) where possible
  • Remove SPNs from accounts that no longer need them

This test retrieves all user objects from Active Directory, extracts their SPNs, and counts the total number of SPNs configured on user accounts.

  • Test-MtAdUserSpnServiceClassCount - Counts distinct service classes on users
  • Test-MtAdUserSpnDomainAdminCount - Identifies SPNs on domain admin accounts
  • Test-MtAdComputerSpnTotalCount - Counts computer account SPNs

Mito check. Author: soulemike. Open-source licences.

Open-source licences. CIS Benchmark material © Center for Internet Security, Inc.; CISA SCuBA baselines are public domain (CC0).

© 2026 Virtual Petals. Mito is a Virtual Petals service, hosted in Microsoft Azure UAE North.