Skip to content

AD-SPN-07: User SPN service class count should be investigated

ID AD-SPN-07
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

Understanding the service classes of SPNs on user accounts helps security teams:

  • Identify service types: Know what services are running under user credentials
  • Assess risk: Some service classes (like MSSQLSvc) are higher-value targets
  • Detect anomalies: Unexpected service classes may indicate unauthorized services
  • Plan migrations: Identify candidates for migration to gMSAs

User accounts with database or application service SPNs are particularly sensitive.

Operational

Review service classes on user accounts:

  • Database services (MSSQLSvc, oracle, postgres) should use gMSAs
  • Web services (HTTP, HTTPS) should run under service accounts or gMSAs
  • Legacy service classes may indicate outdated applications
  • Document all user accounts with SPNs and their purposes

This test retrieves all user objects with SPNs, extracts the service class from each SPN, and counts the distinct service classes in use.

  • Test-MtAdUserSpnServiceClassUsage - Detailed breakdown of service class usage
  • Test-MtAdUserSpnTotalCount - Total count of user SPNs
  • Test-MtAdComputerSpnServiceClassCount - Computer account service classes

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.